/* Borrow Page Specific Styles */

/* Header modifications for borrow page */
.header-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.BORROW {
    width: 76px;
    height: 18px;
    margin: 20px 36px 2px 0;
    font-family: Lato;
    font-size: 15px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: 1.25px;
    color: #0f0899 !important;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 2px solid #0f0899;
    padding-bottom: 20px;
}

.Partner {
    width: 80px;
    height: 18px;
    margin: 20px 36px 2px 0;
    font-family: Lato;
    font-size: 15px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: 1.25px;
    color: #6b6b6b !important;
    text-decoration: none;
    text-transform: uppercase;
}

.Rectangle-2-Copy {
    width: 150px;
    height: 56px;
    margin: 0 0 0 0;
    padding: 19px 5.1px 19px 5.1px;
    border-radius: 8px;
    border: solid 2px #ffffff;
    background-color: #0f0899;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.APPLY-NOW {
    width: 139.8px;
    height: 18px;
    font-family: Lato;
    font-size: 15px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: 1.25px;
    text-align: center;
    color: #ffffff;
}

.Rectangle-2-Copy:hover {
    background-color: #0a0670;
}

/* Borrow Hero Section */
.borrow-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 634px;
    margin: 0 auto;
    padding-bottom: 50px;
    background-image: url('../images/borrow/hero_bg.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    object-fit: contain;
    position: relative;
}

/* For retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .borrow-hero {
        background-image: url('../images/borrow/hero_bg_2x.png');
    }
}

@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
    .borrow-hero {
        background-image: url('../images/borrow/hero_bg_3x.png');
    }
}

.borrow-hero-content {
    max-width: 100%;
    width: 100%;
    margin-bottom: 0;
    z-index: 1;
}

.borrow-hero h1 {
    width: 100%;
    max-width: 780px;
    height: auto;
    min-height: 48px;
    margin: 0 auto 20px auto;
    object-fit: contain;
    font-family: 'Lato', sans-serif;
    font-size: 40px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 20px;
    margin-bottom: 0;
    width: 100%;
}

.hero-feature {
    background-color: transparent;
    width: auto;
    height: 24px;
    margin: 0 0 75px;
    padding: 0;
    object-fit: contain;
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    text-align: center;
    white-space: nowrap;
    position: relative;
}

.hero-feature:not(:last-child)::after {
    content: '|';
    display: inline-block;
    margin: 0 20px;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 300;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.borrow-hero-image {
    display: none;
}

/* How It Works Section */
.how-it-works {
    padding: 145px 16px 0;
    background-color: #ffffff;
}

.how-it-works h2 {
    width: 100%;
    max-width: 382px;
    height: 42px;
    margin: 0 auto 39px;
    object-fit: contain;
    font-family: 'Lato', sans-serif;
    font-size: 35px;
    font-weight: 900;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
    color: #000000;
}

.section-subtitle {
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: #646464;
    text-align: center;
    margin-bottom: 50px;
}

.how-it-works .section-subtitle {
    width: 100%;
    max-width: 800px;
    height: 30px;
    margin: 0 auto 77px;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.67;
    letter-spacing: 1.2px;
    text-align: center;
    color: #4a4a4a;
}

.how-it-works-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
}

.work-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.work-step-icon {
    width: 150px;
    height: 150px;
    margin: 0 35px 33px;
    border: solid 6px #ffffff;
    background-color: #f4f8fc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.work-step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.work-step h3 {
    width: 220px;
    height: 38px;
    margin: 33px 0 0;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 300;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: 1px;
    text-align: center;
    color: #252525;
}

.work-step p {
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: #646464;
    display: none;
}

/* What Need Section */
.what-need {
    padding: 164px 16px 164px;
    background-color: #ffffff;
}

.what-need h2 {
    width: 100%;
    max-width: 642px;
    height: 42px;
    margin: 0 auto 38px;
    object-fit: contain;
    font-family: 'Lato', sans-serif;
    font-size: 35px;
    font-weight: 900;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
    color: #000000;
}

.what-need .section-subtitle {
    width: 100%;
    max-width: 700px;
    height: 60px;
    margin: 0 auto 137px;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.67;
    letter-spacing: 1.2px;
    text-align: center;
    color: #4a4a4a;
}

