/* =============================================
   CF7 MULTI-STEP FORM — LUXURY ORIENTAL THEME
   Font: Cormorant Garamond (display) + Be Vietnam Pro (body)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Be+Vietnam+Pro:wght@300;400;500;600&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --gold: #C9933A;
    --gold-light: #E8C070;
    --gold-pale: #F5E9CE;
    --deep: #1A1208;
    --surface: #FDFAF4;
    --surface-2: #F7F1E3;
    --border: #E2D5B8;
    --border-focus: #C9933A;
    --text-main: #2C2010;
    --text-sub: #7A6840;
    --text-muted: #A89468;
    --error: #C0392B;
    --success: #5A8A5A;
    --radius: 10px;
    --radius-sm: 10px;
    --shadow-card: 0 8px 40px rgba(100, 70, 10, 0.10);
    --shadow-btn: 0 4px 18px rgba(201, 147, 58, 0.35);
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.row .nd_hd_form p {
    margin-bottom: 10px;
    color: #000;
}

.row .box_item_form p {
    margin-bottom: 10px;
}

.hd_form h1 {
    color: #000;
}

.log_form {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.box_item_form p {
    margin-bottom: 15px;
}

input[type=checkbox],
input[type=radio] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #D0BF99;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
    margin: 0;
}

/* =============================================
   WRAPPER
   ============================================= */
.wpcf7,
.wpcf7-form {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--text-main);
    max-width: 720px;
    margin: 0 auto;
}

/* =============================================
   PROGRESS BAR
   ============================================= */
.cf7-progress-wrapper {
    margin-bottom: 15px;
    padding: 28px 36px 22px;
    background: rgb(24 12 101);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.cf7-progress-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 60%, rgba(201, 147, 58, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 30%, rgba(201, 147, 58, 0.09) 0%, transparent 50%);
    pointer-events: none;
}

.cf7-progress-bar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.cf7-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cf7-step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid #fff;
    color: rgb(255 255 255);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cf7-step-label {
    font-size: 10px;
    color: #fff;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: var(--transition);
}

.cf7-progress-step.active .cf7-step-circle {
    background: var(--gold);
    border-color: var(--gold-light);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(201, 147, 58, 0.22), 0 0 24px rgba(201, 147, 58, 0.45);
}

.cf7-progress-step.active .cf7-step-label {
    color: var(--gold-light);
    font-weight: 600;
}

.cf7-progress-step.completed .cf7-step-circle {
    background: rgba(90, 138, 90, 0.85);
    border-color: #7fba7f;
    color: #fff;
    font-size: 0;
}

.cf7-progress-step.completed .cf7-step-circle::after {
    content: '✓';
    font-size: 19px;
    font-family: sans-serif;
    font-weight: 800;
}

.cf7-progress-step.completed .cf7-step-label {
    color: #7fba7f;
}

.cf7-progress-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    min-width: 20px;
    max-width: 80px;
    margin-bottom: 34px;
    transition: background 0.45s ease;
}

.cf7-progress-line.completed {
    background: rgba(90, 138, 90, 0.65);
}

/* =============================================
   STEP CONTAINER
   ============================================= */
.cf7-step {
    display: none;
    background: var(--surface);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    animation: fadeUp 0.38s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   HEADINGS
   ============================================= */
.cf7-step h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 27px;
    font-weight: 700;
    color: var(--deep);
    text-align: center;
    line-height: 1.35;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.cf7-step h2::after {
    content: '';
    display: block;
    width: 52px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
    border-radius: 2px;
    margin: 12px auto 0;
}

.cf7-step h3.title_form {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    background: linear-gradient(135deg, #FEF5DD 0%, #FBE8B5 100%);
    border: 1px solid #EDD898;
    border-left: 4px solid var(--gold);
    padding: 13px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 0;
    margin-bottom: 15px;
}

/* =============================================
   BOX ITEM
   ============================================= */
.box_item_form {
    margin-bottom: 15px;
}

.box_item_form:last-child {
    margin-bottom: 0;
}

.box_item_form>label {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.55;
}

.box_item_form>p {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-sub);
    font-style: italic;
    margin: -6px 0 12px;
    line-height: 1.5;
}

/* =============================================
   TEXT / TEL / EMAIL / DATE INPUTS
   ============================================= */
.cf7-step input[type="text"],
.cf7-step input[type="tel"],
.cf7-step input[type="email"],
.cf7-step input[type="date"],
.cf7-step textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 14.5px;
    color: var(--text-main);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
    height: 49px;
    margin-bottom: 0;
}

.cf7-step input[type="text"]:hover,
.cf7-step input[type="tel"]:hover,
.cf7-step input[type="email"]:hover,
.cf7-step input[type="date"]:hover,
.cf7-step textarea:hover {
    border-color: #D4BC88;
}

.cf7-step input[type="text"]:focus,
.cf7-step input[type="tel"]:focus,
.cf7-step input[type="email"]:focus,
.cf7-step input[type="date"]:focus,
.cf7-step textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3.5px rgba(201, 147, 58, 0.14), inset 0 1px 3px rgba(0, 0, 0, 0.04);
    background: #FFFDF8;
}

.cf7-step input::placeholder,
.cf7-step textarea::placeholder {
    color: #C8B88E;
    font-weight: 300;
}

.cf7-step textarea {
    min-height: 115px;
    resize: vertical;
    line-height: 1.65;
}

.cf7-step input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.45;
    filter: sepia(1) saturate(3) hue-rotate(5deg);
}

/* =============================================
   CUSTOM RADIO BUTTONS
   ============================================= */
