/* CTA Section */
.cta-section {
    padding: 0 40px;
    margin-bottom: 64px;
    background-color: #ffffff;
}

.cta-container {
    max-width: 1440px;
    margin: 0 auto;
}

.cta-wrapper {
    background-color: #FAF5F2;
    padding: 60px 40px;
    border-radius: 24px;
}

.cta-content {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 60px;
    align-items: flex-start;
}

/* Left Content */
.cta-left {
    display: flex;
    flex-direction: column;
}

.cta-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 135%;
    color: #8D6E63;
    margin: 0 0 16px;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.cta-heading.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.cta-divider {
    width: 60px;
    height: 3px;
    background-color: #8D6E63;
    border-radius: 2px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.cta-divider.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.cta-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: #000000;
    margin: 0;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s;
}

.cta-description.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.cta-description-gap {
    margin-top: 16px;
}

.cta-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
    align-items: flex-start;
}

.cta-contact-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background-color: transparent;
    border: 1px solid #8D6E63;
    border-radius: 8px;
    text-decoration: none;
    color: #22313F;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    width: 280px;
    max-width: 100%;
    box-sizing: border-box;
}

.cta-contact-btn:hover {
    background-color: #8D6E63;
    color: #ffffff;
    border-color: #8D6E63;
}

.cta-contact-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: #8D6E63;
    transition: fill 0.3s;
}

.cta-contact-btn:hover svg {
    fill: #ffffff;
}

/* Right Content */
.cta-right {
    display: flex;
    align-items: flex-start;
    min-width: 0;
}

.cta-form-card {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 40px;
    align-items: flex-end;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.cta-form-card.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.cta-form-section {
    flex: 0 0 auto;
    width: 356px;
    max-width: 100%;
}

.cta-form-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: #22313F;
    margin: 0 0 24px;
}

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

.cta-form-group {
    display: flex;
    flex-direction: column;
}

.cta-form-group label {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 100%;
    color: #22313F;
    margin-bottom: 8px;
}

.cta-form-group .required {
    color: #E53935;
    margin-left: 2px;
}

.cta-form-group input {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 100%;
    padding: 14px 16px;
    border: 1px solid #6C7A89;
    border-radius: 8px;
    background-color: #ffffff;
    color: #22313F;
    transition: border-color 0.3s;
}

.cta-form-group input::placeholder {
    color: #939393;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.cta-form-group input:focus {
    outline: none;
    border-color: #8D6E63;
}

.cta-submit-btn {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 100%;
    color: #ffffff;
    background-color: #8D6E63;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
}

.cta-submit-btn:hover {
    background-color: #7A5E56;
    transform: translateY(-2px);
}

.cta-submit-btn:active {
    transform: translateY(0);
}

/* CTA Image */
.cta-image-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    flex-shrink: 0;
    flex: 1;
}

.cta-image {
    width: 370px;
    max-width: 100%;
    height: auto;
    display: block;
    align-self: flex-end;
}

/* Responsive */
@media (max-width: 1024px) {
    .cta-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-form-card {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-form-section {
        width: 100%;
    }

    /* Image goes to bottom */
    .cta-image-wrapper {
        order: 1;
        justify-content: center;
    }

    .cta-image {
        max-width: 260px;
    }
}

@media (max-width: 992px) {
    .cta-section {
        padding: 0 16px;
        margin-bottom: 40px;
    }

    .cta-wrapper {
        padding: 32px 16px;
        border-radius: 16px;
    }

    .cta-heading {
        font-size: 28px;
    }

    .cta-description {
        font-size: 18px;
    }

    .cta-form-card {
        padding: 24px;
        gap: 24px;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        box-sizing: border-box;
    }

    .cta-form-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .cta-form-group input {
        width: 100%;
        box-sizing: border-box;
    }

    .cta-submit-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .cta-contact-buttons {
        margin-top: 24px;
        align-items: flex-start;
    }

    .cta-contact-btn {
        width: 280px;
        max-width: 100%;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    /* Image at the bottom */
    .cta-image-wrapper {
        order: 1;
        justify-content: center;
    }

    .cta-image {
        max-width: 220px;
    }
}