.need-process {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1200px;
    margin: 50px auto 0;
    position: relative;
    overflow: visible;
}

.connecting-path {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 400px;
    z-index: 0;
    pointer-events: none;
}

.process-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    position: relative;
}

.process-row.bottom-row {
    margin-top: 90px;
}


.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

.process-step.text-above {
    flex-direction: column;
}

.process-step.text-below {
    flex-direction: column;
}

.process-step.large-step .process-icon {
    background-color: #001c71;
}

.process-icon {
    width: 150px;
    height: 150px;
    margin: 0;
    border: solid 6px #ffffff;
    background-color: #edf4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.process-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.process-step h3 {
    width: 268px;
    height: 42px;
    margin: 28px 0;
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: 1.2px;
    text-align: center;
    color: #6864af;
}

/* Why Borrow Section */
.why-borrow {
    padding: 80px 16px;
    background-color: #f0f0f0;
}

.why-borrow h2 {
    width: 100%;
    max-width: 538px;
    height: 42px;
    margin: 0 auto 38px;
    object-fit: contain;
    font-family: 'Lato', sans-serif;
    font-size: 35px;
    font-weight: 900;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
    color: #000000;
}

.why-borrow .section-subtitle {
    width: 100%;
    max-width: 700px;
    height: 60px;
    margin: 0 auto 20px;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.67;
    letter-spacing: 1.2px;
    text-align: center;
    color: #4a4a4a;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0 auto 40px;
    padding: 0;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
    outline: none;
}

.carousel-dot:hover {
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: #0f0899;
    transform: scale(1.3);
}

/* Carousel Container */
.why-borrow-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    width: 400%;
    transition: transform 0.6s ease-in-out;
    transform: translateX(0);
}

.carousel-slide {
    width: 25%;
    flex-shrink: 0;
    opacity: 1;
}

.why-borrow-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1100px;
    margin: 50px auto 0;
    align-items: center;
}

.why-borrow-illustration {
    width: 385px;
    height: 385px;
    flex-shrink: 0;
}

.why-borrow-illustration img {
    width: 385px;
    height: 385px;
    object-fit: contain;
}

.why-borrow-features h3 {
    width: auto;
    max-width: 100%;
    min-height: 42px;
    margin: 0 0 14px 0;
    font-family: 'Lato', sans-serif;
    font-size: 35px;
    font-weight: bold;
    font-stretch: normal;
    font-style: italic;
    line-height: normal;
    letter-spacing: normal;
    color: #000000;
}

.feature-list-borrow {
    width: 478px;
    height: auto;
    min-height: 160px;
    margin: 14px 0 0 0;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 2.22;
    letter-spacing: 1.2px;
    color: #000000;
}

.feature-item-borrow {
    display: flex;
    align-items: flex-start;
    gap: 0;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: normal;
    line-height: 2.22;
    letter-spacing: 1.2px;
    color: #000000;
    word-wrap: break-word;
}

.feature-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 8px 9.5px 0 1.5px;
    background-color: #10B981;
    color: #ffffff !important;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
    flex-shrink: 0;
}

.feature-item-borrow span:not(.feature-check) {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: normal;
    line-height: 2.22;
    letter-spacing: 1.2px;
    color: #000000;
    flex: 1;
    word-wrap: break-word;
}

.feature-item-borrow .At-DigiBorrow-we-pro,
.At-DigiBorrow-we-pro {
    width: 478px;
    height: 75px;
    margin: 13px 33px 20px 0;
    margin-bottom: 20px !important;
    font-family: Lato, sans-serif !important;
    font-size: 16px !important;
    font-weight: normal !important;
    font-stretch: normal !important;
    font-style: normal !important;
    line-height: 1.56 !important;
    letter-spacing: normal !important;
    color: #000 !important;
    display: block;
    flex: none !important;
}

