    /* Global Variables - Elegant Wedding Theme */
    :root {
        --primary: #9B7E6B; /* Warm elegant taupe/gold */
        --primary-hover: #7A6252;
        --bg-color: #FAF7F2; /* Soft warm white/blush */
        --text-main: #2C2C2C;
        --text-muted: #8A8A8A;
        --border-color: #E2E8F0;
        --input-bg: #FFFFFF;
        --error: #E53E3E;
        --font-serif: 'Montserrat', serif;
        --font-sans: 'Montserrat', sans-serif;
    }

    /* Form Wrapper Background */
    .quote-form-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2rem 1rem;
        /* background-color: var(--bg-color); */
        /* background-image: radial-gradient(circle at 50% 0%, #ffffff 0%, transparent 70%); */
        font-family: var(--font-sans);
    }

    /* Main Form Card */
    .quote-form {
        max-width: 460px;
        width: 100%;
        background: #ffffff;
        border-radius: 16px;
        padding: 2.5rem 2.5rem;
        border-top: 2px solid rgba(0, 0, 0, 0.10);
        border-left: 2px solid rgba(0, 0, 0, 0.10);
        box-shadow: 10px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0,0,0,0.02);
        position: relative;
        overflow: visible;
    }

    /* Progress Bar */
    .progress-wrapper {
        margin-bottom: 2rem;
    }
    .progress-text {
        font-size: 1.25rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin-bottom: 0.8rem;
        display: flex;
        justify-content:end;
        font-weight: 500;
    }
    .progress-container {
        width: 100%;
        background: #F0F0F0;
        height: 3px;
        border-radius: 4px;
        overflow: hidden;
    }
    .progress-bar {
        height: 100%;
        background: var(--primary);
        width: 50%;
        transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Heading */
    .step-indicator {
        font-size: 2.2rem;
        color: var(--text-main);
        margin-bottom: 2rem;
        font-weight: 600;
        text-align: left;
        font-family: var(--font-serif);
        line-height: 1.2;
    }
    .step-indicator span {
        font-family: var(--font-serif);
        color: var(--primary);
    }

    /* Steps Container */
    .form-steps-container {
        position: relative;
        min-height: 200px;
        overflow: visible;
    }

    .form-step {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateX(30px);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, visibility 0.5s;
    }

    .form-step.active {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        z-index: 2;
    }

    /* Input Fields */
    .form-el {
        margin-bottom: 1.5rem;
    }

    .floating-label {
        position: relative;
    }

    .floating-label input,
    .floating-label select {
        width: 100%;
        padding: 14px 12px 14px 16px;
        font-size: 2rem;
        font-family: var(--font-sans);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        color: var(--text-main);
        background-color: var(--input-bg);
        transition: all 0.3s ease;
        box-sizing: border-box;
        height: 52px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.01) inset;
    }

    .floating-label input:focus,
    .floating-label select:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(155, 126, 107, 0.1);
    }

    .floating-label label {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        padding: 0 4px;
        font-size: 1.25rem;
        color: var(--text-muted);
        pointer-events: none;
        transition: all 0.25s ease-out;
        font-family: var(--font-sans);
    }
    /* Float label logic */
    .floating-label input:not([type="hidden"]):focus ~ label,
    .floating-label input:not([type="hidden"]):not(:placeholder-shown) ~ label,
    .floating-label select:focus ~ label,
    .floating-label select:valid ~ label,
    .custom-select-wrapper.open label,
    .custom-select-wrapper.has-value label  {
        top: 0;
        font-size: 1.25rem;
        color: var(--primary);
        font-weight: 500;
        background: linear-gradient(180deg, #ffffff 50%, transparent 50%);
        background-color: #ffffff;
        border-radius: 4px;
        z-index: 10;
        letter-spacing: 0.5px;
    }

    /* Phone Input Elegance */
    .phone-input-row {
        display: flex;
        gap: 12px;
        align-items: center;
        width: 100%;
    }
    .country-wrapper {
        flex: 0 0 85px;
    }
    .country-wrapper .iti { width: 100%; }
    .country-wrapper input {
        width: 100%;
        padding: 14px 10px;
        font-size: 2rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background-color: var(--input-bg);
        height: 52px;
        text-align: center;
    }
    .country-wrapper input:focus {
        border-color: var(--primary);
        outline: none;
    }
    .number-wrapper { flex: 1; }

    /* Date Picker */
    .date-input-wrapper { position: relative; width: 100%; }
    .calendar-icon {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary);
        pointer-events: none;
        z-index: 5;
    }
    .calendar-icon svg { width: 20px; height: 20px; fill: currentColor; }

    /* Action Buttons (Arrows) */
    .action-row {
        display: flex;
        justify-content: flex-end; /* Pushes to the right */
        align-items: center;
        margin-top: 3rem;
        gap: 12px;
    }
    .action-row.between {
        justify-content:end;
    }

    .btn-icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .next-btn {
        background-color: var(--primary);
        color: #fff;
        box-shadow: 0 4px 10px rgba(155, 126, 107, 0.3);
    }
    .next-btn:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(155, 126, 107, 0.4);
    }
    .next-btn svg { width: 18px; height: 18px; fill: currentColor; transition: transform 0.3s;}
    .next-btn:hover svg { transform: translateX(2px); }

    .prev-btn {
        background-color: transparent;
        border: 1px solid;
        color: var(--text-muted);
    }
    .prev-btn:hover {
        border-color: var(--text-main);
        color: var(--text-main);
    }
    .prev-btn svg { width: 18px; height: 18px; fill: currentColor; transition: transform 0.3s;}
    .prev-btn:hover svg { transform: translateX(-2px); }


    .callback-subtitle {
        font-family: var(--font-sans);
        font-size: 1.75rem;
        text-transform: uppercase;
        letter-spacing: 3px;
        color: var(--primary);
        font-weight: 600;
        margin-bottom: 2rem;
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: center;
    }
    .callback-subtitle::before {
        content: "";
        display: block;
        width: 24px;
        height: 1px;
        background-color: var(--primary);
        opacity: 0.6;
    }
        .callback-subtitle::after{
        content: "";
        display: block;
        width: 24px;
        height: 1px;
        background-color: var(--primary);
        opacity: 0.6;
    }

    /* Captcha Centering */
    .qr-show { 
        display: none; 
        width: 100%;   
        justify-content: center; 
        align-items: center;     
        margin: 1rem 0; 
        opacity: 0;
        animation: slideUpFade 0.5s forwards ease-out;
    }

    /* ── Wrapper ── */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

