/*Css for header section*/
.hero-section {
   padding-top: 20px;
   padding-bottom: 0;
   /*background-color: var(--primary-green);*/
   color: var(--text-light);
}
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}
.hero-bg-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 750px;
    background-color: var(--primary-green);
}
.hero-bg-svg {
    position: absolute;
    top: -400px;
    left: 50%;
    transform: translateX(-50%);
    width: 1047px;
    height: 1976px;
    object-fit: contain;
}

.hero-section .container {
    /*background-color: var(--dark-green);*/
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#header {
    transition: all 0.5s;
    /*z-index: 99999;*/
}
.fixed-top {
    position: fixed;
    z-index: 99999;
}
.site-header {
    background-color: var(--light-green);
    border-radius: 30px;
    padding: 10px 20px 10px 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    left: 15%;
    right: 15%;
}
#header.header-scrolled, #header.header-inner-pages {
    background: var(--accent-gold);
}
.login-btn {
    background-color: var(--dark-green);
    color: var(--light-green);
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 10px;
    white-space: nowrap;
}
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
}
.main-nav a {
    font-family: 'Zain', sans-serif;
    /*font-size: 20px;*/
    color: var(--primary-green);
    font-weight: 400;
}
.main-nav a.active {
    color: var(--accent-gold);
    font-weight: 700;
}
.logo img {
    width: 60px;
    /*height: 109px;*/
    margin: 0;
    padding: 0;
    border-radius: 50%;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 120px;
}
.hero-title {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 60px;
    letter-spacing: -0.96px;
    margin-bottom: 0;
}
.hero-subtitle {
    font-family: 'Tajawal', sans-serif;
    font-weight: 300;
    font-size: 30px;
    letter-spacing: -0.48px;
    max-width: 581px;
    line-height: 1.4;
    margin-top: 20px;
}
.hero-images {
    margin-top: 30%;
    position: relative;
    width: 700px;
    height: 450px;
    /*filter: drop-shadow(6px 16px 84px rgba(0, 0, 0, 0.45));*/
}
.hero-img {
    position: absolute;
    bottom: 0;
}
.hero-img-1 {
    right: 0;
    width: 25%;
    z-index: 2;
    bottom: 10%;
}
.hero-img-2 {
    right: 50%;
    transform: translateX(50%);
    width: 30%;
    z-index: 1;
}
.hero-img-3 {
    left: 0;
    width: 25%;
    z-index: 0;
    bottom: 10%;
}

/* Hamburger button */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-green);
    z-index: 10001;
}

/* Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.menu-overlay.active {
    display: block;
}

/* Mobile Styles */
@media (max-width: 1200px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--light-green);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 20px;
        gap: 20px;
        transition: right 0.3s ease-in-out;
        z-index: 10000;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .main-nav a {
        font-size: 22px;
        display: block;
        width: 100%;
    }
}

/* Hamburger to X animation */
.menu-toggle.open::before {
    content: "✖"; /* X */
}
.menu-toggle::before {
    content: "☰"; /* Hamburger */
}


/*@media (max-width: 1600px) {*/
/*    .main-nav a { font-size: 28px; }*/
/*    .login-btn { font-size: 20px; padding: 15px 30px; }*/
/*}*/
@media (max-width: 1200px) {
    /*.main-nav { display: none; } !* Simple hide for mobile, real project would use a burger menu *!*/
    .site-header { justify-content: space-around;  left: 5%; right: 5%; }
    .hero-title { font-size: 62px; }
    .hero-subtitle { font-size: 26px; }
    .hero-images { width: 90%; height: auto; aspect-ratio: 1110 / 716; }
    .hero-img { width: 32%; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 38px; }
    .hero-subtitle { font-size: 20px; margin-top: 20px; }
    /*.hero-content { margin-top: 80px; }*/
    .hero-images { margin-top: 30px; }
    .hero-img-1 { width: 25%; }
    .hero-img-2 { width: 30%; bottom: 10px; }
    .hero-img-3 { width: 25%; bottom: 15px; }
    .hero-bg-svg { display: none; }
}

