/* ==========================================================================
   COMPONENT: CTA FORM / ĐĂNG KÝ NHẬN TƯ VẤN TRỰC TIẾP
   Path: carbon-block/templates/components/cta-form-block/style.css
   ========================================================================== */

.cta-form {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    background-color: transparent;
    min-height: auto;
    display: flex;
    align-items: center;
}

/* Đảm bảo khối tràn viền toàn màn hình */
.cta-form.crb-block-fullwidth {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
    clear: both !important;
}

/* BACKGROUND IMAGE & OVERLAY TRÀN TOÀN MÀN HÌNH */
.cta-form__bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    overflow: hidden !important;
}

.cta-form__bg-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.cta-form__overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.35) !important;
    z-index: 2 !important;
}

/* CONTAINER TỐI ƯU KÍCH THƯỚC TOÀN KHUNG */
.cta-form__container {
    position: relative !important;
    z-index: 3 !important;
    width: 100% !important;
    max-width: var(--container-max-w, 1200px) !important;
    margin: 0 auto !important;
    padding: 36px 20px !important;
    box-sizing: border-box !important;
}

/* DẠNG 1: LAYOUT 2 CỘT CHO FORM */
.cta-form__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(30px, 5vw, 80px);
    width: 100%;
}

/* CỘT TRÁI: TIÊU ĐỀ & MÔ TẢ */
.cta-form__info {
    flex: 1 1 48%;
    max-width: 520px;
    box-sizing: border-box;
}

.cta-form__title {
    color: #FFFFFF;
    font-family: var(--font-heading, 'Nunito Sans', sans-serif);
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.cta-form__desc {
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    margin: 0;
    max-width: 480px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* CỘT PHẢI: FORM NHẬP THÔNG TIN */
.cta-form__form-wrap {
    flex: 1 1 50%;
    max-width: 520px;
    width: 100%;
    box-sizing: border-box;
}

.cta-form__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.cta-form__group {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.cta-form__input {
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 13px 18px;
    font-size: 15px;
    color: #1E293B;
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
    outline: none;
    box-sizing: border-box;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-form__input::placeholder {
    color: #8E9BA7;
    opacity: 1;
}

.cta-form__input:focus {
    border-color: var(--color-primary-second, #456967);
    box-shadow: 0 0 0 3px rgba(69, 105, 103, 0.25);
}

.cta-form__action {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

/* NÚT SUBMIT / ACTION */
.cta-form__submit {
    background-color: var(--color-primary-second, #456967);
    color: #FFFFFF;
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-form__submit:hover {
    background-color: #375351;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #FFFFFF;
}

.cta-form__btn-text {
    display: inline-block;
    line-height: 1;
}

.cta-form__btn-arrow {
    display: inline-block;
    line-height: 1;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.cta-form__submit:hover .cta-form__btn-arrow {
    transform: translateX(4px);
}

/* THÔNG BÁO FEEDBACK */
.cta-form__feedback {
    margin-top: 12px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 6px;
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
}

.cta-form__feedback--success {
    background-color: rgba(46, 125, 50, 0.95);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}

.cta-form__feedback--error {
    background-color: rgba(211, 47, 47, 0.95);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25);
}

/* DẠNG 2: BANNER NÚT BẤM CĂN GIỮA */
.cta-form__simple-wrap {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

.cta-form__title--center {
    text-align: center;
}

.cta-form__desc--center {
    text-align: center;
    margin: 0 auto 24px auto;
}

.cta-form__action--center {
    justify-content: center;
}

/* ==========================================================================
   RESPONSIVE (TABLET & MOBILE)
   ========================================================================== */
@media screen and (max-width: 991px) {
    .cta-form {
        min-height: auto;
    }

    .cta-form__container {
        padding: 32px 16px !important;
    }

    .cta-form__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
    }

    .cta-form__info,
    .cta-form__form-wrap {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .cta-form__title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .cta-form__desc {
        font-size: 15px;
    }

    .cta-form__input {
        padding: 13px 16px;
    }

    .cta-form__submit {
        width: 100%;
        padding: 14px 20px;
    }
}