/* ── Trigger ── */
.custom-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 12px 14px 16px;   /* same as your other inputs */
    border: 1px solid var(--border-color);
    border-radius: 8px;              /* match your 8px */
    background: var(--input-bg);
    cursor: pointer;
    height: 52px;                    /* exact same height */
    box-sizing: border-box;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.01) inset;
}

.custom-select:focus,
.custom-select-wrapper.open .custom-select {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(155, 126, 107, 0.1);
}

/* ── Floating label ── */
.custom-select__label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    padding: 0 4px;
    font-size: 1.25rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.25s ease-out;
    font-family: var(--font-sans);
}
/* Float up when a value is selected OR the dropdown is open */
.custom-select-wrapper.has-value .custom-select__label,
.custom-select-wrapper.open .custom-select__label {
    top: 0;
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    background: linear-gradient(180deg, #ffffff 50%, transparent 50%);
    background-color: #ffffff;
    border-radius: 4px;
    z-index: 10;
    letter-spacing: 0.5px;
    transform: translateY(-50%);
}

/* ── Arrow icon ── */
.custom-select__arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #888;
  transition: transform 0.2s;
}
.custom-select-wrapper.open .custom-select__arrow {
  transform: rotate(180deg);
}

/* ── Dropdown list ── */
.custom-select__options {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 1000;
  max-height: 220px;
  overflow-y: auto;
}

.custom-select__value {
  font-size: 2rem;
  font-family: var(--font-sans);
  color: var(--text-main);
}

.custom-select__option:hover,
.custom-select__option.focused {
    background: #FAF7F2;            /* your --bg-color */
}

.custom-select__option:last-child {
  border-bottom: none; 
}

.custom-select-wrapper.open .custom-select__options {
  display: block;
}

/* ── Individual option ── */
.custom-select__option {
  padding: 12px 14px;
  cursor: pointer;
  font-size: 15px;
  border-bottom: 1px solid #E0E0E0
}
.custom-select__option:hover,
.custom-select__option.focused {
    background: var(--bg-color);
  color: var(--primary); 
  padding-left: 20px; 

}
.custom-select__option.selected {
  color: var(--primary);
  font-weight: 500;
  background: var(--bg-color);
}

/* date picker */