.btn-borrow-now {
    width: 177px;
    height: 56px;
    margin: 25px 0 0 0;
    padding: 17px 25px;
    border-radius: 34px;
    border: solid 1px #0f0899;
    background-color: #0f0899;
    font-family: 'Avenir', sans-serif;
    font-size: 16px;
    font-weight: 900;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.btn-borrow-now:hover {
    background-color: #0a0670;
}

/* Contact Section */
.contact-section {
    padding: 80px 16px;
    background-color: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-wrapper h2 {
    width: 556px;
    height: 36px;
    margin: 0 0 15px;
    font-family: 'Lato', sans-serif;
    font-size: 30px;
    font-weight: 900;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: 1.71px;
    color: #000000;
}

.form-subtitle {
    width: 363px;
    height: 19px;
    margin: 15px 0 30px 0;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: 0.91px;
    color: #666666;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    color: #000000;
}

.form-group label .required {
    color: #ff0000;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    color: #000000;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #092f7b;
}

.form-group textarea {
    resize: vertical;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: #092f7b;
}

.phone-prefix {
    padding: 12px 8px 12px 16px;
    background-color: #f3f4f6;
    color: #999999;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: normal;
    user-select: none;
    cursor: default;
    border-right: 1px solid #d1d5db;
}

.phone-input-wrapper input {
    flex: 1;
    border: none;
    padding: 12px 16px 12px 8px;
    border-radius: 0;
}

.phone-input-wrapper input:focus {
    outline: none;
    border: none;
}

.btn-submit {
    width: 148px;
    height: 56px;
    margin: 40px 0 50px 0;
    padding: 16px 34px 15px 35px;
    border-radius: 6px;
    border: none;
    background-color: #0f0899;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 900;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
    color: #ffffff;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.btn-submit:hover {
    background-color: #0a0670;
}

/* Contact Info */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.contact-info-box {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.contact-info-box h3 {
    width: auto;
    max-width: 203px;
    height: 36px;
    margin: 0 0 29px 0;
    font-family: 'Lato', sans-serif;
    font-size: 30px;
    font-weight: 900;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #000000;
}

.call-us-columns {
    display: flex;
    flex-direction: row;
    gap: 60px;
    flex-wrap: wrap;
}

.call-us-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.office-address-columns {
    display: flex;
    flex-direction: row;
    gap: 60px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 10px;
}

.call-us-column .info-label {
    width: auto;
    max-width: 249px;
    height: 22px;
    margin: 0 0 15px 0;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #8b8b8b;
}

.call-us-column .info-value {
    width: auto;
    max-width: 268px;
    height: 19px;
    margin: 0 0 10px 0;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #333333;
}

.country-code {
    color: #999999;
    font-weight: normal;
    cursor: default;
    user-select: none;
}

.info-value a {
    color: #333333;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: #0f0899;
}

.address-group {
    flex: 1;
    min-width: 250px;
}

.address-group h4 {
    width: auto;
    max-width: 210px;
    height: 22px;
    margin: 0 0 15px 0;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #8b8b8b;
}

.address-group p {
    width: auto;
    max-width: 248px;
    margin: 15px 0 19px 0;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #333333;
}

/* Footer */
.footer {
    background-color: #f3f4f6;
    padding: 40px 16px 20px;
}

.footer .container {
    text-align: left;
}

.footer-links {
    width: auto;
    max-width: 587px;
    height: 36px;
    margin: 14px 0 10px 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 40px;
}

.footer-links a {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 2.57;
    letter-spacing: 0.8px;
    color: #6c6c6c;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0;
    padding: 0;
}

.footer-links a:hover {
    color: #0f0899;
}

.footer-text {
    width: auto;
    margin: 10px 0 0 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.83;
    letter-spacing: normal;
    text-align: left;
    color: rgba(108, 108, 108, 0.5);
    white-space: nowrap;
}

.footer-text .bold {
    font-weight: normal;
}

/* Responsive Design */
@media (min-width: 640px) {
    .borrow-hero {
        padding: 332px 60px 50px 60px;
        height: 634px;
    }

    .borrow-hero-content {
        max-width: 90%;
    }

    .hero-features {
        flex-wrap: wrap;
        justify-content: center;
    }

    .how-it-works-grid {
        flex-wrap: wrap;
        gap: 0;
    }

    .process-row {
        flex-wrap: wrap;
    }
}

@media (min-width: 768px) {
    .Rectangle-2-Copy {
        display: flex;
    }

    .borrow-hero {
        padding: 332px 120px 50px 120px;
        height: 634px;
    }

    .borrow-hero-content {
        max-width: 800px;
        margin-bottom: 0;
    }

    .borrow-hero h1 {
        max-width: 780px;
        font-size: 40px;
        line-height: normal;
        text-align: center;
        color: #ffffff;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
        margin: 0 auto 20px auto;
    }

    .hero-features {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 0;
    }

    .hero-feature {
        height: 24px;
        font-size: 20px;
        font-weight: bold;
        line-height: normal;
        letter-spacing: normal;
        color: #ffffff;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
        text-align: center;
        white-space: nowrap;
    }

    .how-it-works h2 {
        font-size: 35px;
        max-width: 382px;
    }

    .what-need h2 {
        font-size: 35px;
        max-width: 642px;
    }

    .what-need .section-subtitle {
        max-width: 700px;
        font-size: 18px;
        letter-spacing: 1.2px;
    }

    .why-borrow h2 {
        font-size: 35px;
        max-width: 538px;
    }

    .why-borrow .section-subtitle {
        max-width: 700px;
        font-size: 18px;
        letter-spacing: 1.2px;
    }

    .section-subtitle {
        font-size: 18px;
    }

    .how-it-works .section-subtitle {
        max-width: 800px;
        font-size: 18px;
        letter-spacing: 1.2px;
    }

    .how-it-works-grid {
        flex-wrap: nowrap;
        gap: 0;
    }

    .process-row {
        flex-wrap: nowrap;
        justify-content: center;
    }

    .process-step {
        padding: 0 40px;
    }

    .why-borrow-content {
        flex-direction: row-reverse;
        align-items: center;
        gap: 60px;
    }

    .why-borrow-illustration {
        flex-shrink: 0;
    }

    .why-borrow-features {
        flex: 1;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }

    .call-us-columns {
        flex-wrap: nowrap;
    }

    .office-address-columns {
        flex-wrap: nowrap;
    }

    .contact-form-wrapper h2 {
        font-size: 30px;
        max-width: 556px;
    }
}

@media (min-width: 1024px) {
    .borrow-hero {
        padding: 332px 240px 0px 241px;
        height: 634px;
    }

    .borrow-hero-content {
        max-width: 1000px;
    }

    .borrow-hero h1 {
        max-width: 780px;
        font-size: 40px;
        line-height: normal;
        color: #ffffff;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
        margin: 0 auto 20px auto;
    }

    .hero-features {
        flex-wrap: nowrap;
        justify-content: center;
        margin-bottom: 0;
    }

    .hero-feature {
        height: 24px;
        font-size: 20px;
        font-weight: bold;
        line-height: normal;
        letter-spacing: normal;
        white-space: nowrap;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    }

    .process-row {
        justify-content: center;
    }

    .process-step {
        padding: 0 50px;
    }
}

/* Animations */
.work-step,
.process-step {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.work-step:nth-child(2) {
    animation-delay: 0.1s;
}

.work-step:nth-child(3) {
    animation-delay: 0.2s;
}

.process-step:nth-child(2) {
    animation-delay: 0.1s;
}

.process-step:nth-child(3) {
    animation-delay: 0.2s;
}

.process-step:nth-child(4) {
    animation-delay: 0.3s;
}

.process-step:nth-child(5) {
    animation-delay: 0.4s;
}

.process-step:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1;
    transition: background-color 0.3s ease;
}

.modal.active .modal-overlay {
    background-color: rgba(0, 0, 0, 0.71);
}

.modal-content {
    position: relative;
    background-color: #fafafa;
    border-radius: 5px;
    max-width: 1073px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    padding: 40px 55px 50px;
    display: flex;
    flex-direction: column;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal.closing .modal-content {
    transform: scale(0.7);
    opacity: 0;
}

.modal.closing .modal-overlay {
    background-color: rgba(0, 0, 0, 0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #0f0899;
}

.modal-step {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.modal-title {
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #0f0899;
    text-align: center;
    letter-spacing: 0.96px;
    margin-bottom: 12px;
}

.modal-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #666666;
    text-align: center;
    letter-spacing: 0.64px;
    margin-bottom: 40px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 1;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    position: relative;
}

.form-field.full-width {
    flex: 1 1 100%;
}

.error-message {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #dc2626;
    letter-spacing: 0.48px;
    display: block;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(-5px);
    margin-top: 0;
}

.error-message.show {
    min-height: 18px;
    max-height: 100px;
    opacity: 1 !important;
    margin-top: 4px;
    transform: translateY(0);
    display: block !important;
    visibility: visible !important;
}

.form-field.has-error input,
.form-field.has-error select {
    border-color: #dc2626;
}

.form-field.has-error input:focus,
.form-field.has-error select:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-field label {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #a4a4a4;
    letter-spacing: 0.56px;
}

.form-field input,
.form-field select {
    height: 55px;
    padding: 0 15px;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    background-color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.56px;
    outline: none;
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field select:focus {
    border-color: #0f0899;
}

.form-field input::placeholder {
    color: #a4a4a4;
    font-weight: 400;
}

/* Remove number input arrows */
.form-field input[type="number"]::-webkit-inner-spin-button,
.form-field input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-field input[type="number"] {
    -moz-appearance: textfield;
}

.form-field select option[value=""] {
    color: #a4a4a4;
    font-weight: 400;
}

.form-field select:invalid {
    color: #a4a4a4;
    font-weight: 400;
}

.form-field select:valid {
    color: #000000;
    font-weight: 700;
}

.form-field select option:not([value=""]) {
    color: #000000;
    font-weight: 700;
}

.date-input-wrapper {
    position: relative;
    width: 100%;
}

.date-input-wrapper input[type="text"] {
    width: 100%;
    padding-right: 45px;
    position: relative;
    z-index: 1;
}

.hidden-date-input {
    position: absolute;
    opacity: 0;
    width: 50px;
    height: 55px;
    right: 0;
    top: 0;
    cursor: pointer;
    z-index: 2;
    pointer-events: auto;
}

.calendar-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.calendar-icon:hover {
    opacity: 0.7;
}

.calendar-icon:active {
    opacity: 0.5;
}

.calendar-icon svg {
    pointer-events: none;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    cursor: pointer;
}

.dropdown-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #000000;
    font-size: 8px;
}

.input-with-action {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-action input {
    flex: 1;
    padding-right: 80px;
}

.send-otp {
    position: absolute;
    right: 15px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #0f0899;
    text-decoration: underline;
    letter-spacing: 0.56px;
    cursor: pointer;
}

.send-otp:hover {
    color: #0a0670;
}

.terms-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkbox-error {
    margin-left: 33px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkbox-custom {
    min-width: 21px;
    width: 21px;
    height: 21px;
    border: 1px solid #c3c3c3;
    border-radius: 5px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked ~ .checkbox-custom {
    background-color: #0f0899;
    border-color: #0f0899;
}

.checkbox-wrapper input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '✓';
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

.terms-text {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    line-height: 24px;
    letter-spacing: 0.56px;
}

.terms-link {
    color: #0f0899;
    text-decoration: underline;
}

.terms-link:hover {
    color: #0a0670;
}

.form-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: auto;
}

.support-text {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    line-height: 24px;
    letter-spacing: 0.56px;
}

.support-text strong {
    font-weight: 700;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-modal {
    height: 60px;
    min-width: 143px;
    padding: 0 30px;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.64px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-modal.btn-primary {
    background-color: #0f0899;
    color: #ffffff;
    border: 2px solid #0f0899;
}

.btn-modal.btn-primary:hover {
    background-color: #0a0670;
    border-color: #0a0670;
}

.btn-modal.btn-secondary {
    background-color: #ffffff;
    color: #0f0899;
    border: 2px solid #0f0899;
}

.btn-modal.btn-secondary:hover {
    background-color: #f0f0ff;
}

/* Step 3 - Redirect Screen */
.modal-step-redirect {
    align-items: center;
    justify-content: center;
    min-height: 295px;
    padding: 40px 20px;
}

.redirect-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 499px;
    text-align: center;
}

.redirect-title {
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #0f0899;
    line-height: 34px;
    letter-spacing: 0.96px;
}

/* Responsive Design */
@media (min-width: 640px) {
    .form-row {
        flex-direction: row;
    }
    
    .modal-content {
        padding: 50px 70px 60px;
    }
}

@media (min-width: 768px) {
    .form-row {
        gap: 54px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .redirect-title {
        font-size: 24px;
    }
}

@media (max-width: 639px) {
    .modal-content {
        width: 95%;
        padding: 30px 20px 40px;
        max-height: 95vh;
    }
    
    .button-group {
        flex-direction: column-reverse;
    }
    
    .btn-modal {
        width: 100%;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-subtitle {
        font-size: 14px;
    }
}