/* CSS for section section:about */
#section-about {
    background-color: var(--text-light);
    padding: 50px;
}
.about-bg-shape {
    position: absolute;
    background-color: var(--bg-light-yellow);
    width: 300px;
    height: 500px;
    top: 20%;
    left: 0;
    z-index: 0;
}
.about-bg-svg {
    position: absolute;
    top: 50%;
    right: -200px;
    transform: translateY(-50%) rotate(45.63deg);
    opacity: 0.1;
    z-index: 0;
    width: 839px;
    height: 852px;
}
#section-about .container {
    position: relative;
    z-index: 1;
}
.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 139px;
}
.about-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 1006px;
    /*flex-shrink: 0;*/
}
.about-description {
    font-family: 'Zain', sans-serif;
    font-size: 24px;
    line-height: 1.50;
    text-align: justify;
    color: var(--text-dark);
}
.more-btn {
    background-color: var(--dark-green);
    color: var(--text-light);
    border-radius: 15px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    line-height: 1;
}
.more-btn img {
    width: 30px;
    height: 30px;
    /*transform: rotate(180deg);*/
}
.about-image-container {
    flex-shrink: 0;
}
.about-image {
    width: 456px;
    height: 906px;
    object-fit: contain;
}
@media (max-width: 1400px) {
    .about-content {
        gap: 60px;
    }
    .about-image {
        width: 300px;
        height: auto;
    }
}
@media (max-width: 992px) {
    .about-content {
        flex-direction: column-reverse;
    }
    .about-text-content {
        align-items: center;
        text-align: center;
    }
    .about-description {
        text-align: center;
    }
}
@media (max-width: 768px) {
    #section-about {
        padding: 10px;
    }
    .about-description {
        font-size: 20px;
    }
    .about-image {
        width: 280px;
    }
    .more-btn {
        font-size: 24px;
        padding: 15px 25px;
    }
    .about-bg-shape { display: none; }
}

/* CSS for section section:vision */
.vision-section {
    /*padding: 50px 50px;*/
    position: relative;
    overflow: hidden;
    background-color: var(--color-white);
    margin-top: 10px;
}
.vision-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.vision-bg-elements img {
    position: absolute;
    opacity: 0.1;
}
.vision-deco-1 {
    top: 50px;
    left: -450px;
    transform: rotate(39.86deg);
}
.vision-deco-2 {
    top: 100px;
    right: -450px;
    transform: rotate(46.14deg);
}
.vision-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*gap: 59px;*/
}
.vision-title {
    display: flex;
    align-items: center;
    gap: 20px;
}
.vision-title h2 {
    font-family: var(--font-main), serif;
    font-weight: 600;
    font-size: 60px;
    color: var(--primary-green);
    letter-spacing: -1.92px;
}
.vision-title img {
    width: 30px;
}
.title-deco-left {
    transform: rotate(180deg);
}
.vision-text-card {
    /*background-color: var(--color-white);*/
    /*border-radius: 30px;*/
    padding: 20px;
    max-width: 1642px;
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);*/
}
.vision-text-card p {
    font-family: var(--font-main), serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.50;
    text-align: justify;
    color: #000000;
    letter-spacing: -0.72px;
}
@media (max-width: 768px) {
    .vision-title h2 {
        font-size: 64px;
    }
    .vision-text-card p {
        font-size: 24px;
        text-align: right;
    }
}