/* --- Custom Flatpickr Month Dropdown --- */
    .flatpickr-monthDropdown-months {
        display: none !important; /* Hide the native browser select */
    }
    
    .custom-month-select {
        position: relative;
        display: inline-block;
        margin-left: 5px;
        vertical-align: middle;
        cursor: pointer;
        font-family: inherit;
    }

    .custom-month-display {
        display: inline-block;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 16px;
        font-weight: 500;
        color: #4a5568;
    }

    .custom-month-display:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .custom-month-display::after {
        content: "▼";
        font-size: 10px;
        margin-left: 6px;
        vertical-align: middle;
        opacity: 0.7;
    }

    .custom-month-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #ffffff;
        border: 1px solid var(--border-color);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        list-style: none;
        padding: 8px 0;
        margin: 5px 0 0 0;
        border-radius: 8px;
        width: 130px;
        z-index: 1000;
        max-height: 220px;
        overflow-y: auto;
    }

    .custom-month-list.open {
        display: block;
        animation: slideDownFade 0.2s ease-out;
    }

    .custom-month-list li {
        padding: 8px 16px;
        font-size: 14px;
        color: var(--text-main);
        transition: all 0.2s ease;
        text-align: left;
    }

    .custom-month-list li:hover {
        background: #f7fafc;
        color: var(--primary);
    }

    .custom-month-list li.disabled {
        opacity: 0.3;
        pointer-events: none;
        background: transparent;
    }

    .flatpickr-calendar,
    .flatpickr-months,
    .flatpickr-month {
        overflow: visible !important;
    }
    
    .flatpickr-months {
        position: relative !important;
        z-index: 10 !important;
    }
    
    .flatpickr-innerContainer {
        position: relative !important;
        z-index: 1 !important;
    }

    /* Hide the native browser select and native year input */
    .flatpickr-monthDropdown-months,
    .flatpickr-current-month .numInputWrapper {
        display: none !important; 
    }
    
    /* Shared wrapper styles */
    .custom-month-select,
    .custom-year-select {
        position: relative;
        display: inline-block;
        margin-left: 5px;
        vertical-align: middle;
        cursor: pointer;
        font-family: inherit;
    }

    /* Shared display styles */
    .custom-month-display,
    .custom-year-display {
        display: inline-block;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 16px;
        font-weight: 500;
        color: #4a5568;
    }

    .custom-month-display:hover,
    .custom-year-display:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .custom-month-display::after,
    .custom-year-display::after {
        content: "▼";
        font-size: 10px;
        margin-left: 6px;
        vertical-align: middle;
        opacity: 0.7;
    }

    /* Shared list styles */
    .custom-month-list,
    .custom-year-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #ffffff;
        border: 1px solid var(--border-color);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        list-style: none;
        padding: 8px 0;
        margin: 5px 0 0 0;
        border-radius: 8px;
        z-index: 1000;
        max-height: 220px;
        overflow-y: auto;
    }

    .custom-month-list { width: 130px; }
    .custom-year-list { width: 90px; text-align: center; }

    .custom-month-list.open,
    .custom-year-list.open {
        display: block;
        animation: slideDownFade 0.2s ease-out;
    }

    .custom-month-list li,
    .custom-year-list li {
        padding: 8px 16px;
        font-size: 14px;
        color: var(--text-main);
        transition: all 0.2s ease;
    }
    .custom-month-list li { text-align: left; }

    .custom-month-list li:hover,
    .custom-year-list li:hover {
        background: #f7fafc;
        color: var(--primary);
    }

    .custom-month-list li.disabled {
        opacity: 0.3;
        pointer-events: none;
        background: transparent;
    }

    /* Ensure Flatpickr header allows the custom dropdown to spill out */
    .flatpickr-calendar,
    .flatpickr-months,
    .flatpickr-month {
        overflow: visible !important;
    }
    .flatpickr-months {
        position: relative !important;
        z-index: 10 !important;
    }
    .flatpickr-innerContainer {
        position: relative !important;
        z-index: 1 !important;
    }

    /* Add this to your existing CSS - just for styling */
#date-error-msg {
    display: none;
    color: var(--error);
    font-size: 1.2rem;
    margin-top: 6px;
    padding-left: 16px;
    animation: slideUpFade 0.3s ease-out;
}

#date-error-msg i {
    margin-right: 5px;
}

    @keyframes slideDownFade {
        from { opacity: 0; transform: translate(-50%, -10px); }
        to { opacity: 1; transform: translate(-50%, 0); }
    }



    @keyframes slideUpFade {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Success Message */
    .success-inline {
        display: none;
        text-align: center;
        padding: 2rem 0;
    }
    .success-inline .icon-circle { 
        width: 60px; height: 60px; 
        border-radius: 50%; 
        background: #E8F5E9; 
        color: #2E7D32; 
        display: flex; justify-content: center; align-items: center; 
        margin: 0 auto 1.5rem; 
    }
    .success-inline .icon-circle svg { width: 30px; height: 30px; fill: currentColor; }
    .success-inline h2 { font-family: var(--font-serif); font-size: 2rem; color: var(--text-main); margin-bottom: 0.5rem; }
    .success-text{ font-size: 1.2rem; color: var(--text-muted); }

    @media screen and (max-width: 600px) {
        .quote-form { padding: 2rem 1.5rem; 
        box-shadow: 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0,0,0,0.02);
        }
        .step-indicator { font-size: 1.8rem; }
        .country-wrapper { flex: 0 0 75px; }
    }