.field_form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cf7-step .wpcf7-radio {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cf7-step .wpcf7-list-item,
.cf7-step span.wpcf7-list-item {
    display: block;
    margin: 0 !important;
}

.cf7-step .wpcf7-list-item label,
.cf7-step span.wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 18px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-main);
    transition: var(--transition);
    line-height: 1.5;
    user-select: none;
    position: relative;
}

.cf7-step .wpcf7-list-item label:hover,
.cf7-step span.wpcf7-list-item label:hover {
    border-color: var(--gold);
    background: var(--gold-pale);
    color: var(--deep);
    box-shadow: 0 2px 10px rgba(201, 147, 58, 0.1);
}

/* Hide native radio */
.cf7-step .wpcf7-radio input[type="radio"],
.cf7-step .wpcf7-list-item input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #D0BF99;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
    margin: 0;
}

.cf7-step .wpcf7-radio input[type="radio"]::after,
.cf7-step .wpcf7-list-item input[type="radio"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 9px;
    height: 9px;
    background: var(--gold);
    border-radius: 50%;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cf7-step .wpcf7-radio input[type="radio"]:checked,
.cf7-step .wpcf7-list-item input[type="radio"]:checked {
    border-color: var(--gold);
    background: var(--gold-pale);
    box-shadow: 0 0 0 3px rgba(201, 147, 58, 0.18);
}

.cf7-step .wpcf7-radio input[type="radio"]:checked::after,
.cf7-step .wpcf7-list-item input[type="radio"]:checked::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Highlight full card on checked */
.cf7-step .wpcf7-list-item:has(input:checked) label {
    border-color: var(--gold);
    background: linear-gradient(135deg, #FEF9EE 0%, #FAF0CE 100%);
    box-shadow: 0 2px 14px rgba(201, 147, 58, 0.13);
    font-weight: 600;
    color: var(--deep);
}

/* =============================================
   NAVIGATION BUTTONS
   ============================================= */
.cf7-step .next-step,
.cf7-step .prev-step {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    padding: 13px 34px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    margin-right: 10px;
}

/* Next — gold gradient */
.cf7-step .next-step {
    background: #180c65;
    color: #fff;
    box-shadow: var(--shadow-btn);
    position: relative;
    overflow: hidden;
}

.cf7-step .next-step::after {
    content: '→';
    font-size: 16px;
    transition: transform 0.2s ease;
}

.cf7-step .next-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 147, 58, 0.42);
}

.cf7-step .next-step:hover::after {
    transform: translateX(3px);
}

.cf7-step .next-step:active {
    transform: translateY(0);
}

/* Shimmer */
.cf7-step .next-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.55s ease;
}

.cf7-step .next-step:hover::before {
    left: 130%;
}

/* Prev — ghost */
.cf7-step .prev-step {
    background: transparent;
    color: var(--text-sub);
    border: 1.5px solid var(--border);
}

.cf7-step .prev-step::before {
    content: '←';
    font-size: 15px;
}

.cf7-step .prev-step:hover {
    background: var(--surface-2);
    border-color: var(--gold);
    color: var(--gold);
}

/* Submit button */
.cf7-step input[type="submit"],
.wpcf7-submit {
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 14px 36px !important;
    background: linear-gradient(135deg, var(--deep) 0%, #3A2A0A 100%) !important;
    color: var(--gold-light) !important;
    border: 1.5px solid var(--gold) !important;
    border-radius: var(--radius-sm) !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(26, 18, 8, 0.3) !important;
    transition: var(--transition) !important;
    margin: 0;
}

.cf7-step input[type="submit"]:hover,
.wpcf7-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(26, 18, 8, 0.38) !important;
}

/* Footer row */
.ft_forms {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* =============================================
   ERROR MESSAGES
   ============================================= */
.cf7-error-msg {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--error);
    font-size: 12.5px;
    font-weight: 500;
    margin-top: 7px;
    padding: 7px 12px;
    background: rgba(192, 57, 43, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--error);
    animation: fadeUp 0.2s ease;
}

.cf7-error-msg::before {
    content: '!';
    font-weight: 800;
    font-size: 11px;
    width: 17px;
    height: 17px;
    background: var(--error);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

input.cf7-field-error,
textarea.cf7-field-error {
    border-color: var(--error) !important;
    background: rgba(192, 57, 43, 0.03) !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1) !important;
}

.field_form.cf7-field-error {
    padding: 10px;
    border-radius: var(--radius-sm);
    background: rgba(192, 57, 43, 0.03);
    border: 1px solid rgba(192, 57, 43, 0.2);
}

/* =============================================
   WPCF7 SYSTEM MESSAGES
   ============================================= */
.wpcf7-not-valid-tip {
    color: var(--error);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.wpcf7-response-output {
    margin-top: 16px !important;
    padding: 14px 18px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 13.5px !important;
    border: none !important;
}

.wpcf7-mail-sent-ok {
    background: #EEF7EE !important;
    color: var(--success) !important;
    border-left: 4px solid var(--success) !important;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: #FDF0EE !important;
    color: var(--error) !important;
    border-left: 4px solid var(--error) !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
    .cf7-step {
        padding: 26px 20px;
    }

    .cf7-progress-wrapper {
        padding: 20px 16px 16px;
    }

    .cf7-step-label {
        font-size: 9px;
        max-width: 56px;
        text-align: center;
        white-space: normal;
    }

    .cf7-step-circle {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .cf7-progress-line {
        min-width: 10px;
        max-width: 36px;
    }

    .cf7-step h2 {
        font-size: 21px;
    }

    .cf7-step .next-step,
    .cf7-step .prev-step {
        width: 100%;
        margin-right: 0;
        padding: 14px 20px;
    }

    .ft_forms {
        flex-direction: column-reverse;
    }

    .ft_forms>* {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .cf7-step-label {
        display: none;
    }
}