/* CSS for section section:pricing */
#section-pricing {
    background-color: var(--text-light);
}
.pricing-bg-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}
.pricing-bg-svg-1 {
    position: absolute;
    opacity: 0.3;
    transform: rotate(39.86deg);
    top: -600px;
    left: -800px;
}
.pricing-bg-svg-2 {
    position: absolute;
    opacity: 0.3;
    transform: rotate(46.14deg);
    top: -400px;
    right: -800px;
}
.pricing-cards-grid {
    display: ruby;
    justify-content: center;
    align-items: stretch;
    /*flex-wrap: wrap;*/
    gap: 20px;
    /*margin-right: 50px;*/
    /*margin-left: 50px;*/
}
.pricing-card {
    position: relative;
    width: 250px;
    min-height: 400px;
    border-radius: 26px;
    background-color: var(--bg-light-green);
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 5px;
    margin-top: 10px;
}
.pricing-card.popular {
    background-color: var(--dark-green);
    color: var(--text-light);
    box-shadow: 0px 42px 34px 0px var(--light-green);
}
.popular-tag {
    position: absolute;
    top: 21px;
    right: 30%;
    transform: translateX(50%);
    background-color: #cfe5da;
    color: #254b38;
    font-size: 10px;
    font-weight: 400;
    padding: 6px 15px;
    border-radius: 14px;
    z-index: 3;
    white-space: nowrap;
}
.card-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    mask-image: url('data:image/svg+xml;utf8,<svg width="292" height="480" viewBox="0 0 292 480" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="292" height="480" rx="26" fill="black"/></svg>');
}
.card-bg-svgs {
    position: absolute;
    top: -28px;
    left: -170px;
    width: 638px;
    height: 576px;
    opacity: 0.1;
}
.card-bg-svgs img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 15px;
    min-height: 400px;
}
.price-section {
    text-align: right;
}
.price {
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 48px;
    /*display: flex;*/
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.pricing-card.popular .price {
    font-size: 48px;
    color: var(--text-light);
}
.price img {
    width: 29px;
    height: 32px;
}
.price-period {
    font-family: 'Zain', sans-serif;
    font-weight: 300;
    font-size: 12px;
}
.pricing-card.popular .price-period {
    color: var(--text-light);
}
.features-section {
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-height: 200px;
}
.feature-title {
    font-family: 'Zain', sans-serif;
    font-weight: 800;
    font-size: 25px;
    text-align: right;
}
.pricing-card.popular .feature-title {
    color: var(--light-green);
}
.features-section ul {
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.features-section li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.4;
    text-align: right;
}
.features-section li img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.pricing-card.popular .features-section li {
    color: var(--text-light);
}
.card-button {
    background-color: var(--accent-gold);
    color: var(--light-green);
    font-family: 'Zain', sans-serif;
    font-weight: 600;
    font-size: 20px;
    border-radius: 20px;
    padding: 5px;
    width: 100%;
    margin-top: auto;
}
.pricing-card.popular .card-button {
    color: var(--light-green);
}

/* CSS for section section:clients */
#section-clients {
    padding-bottom: 100px;
    margin-right: 50px;
    margin-left: 50px;
}
.clients-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* center logos container */
    overflow: hidden;
    width: 100%;
    padding: 0 60px; /* space for arrows */
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--dark-green);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.3s, background-color 0.3s;
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

.carousel-arrow img {
    width: 24px;
    height: 24px;
}

.clients-logos {
    display: flex;
    align-items: center;
    justify-content: center; /* logos centered */
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.clients-logos img {
    max-width: 160px;
    max-height: 100px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.clients-logos img:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .carousel-arrow {
        display: none; /* hide arrows on mobile */
    }
    .clients-logos {
        flex-wrap: wrap;
        justify-content: center;
    }
    .clients-logos img {
        max-width: 120px;
        max-height: 60px;
    }
}


/* CSS for section section:contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
    /*margin: 0 100px;*/
}
.contact-info-card, .contact-form-card {
    border: 0.3px solid #4b9b72;
    border-radius: 20px;
    padding: 39px 38px;
}
.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-details li {
    display: flex;
    align-items: center;
    gap: 20px;
}
.contact-icon-wrapper {
    background-color: var(--bg-light-green);
    border-radius: 50%;
    width: 74px;
    height: 74px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.contact-icon-wrapper img {
    max-width: 43px;
    max-height: 42px;
}
.contact-details p {
    font-family: 'Zain', sans-serif;
    font-size: 20px;
    line-height: 1.5;
    text-align: right;
}
.contact-map img {
    width: 100%;
    height: 206px;
    border-radius: 23px;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    /*gap: 13px;*/
}
.form-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Zain', sans-serif;
    font-size: 20px;
    color: var(--text-dark);
}
.form-group label img {
    width: 25px;
    height: 25px;
}
.form-group input, .form-group textarea {
    background-color: var(--bg-light-gray);
    border: none;
    border-radius: 7px;
    padding: 15px;
    font-family: 'Zain', sans-serif;
    font-size: 20px;
    width: 100%;
}
.form-group input {
    height: 49px;
}
.form-group textarea {
    height: 123px;
    resize: vertical;
}
.submit-btn {
    background-color: var(--dark-green);
    color: var(--text-light);
    font-family: 'Zain', sans-serif;
    font-weight: 500;
    font-size: 24px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}
@media (max-width: 1600px) {
    .contact-grid {
        margin: 0 100px;
    }
}
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        margin: 0;
    }
}
@media (max-width: 768px) {
    .contact-info-card, .contact-form-card {
        padding: 24px;
    }
    .form-group label {
        font-size: 20px;
    }
}

