/* Register */

main .container {
    display: block;
}

main {
    all: unset;
    color: white;
    display: block;
    background-color: white;
    padding-top: 5px;
    padding-bottom: 70px;
    position: relative;
}

section:first-child {
    display: flex;
    align-items: center;
    justify-content: end;
    flex-direction: row-reverse;
}

section:last-child {
    margin-top: 20px;
    align-items: start;
    display: flex;
    flex-direction: row-reverse;
    justify-content: start;
}

section:last-child .info .container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

section:last-child .info .container > div {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.logo-section .info .container {
    display: flex;
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: wrap;
}

.logo-section .info .container > div {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.logo-section .info .container > div .icon i {
    font-size: 40px;
    color: var(--sec);
}

.logo-section .info .container > div .text {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.logo-section .info .container > div .text > div {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

span.day {
    font-size: 40px;
    padding-left: 10px;
}

section:last-child .info .container > div .icon i {
    font-size: 50px;
    color: var(--sec);
}

section:last-child .info .container > div .text {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

section:last-child .info .container > div .text > div {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

section:first-child .logo-section {
    width: 40%;
}

section:first-child .logo-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #3b84bc;
    text-align: center;
}

section:first-child .logo-section img {
    width: 70%;
    filter: drop-shadow(2px 1px 5px #3b84bc);
    -webkit-filter: drop-shadow(2px 1px 5px #3b84bc);
}

section:first-child .brief p {
    line-height: 1.7;
    width: 90%;
    font-size: 20px;
}

section:first-child .brief {
    width: 60%;
    direction: rtl;
    background-color: #21679c;
    padding: 35px;
    color: white;
}

@media (max-width: 768px) {
    section:first-child .brief p {
        font-size: 18px;
        width: 100%;
    }
    section:first-child .brief {
        padding: 18px;
    }
}

section:first-child .brief .container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: start;
}

.d-btn {
    background-color: #d7dbdf;
    color: #21679c;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 30px;
    transition: 0.5s;
    border: 1px solid transparent;
}

.d-btn:hover {
    background-color: #21679c;
    color: #d7dbdf;
    border: 1px solid #d7dbdf;
}

section:first-child .brief button {
    padding: 5px 30px;
}

.contact-info a {
    color: var(--sec);
    text-decoration: underline;
}

section:first-child .brief .header h4 {
    font-weight: bold;
    color: white;
    font-size: 30px;
}

section:last-child .location img {
    width: 150px;
}

section:last-child .location {
    background: #206ba5;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
}

section:last-child .location .icon i {
    font-size: 30px;
}

section:last-child .location .icon {
    padding: 20px;
    background-color: #3b84bc;

    display: flex;
    justify-content: center;
    align-items: center;
    width: 75px;
}

section:last-child .location .logo-sec {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

section:last-child .info {
    width: 100%;
}

section:last-child .location {
    width: 100%;
}

section.counters {
    background: rgba(234, 234, 234, 1);
    padding: 20px 30px;
}

section.counters .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    place-items: center;
}

.logo-section .info .container {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    place-items: center;
}

section.counters .container .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

section.counters .container .box .num {
    color: #00a98f;
    font-weight: 400;
    font-size: 80px;
    line-height: 90px;
}

section.counters .container .box .text {
    font-size: 25px;
}

section.form {
    margin-top: 70px;
}

section.form .container {
    margin-top: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

section.form form {
    padding-top: 30px;
    padding-bottom: 30px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(470px, 1fr));
    place-items: center;
    gap: 20px;
    direction: rtl;
}

.form .form-group,
.form .form-group {
    width: 70%;
    /* min-width: 200px; */
    /* border-radius: 4px; */
}

.form input,
.form select {
    width: 100%;
    border: 1px solid #222;
    padding: 10px 15px;
    border-right: 15px solid var(--sec);
    direction: rtl;
}

legend {
    font-size: 16px;
}

.shor-tape.submit {
    width: 350px !important;
    border-right: 30px solid var(--sec);
    border-left: 30px solid var(--sec);
    background-color: #222;
    color: white;
    transition: 0.5s;
}

.shor-tape.submit:hover {
    border-right: 30px solid #222;
    border-left: 30px solid #222;
    background-color: var(--sec);
    color: white;
}

footer {
    position: relative !important;
}

/* Custom styles for SweetAlert */
.swal2-title {
    color: white;
    /* Title color */
}

.swal2-html-container {
    color: white;
    /* Text color */
}

.swal2-confirm.custom-btn {
    background-color: #222;
    color: white;
    border: none;
    font-weight: bold;
    font-size: 21px;
}

/* .swal2-confirm {
    background-color: #222;
    color: white; /* Confirm button text color */

/* #phone_number {
    position: relative;
}

#phone_number::before {
    content: "+966";
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--sec);
    height: 59%;
    width: 50px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
} */

@media (max-width: 768px) {
    section:first-child,
    section:last-child {
        flex-direction: column;
        gap: 20px;
    }

    section:first-child .brief,
    section:first-child .logo-section,
    section:last-child .info,
    section:last-child .location {
        width: 100%;
    }

    section:first-child .logo-section img {
        width: 50%;
    }

    section:first-child .logo-section .container {
        align-items: center;
    }
}

@media (max-width: 500px) {
    section.form form {
        grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
    }

    nav .container {
        justify-content: center !important;
    }

    .logo {
        width: 150px;
        height: 105px;
    }

    .logo-section .container {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

footer .contact-info-text {
    font-size: 19px;
}

footer .contact-info-text a {
    cursor: pointer;
    text-decoration: underline;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}

footer .contact-info-text a:hover {
    color: var(--sec);
    padding-right: 7px;
}

footer .footer-title {
    font-size: 22px;
}

.info .icon i {
    color: var(--sec);
    font-size: 28px;
    transition: transform 0.5s ease;
    animation: iconFloat 3s ease-in-out infinite;
}

/* حركة عند الـ hover */
.info div:hover .icon i {
    transform: scale(1.2) rotate(10deg);
}

/* أنيميشن مستمر (نطّة ناعمة + دوران خفيف) */
@keyframes iconFloat {
    0% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(5deg);
    }
    50% {
        transform: scale(1) rotate(0deg);
    }
    75% {
        transform: scale(1.05) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}
