/* Home Page Banner Form Styles */

/* Override fixed height for home hero with form */
.home-hero-with-form.CTA-hero {
    height: auto;
    min-height: 790px;
}

/* Two-column layout for hero section */
.home-hero-with-form .hero-dual-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 180px 60px 80px 60px;
    height: 100%;
}

/* Hero text content on the left */
.home-hero-with-form .hero-content-container {
    flex: 1;
    max-width: 650px;
    text-align: left;
}

.home-hero-with-form .fullstack-hero-body {
    text-align: left;
    padding-bottom: 24px;
}

.home-hero-with-form .hero-btn {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.home-hero-with-form .hero-btn a {
    margin-left: 0;
    margin-right: auto;
}

/* Form container on the right */
.hero-form-container {
    flex: 0 0 auto;
    width: 420px;
    border-radius: 40px 40px 0 40px;
    padding: 36px;
    box-sizing: border-box;
}

/* Form layout */
.banner-contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--padding-xl);
}

/* Form groups */
.banner-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--padding-xl);
}

/* Input fields */
    .banner-form-group input {
        background-color: transparent;
        border: 1px solid #ffffff;
        border-radius: 50px;
        padding: 12px 30px 10px 30px;
        color: #ffffff;
        font-size: 15px;
        font-family: 'Gilroy', sans-serif;
        outline: none;
        transition: border-color 0.3s ease;
    }

.banner-form-group input::placeholder {
    color: #AAAAAA;
    opacity: 1;
}

.banner-form-group input:focus {
    border-color: #008080;
}

/* Error styling */
.banner-error-message {
    color: #CE2121;
    font-size: 0.9em;
    margin-bottom: 0px;
    margin-top: 12px;
    display: block;
}

.banner-form-group input.error {
    border-color: #ef4444;
}

/* Submit button */
.banner-submit-btn {
    width: 100%;
    background-color: #008080;
    color: #ffffff;
    border: 1px solid #008080;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Gilroy', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    margin-top: 8px;
}

.banner-submit-btn:hover {
    border: 1px solid #008080;
    background: #0E2D2D;
}

.banner-submit-btn:focus {
    background: transparent;
}

.banner-submit-btn img {
    width: 24px;
    height: 24px;
}

/* Success message */
.hero-form-container.success-state {
    background: rgba(0, 128, 128, 0.1);
    border: 1px solid #008080;
    border-radius: 40px;
    padding: 60px 40px;
}

.banner-success-message {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.banner-success-message .success-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.banner-success-message h4 {
    color: #008080;
    font-size: 52px;
    margin-bottom: 12px;
    font-family: 'Gilroy', sans-serif;
    font-weight: 700;
    white-space: nowrap;
}

.banner-success-message p {
    color: #008080;
    font-size: 18px;
    line-height: 1.5;
}

/* Responsive breakpoints */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .home-hero-with-form .hero-dual-layout {
        gap: 40px;
        padding: 150px 40px 60px 40px;
    }

    .hero-form-container {
        width: 380px;
        padding: 32px;
    }
}

/* iPad Pro / Surface landscape tablets (1024px - 1199px) */
@media (min-width: 993px) and (max-width: 1199px) {
    .home-hero-with-form .hero-dual-layout {
        gap: 50px;
        padding: 140px 50px 70px 50px;
        max-width: 1200px;
    }

    .home-hero-with-form .hero-content-container {
        flex: 1;
        max-width: 600px;
    }

    .hero-form-container {
        flex: 0 0 auto;
        width: 400px;
        padding: 34px;
    }

    .banner-form-group label {
        font-size: 17px;
    }

    .banner-form-group input {
        padding: 13px 19px;
        font-size: 14px;
    }

    .banner-submit-btn {
        padding: 15px 22px;
        font-size: 15px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .home-hero-with-form.CTA-hero {
        height: auto;
        min-height: auto;
    }

    .home-hero-with-form .hero-dual-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 50px;
        padding: 120px 30px 70px 30px;
    }

    .home-hero-with-form .hero-content-container {
        max-width: 100%;
        text-align: center;
        height: auto !important;
        position: static !important;
    }

    .home-hero-with-form .hero-btn {
        display: flex;
        justify-content: center;
        position: static !important;
        bottom: auto !important;
        height: auto !important;
        margin-top: 0 !important;
        background-color: transparent !important;
        padding: 0 !important;
    }

    .home-hero-with-form .hero-btn a {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-form-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 32px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .home-hero-with-form .hero-dual-layout {
        padding: 100px 24px 60px 24px;
        gap: 40px;
    }

    .home-hero-with-form .hero-content-container {
        height: auto !important;
        position: static !important;
        margin: 0 !important;
    }

    .home-hero-with-form .hero-btn {
        position: static !important;
        bottom: auto !important;
        height: auto !important;
        margin-top: 0 !important;
        background-color: transparent !important;
        padding: 0 !important;
        justify-content: center;
    }

    .home-hero-with-form .hero-btn a {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-form-container {
        width: 100%;
        padding: 20px;
        border-radius: 20px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .banner-contact-form {
        gap: 0.4rem;
    }

    .banner-form-group input {
        padding: 12px 18px;
        font-size: 14px;
    }

    .banner-submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .home-hero-with-form .hero-dual-layout {
        padding: 80px 16px 50px 16px;
        gap: 32px;
    }

    .home-hero-with-form .hero-content-container {
        height: auto !important;
        position: static !important;
        margin: 0 !important;
    }

    .home-hero-with-form .hero-btn {
        position: static !important;
        bottom: auto !important;
        height: auto !important;
        margin-top: 0 !important;
        background-color: transparent !important;
        padding: 0 !important;
        justify-content: center;
    }

    .home-hero-with-form .hero-btn a {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-form-container {
        width: 100%;
        padding: 16px;
        border-radius: 18px;
        box-sizing: border-box;
    }

    .banner-contact-form {
        gap: 0.4rem;
    }

    .banner-form-group input {
        padding: 10px 16px;
        font-size: 13px;
    }

    .banner-submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}