/* CSS for section section:download */
#section-download {
    padding: 50px 100px;
    /*padding-bottom: 100px;*/
}
#section-download .container {
    position: relative;
    z-index: 1;
}
.download-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.download-bg-shape {
    position: absolute;
    background-color: #254b38;
    border-radius: 36px;
    width: 500px;
    height: 370px;
    top: 60%;
    left: 23%;
    transform: translate(-50%, -50%);
}
.download-bg-svg {
    position: absolute;
    top: 60%;
    left: -20%;
    transform: translateY(-50%) rotate(43.95deg);
}
.download-content {
    display: flex;
    align-items: start;
    justify-content: flex-start;
    gap: 20px;
}
.download-images {
    display: flex;
    align-items: flex-end;
    /*gap: 12px;*/
}
.download-img-1 {
    width: 300px;
    height: 500px;
    object-fit: contain;
}
.download-img-2 {
    width: 200px;
    height: 400px;
    object-fit: contain;
}
.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    max-width: 897px;
    margin-top: 10%;
}
.download-text .section-title {
    color: var(--text-dark);
}
.download-description {
    font-family: 'Zain', sans-serif;
    font-weight: 250;
    font-size: 24px;
    line-height: 1.5;
    text-align: right;
    color: #000000;
    margin-top: 10px;
}
.download-buttons {
    display: flex;
    gap: 10px;
}
.download-btn {
    font-family: 'Zain', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 15px;
    text-align: center;
}
.download-btn.apple {
    background-color: var(--dark-green);
}
.download-btn.google {
    background-color: var(--accent-gold);
}
@media (max-width: 1200px) {
    .download-content {
        flex-direction: column;
    }
    .download-text {
        align-items: center;
        text-align: center;
    }
    .download-description {
        text-align: center;
    }
}
@media (max-width: 768px) {
    #section-download {
        padding: 0;
    }
    .download-images {
        gap: 5px;
    }
    .download-img-1 { width: 180px; height: auto; }
    .download-img-2 { width: 160px; height: auto; }
    .download-description { font-size: 24px; }
    .download-buttons { flex-direction: column; gap: 15px; width: 100%; }
    .download-btn { font-size: 24px; padding: 15px; }
    .download-bg-container { display: none; }
}

/* CSS for section section:footer */
.site-footer {
    background-color: var(--primary-green);
    padding: 37px 20px;
    border-radius: 100px 100px 0 0;
    text-align: center;
    color: var(--text-light);
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 30px;
    margin-top: 100px;
}
@media (max-width: 768px) {
    .site-footer {
        font-size: 24px;
        padding: 40px 20px;
        border-radius: 50px 50px 0 0;
    }
}

/* CSS for section section:login-form */
#login-form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0;
}

.login-card {
    background-color: var(--text-light);
    border: 0.5px solid var(--dark-green);
    border-radius: 20px;
    padding: 39px 38px;
    max-width: 600px;
    width: 100%;
    margin: 20px 10px 10px 10px;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Adjusted from various gaps for consistency */
}

.form-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    margin-bottom: 22px; /* 47px total gap - 25px form gap */
}

.title-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.hand-icon-container {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.main-title {
    color: #38c57e;
    font-family: 'Zain', sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1.6;
    letter-spacing: -0.68px;
    margin: 0;
}

.subtitle {
    color: #3b5e4c;
    font-family: 'Zain', sans-serif;
    font-weight: 300;
    font-size: 25px;
    line-height: 1.6;
    letter-spacing: -0.56px;
    margin: 0;
    max-width: 532px;
}

.input-group {
    background-color: var(--light-green);
    border-radius: 7px;
    padding: 14px 10px;
    width: 100%;
    max-width: 532px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.input-group:nth-of-type(2) {
    justify-content: space-between;
}

.form-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    color: var(--primary-green);
    font-family: 'Zain', sans-serif;
    font-weight: 300;
    font-size: 24px;
    line-height: 1.6;
}

.form-input.password-input {
    text-align: right;
}

.form-input::placeholder {
    color: #91ae9f;
    opacity: 1;
}

.password-lock-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 11px;
}

.input-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
}

.checkbox-group {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 5px;
    align-self: flex-end;
    cursor: pointer;
}

.hidden-checkbox {
    display: none;
}

.checkbox-label {
    color: var(--primary-green);
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.6;
    letter-spacing: -0.44px;
    position: relative;
    padding-right: 40px; /* space for the checkbox */
    cursor: pointer;
}

.checkbox-label::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-green);
    border-radius: 4px;
    background: #fff;
}

.hidden-checkbox:checked + .checkbox-label::before {
    content: "✔"; /* the checkmark */
    font-size: 20px;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-icon {
    width: 30px;
    height: 30px;
}

.submit-button {
    background-color: var(--primary-green);
    border-radius: 12px;
    padding: 10px;
    width: 100%;
    max-width: 532px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-family: 'Zain', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -0.24px;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: var(--dark-green);
}

.login-arrow-icon {
    width: 32px;
    height: 32px;
    /*transform: rotate(180deg);*/
}

.form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 23px;
    margin-top: 22px; /* 47px total gap - 25px form gap */
}

.forgot-password-link, .signup-text, .signup-link {
    font-family: 'Zain', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -0.2px;
    text-decoration: none;
}

.forgot-password-link {
    color: var(--link-color);
}

.signup-text {
    color: var(--primary-green);
    margin: 0;
}

.signup-link {
    color: var(--link-color); /* Extracted from textStyle_46 */
}

@media (max-width: 640px) {
    .login-card {
        padding: 24px;
    }
    .main-title {
        font-size: 28px;
    }
    .subtitle {
        font-size: 22px;
    }
    .form-input {
        font-size: 20px;
    }
    .checkbox-label {
        font-size: 18px;
    }
    .submit-button, .forgot-password-link, .signup-text {
        font-size: 18px;
    }
}

/* Modal Background */
.modal {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 10px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: red;
}

/* CSS for section section:signup */
#signup {
    display: flex;
    justify-content: center;
    /*align-items: center;*/
    padding-bottom: 0;
}
.signup-container {
    background-color: var(--background-white);
    border: 0.5px solid var(--border-color);
    border-radius: 20px;
    padding: 39px 38px;
    max-width: 628px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 20px 10px 10px 10px;
}

.signup-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.signup-header.welcome-icon {
    position: relative;
    width: 64px;
    height: 64px;
}

.signup-header.title {
    color: var(--secondary-green);
    font-family: 'Zain', sans-serif;
    font-weight: 400;
    font-size: 34px;
    line-height: 1.6;
    letter-spacing: -0.68px;
    margin: 0;
}

.signup-header.subtitle {
    color: var(--text-green);
    font-family: 'Zain', sans-serif;
    font-weight: 300;
    font-size: 28px;
    line-height: 1.6;
    letter-spacing: -0.56px;
    margin: 0;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 14px; /* Corresponds to the vertical gap between inputs */
}

.signup-form.input-group {
    background-color: var(--background-light);
    border-radius: 7px;
    padding: 14px 10px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 11px;
    flex-grow: 1;
}

.signup-form.input-group.space-between {
    justify-content: space-between;
    flex-direction: row;
    gap: 16px;
}

.signup-form.input-sub-group {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 11px;
    flex-grow: 1;
}

.signup-form.input-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.signup-form.icon-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.signup-form.input-icon-left {
    width: 32px;
    height: 32px;
}

.signup-form.phone-group {
    display: flex;
    gap: 7px;
    align-items: start;
}

.signup-form.country-selector {
    background-color: var(--background-light);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.signup-form.country-selector img {
    width: 36px;
    height: 20px;
}

.signup-form.submit-button {
    background-color: var(--primary-green);
    color: var(--background-white);
    font-family: 'Zain', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: -0.24px;
    border-radius: 12px;
    padding: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 16px; /* Gap from last input */
}

.signup-form.submit-icon {
    width: 32px;
    height: 32px;
    transform: rotate(180deg);
}

.signup-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 23px;
    text-align: center;
}

.notice {
    color: var(--primary-green);
    font-family: 'Zain', sans-serif;
    font-weight: 700;
    font-size: 21px;
    line-height: 1.6;
    letter-spacing: -0.42px;
    margin: 0;
}

.login-prompt {
    color: var(--primary-green);
    /* Using Tajawal as a substitute for Expo Arabic */
    font-family: 'Tajawal', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -0.2px;
    margin: 0;
}

.login-prompt a {
    font-family: 'Zain', sans-serif;
    color: #4ac973; /* Specific green from textStyle_51 */
}

@media (max-width: 480px) {
    .signup-container {
        padding: 24px 16px;
    }
    .title {
        font-size: 28px;
    }
    .subtitle {
        font-size: 22px;
    }
    .notice, .login-prompt {
        font-size: 16px;
    }
}
