/* Qatar Cost Calculator v3 — Aurora Restrained */

.app-theme {
    /* Surfaces */
    --bg:           #FAFAFB;
    --surface:      #FFFFFF;
    --surface-alt:  #F7F7FA;
    --surface-hover:#F1F0F7;

    /* Borders */
    --border:        #E6E6ED;
    --border-strong: #D4D4DE;

    /* Accent — indigo (the ONE accent) */
    --accent:        #6366F1;
    --accent-soft:   #EEF0FF;
    --accent-hover:  #4F46E5;

    /* Text */
    --text:        #1A1A2E;
    --text-2:      #4A4A6A;
    --text-mu:     #8888A0;
    --text-soft:   #B0B0C0;

    /* Status */
    --success:     #10B981;
    --error-bg:    #FEF2F2;
    --error-border:#FECACA;
    --error-text:  #B91C1C;
}

/* =========================================================
   ROOT
   ========================================================= */
.qcc {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    background:
        radial-gradient(ellipse 600px 400px at top right, rgba(99, 102, 241, 0.05), transparent 60%),
        radial-gradient(ellipse 500px 350px at bottom left, rgba(236, 72, 153, 0.025), transparent 55%),
        var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(20, 20, 35, 0.18), 0 4px 12px rgba(20, 20, 35, 0.06);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
    color: var(--text);
    box-sizing: border-box;
    font-variant-numeric: tabular-nums;
}
.qcc *, .qcc *::before, .qcc *::after { box-sizing: border-box; }
.qcc--inline { box-shadow: 0 1px 3px rgba(20,20,35,0.06); }

/* =========================================================
   TITLE BAR
   ========================================================= */
.qcc-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.qcc-titlebar-mark {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.qcc-titlebar-mark svg { width: 18px; height: 18px; stroke: currentColor; }
.qcc-titlebar-text { flex: 1; min-width: 0; }
.qcc-titlebar-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.015em;
    line-height: 1.2;
}
.qcc-titlebar-brand--gradient {
    background: linear-gradient(90deg, #6366F1, #EC4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.015em;
}
.qcc-titlebar-caption {
    font-size: 12px;
    color: var(--text-mu);
    margin-top: 2px;
    font-weight: 500;
}
.qcc-close {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-mu);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}
.qcc-close:hover { background: var(--surface-hover); color: var(--text); }
.qcc-close svg { width: 16px; height: 16px; stroke: currentColor; }

/* =========================================================
   DESKTOP TRUST STRIP — horizontal badges below titlebar
   ========================================================= */
.qcc-trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
}
.qcc-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-2);
    text-decoration: none;
    line-height: 1.3;
    padding: 2px 0;
    transition: color 0.15s ease;
}
.qcc-trust-badge--link { cursor: pointer; }
.qcc-trust-badge--link:hover { color: var(--accent); }
.qcc-trust-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    flex-shrink: 0;
}
.qcc-trust-badge-icon svg { width: 12px; height: 12px; stroke: currentColor; }
.qcc-trust-badge-icon--star svg {
    width: 13px; height: 13px;
    fill: currentColor;
}
.qcc-trust-badge-text strong {
    color: var(--text);
    font-weight: 700;
    margin-right: 3px;
}
.qcc-trust-badge-ext {
    width: 11px;
    height: 11px;
    color: var(--text-mu);
    margin-left: 2px;
    flex-shrink: 0;
}
.qcc-trust-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
}

/* =========================================================
   MOBILE TRUST BAR (visible only on mobile)
   ========================================================= */
.qcc-mobile-trust {
    display: none; /* shown only on mobile via media query */
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--accent-soft);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text);
    line-height: 1.3;
}
.qcc-mobile-trust-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    flex-shrink: 0;
}
.qcc-mobile-trust-check svg { width: 11px; height: 11px; stroke: currentColor; }
.qcc-mobile-trust-text { flex: 1; min-width: 0; font-weight: 500; }
.qcc-mobile-trust-text strong { font-weight: 700; color: var(--text); }
.qcc-mobile-trust-toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: var(--accent);
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
}
.qcc-mobile-trust-toggle svg { width: 11px; height: 11px; stroke: currentColor; transition: transform 0.2s ease; }
.qcc-mobile-trust-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.qcc-mobile-trust-details {
    display: none; /* shown only on mobile via media query when not [hidden] */
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
}
.qcc-mobile-trust-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-2);
    text-decoration: none;
    line-height: 1.4;
}
.qcc-mobile-trust-row svg { width: 13px; height: 13px; stroke: var(--text-mu); flex-shrink: 0; }
.qcc-mobile-trust-row strong { color: var(--text); font-weight: 600; }
.qcc-mobile-trust-row--link { color: var(--text-2); }
.qcc-mobile-trust-row--link:hover { color: var(--accent); }

/* =========================================================
   BODY (sidebar + main)
   ========================================================= */
.qcc-body { display: flex; }

.qcc-sidebar {
    width: 260px;
    flex-shrink: 0;
    padding: 22px 18px;
    border-right: 1px solid var(--border);
    background: var(--surface-alt);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.qcc-sb-section { /* nothing by default */ }
.qcc-sb-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mu);
    margin-bottom: 10px;
}

/* Trust list — premium icon rows */
.qcc-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.qcc-trust-item { display: block; }
.qcc-trust-item, .qcc-trust-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 4px;
    font-size: 12.5px;
    color: var(--text-2);
    line-height: 1.4;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.12s ease;
}
.qcc-trust-link { cursor: pointer; }
.qcc-trust-link:hover { background: var(--surface-hover); color: var(--text); }
.qcc-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    flex-shrink: 0;
}
.qcc-trust-icon svg { width: 11px; height: 11px; stroke: currentColor; }
.qcc-trust-text strong { color: var(--text); font-weight: 600; margin-right: 3px; }
.qcc-trust-ext { width: 11px; height: 11px; color: var(--text-mu); margin-left: auto; flex-shrink: 0; }

/* Journey checklist */
.qcc-journey {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.qcc-journey::before {
    content: '';
    position: absolute;
    /* Dots are 18px wide and centered at item left padding (4px) + 9px = 13px from item edge.
       Item has 4px left padding, dot is 18px starting at 4px, center at 4+9=13px. */
    left: 12.25px;
    top: 18px;
    bottom: 18px;
    width: 1.5px;
    background: var(--border);
    z-index: 0;
}
.qcc-journey-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 4px;
    font-size: 13px;
    color: var(--text-mu);
    line-height: 1.4;
    transition: color 0.15s ease;
    position: relative;
    z-index: 1;
}
.qcc-journey-dot {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--surface-alt);
    border: 1.5px solid var(--border);
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.qcc-journey-text {
    transition: color 0.15s ease, font-weight 0.15s ease;
    flex: 1;
    min-width: 0;
}
/* Done state — filled with checkmark */
.qcc-journey-item.is-done .qcc-journey-dot {
    background: var(--accent);
    border-color: var(--accent);
}
.qcc-journey-item.is-done .qcc-journey-dot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 47%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 4px;
    height: 7px;
    border: solid #fff;
    border-width: 0 1.8px 1.8px 0;
}
.qcc-journey-item.is-done .qcc-journey-text {
    color: var(--text-2);
    font-weight: 500;
}
/* Current state — accent ring with pulse glow */
.qcc-journey-item.is-current .qcc-journey-dot {
    background: var(--surface-alt);
    border-color: var(--accent);
    border-width: 2px;
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.qcc-journey-item.is-current .qcc-journey-dot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
.qcc-journey-item.is-current .qcc-journey-text {
    color: var(--text);
    font-weight: 600;
}

/* Live estimate card */
.qcc-sb-estimate { /* shown only when populated */ }
.qcc-estimate-card {
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface) 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}
.qcc-estimate-range {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.01em;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.qcc-estimate-meta {
    font-size: 11px;
    color: var(--text-mu);
    margin-top: 4px;
    font-weight: 500;
}

.qcc-sb-foot {
    margin-top: auto;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    color: var(--text-mu);
    line-height: 1.4;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}
.qcc-icon-shield { width: 14px; height: 14px; color: var(--text-mu); flex-shrink: 0; margin-top: 1px; }

/* =========================================================
   MAIN
   ========================================================= */
.qcc-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--surface);
}

/* Step indicator */
/* Stepper wrap — sticky on mobile, static on desktop */
.qcc-stepper-wrap {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.qcc-step-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 22px 14px;
    flex-wrap: wrap;
}
.qcc-step-bar {
    flex: 0 1 28px;
    min-width: 18px;
    max-width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--border);
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}
.qcc-step-bar.is-done { background: var(--accent); }
.qcc-step-bar.is-active::after {
    content: "";
    position: absolute; inset: 0; width: 0;
    background: var(--accent);
    border-radius: 2px;
    animation: qcc-step-fill 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes qcc-step-fill { from { width: 0; } to { width: 100%; } }
.qcc-step-label {
    font-size: 11px;
    color: var(--text-mu);
    font-weight: 500;
    margin-left: 8px;
    white-space: nowrap;
}

/* Content wrapper */
.qcc-content {
    flex: 1;
    padding: 8px 22px 18px;
    display: flex;
    flex-direction: column;
}

/* =========================================================
   PANES (steps)
   ========================================================= */
.qcc-pane { display: none; }
.qcc-pane.is-active {
    display: block;
    animation: qcc-fade 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes qcc-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.qcc-q {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 6px 0 14px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.qcc-sub-q {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    margin: 14px 0 8px;
}

/* Visa count slider */
.qcc-slider-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px 14px;
    margin-top: 6px;
}
.qcc-slider-readout {
    text-align: center;
    margin-bottom: 14px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}
.qcc-slider-value {
    font-size: 36px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.025em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.qcc-slider-unit {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-mu);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.qcc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    margin: 0;
}
.qcc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: var(--accent);
    border: 3px solid var(--surface);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35), 0 0 0 1px var(--border);
    transition: transform 0.12s ease;
}
.qcc-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.qcc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--accent);
    border: 3px solid var(--surface);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35), 0 0 0 1px var(--border);
}
.qcc-slider-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-mu);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.qcc-help {
    font-size: 12px;
    color: var(--text-mu);
    margin: 6px 0 0;
}

/* =========================================================
   OPTION CARDS
   ========================================================= */
.qcc-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.qcc-options--row {
    flex-direction: row;
    gap: 8px;
}
.qcc-options--row > .qcc-card { flex: 1; }
.qcc-options--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.qcc-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    text-align: left;
    position: relative;
    user-select: none;
}
/* Hide radio inputs visually but keep them in the document flow & accessible.
   Using `hidden` attribute can break click/checked interaction in some browsers. */
.qcc-card-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.qcc-card:hover {
    border-color: var(--border-strong);
    background: var(--surface-hover);
}
.qcc-card.is-selected {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.qcc-card.is-selected::after {
    content: "";
    position: absolute;
    top: 8px; right: 10px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-size: 11px 11px;
    background-repeat: no-repeat;
    background-position: center;
}
.qcc-card-icon {
    width: 36px; height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qcc-card-icon svg { width: 55%; height: 55%; stroke: currentColor; }
.qcc-card.is-selected .qcc-card-icon { background: var(--accent); color: #FFFFFF; }
.qcc-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.qcc-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.qcc-card-desc {
    font-size: 12px;
    color: var(--text-mu);
    line-height: 1.4;
    font-weight: 400;
}
.qcc-card--compact { padding: 10px 12px; gap: 8px; }
.qcc-card--compact .qcc-card-icon { width: 28px; height: 28px; }
.qcc-card--compact .qcc-card-title { font-size: 13px; }

.qcc-tag {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 7px;
    border-radius: 8px;
    line-height: 1.3;
}

/* =========================================================
   FLOATING LABEL FIELDS
   ========================================================= */
.qcc-field {
    position: relative;
    display: block;
    margin-bottom: 10px;
}
.qcc-input {
    width: 100%;
    min-height: 52px;
    padding: 18px 12px 6px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.qcc-input::placeholder { color: var(--text-soft); }
.qcc-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.qcc-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238888A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 32px;
}

/* Textarea for the optional message field */
.qcc-textarea {
    min-height: 88px;
    line-height: 1.5;
    resize: vertical;
    padding-top: 22px;
    padding-bottom: 10px;
    font-family: inherit;
}
.qcc-field--textarea .qcc-field-label {
    /* Don't shift label to top-center — keep at top-left so it doesn't collide with text */
    top: 16px;
}
.qcc-field--textarea .qcc-input:focus ~ .qcc-field-label,
.qcc-field--textarea .qcc-input.has-value ~ .qcc-field-label,
.qcc-field--textarea .qcc-input:not(:placeholder-shown) ~ .qcc-field-label {
    top: 6px;
}

.qcc-field.is-floating .qcc-field-label {
    position: absolute;
    left: 12px;
    top: 16px;
    font-size: 13px;
    color: var(--text-mu);
    pointer-events: none;
    transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease, font-weight 0.15s ease;
    font-weight: 400;
    background: transparent;
}
.qcc-field.is-floating .qcc-input:focus ~ .qcc-field-label,
.qcc-field.is-floating .qcc-input.has-value ~ .qcc-field-label,
.qcc-field.is-floating .qcc-input:not(:placeholder-shown) ~ .qcc-field-label,
.qcc-field.is-floating select.qcc-input:valid ~ .qcc-field-label,
.qcc-field--phone.has-placeholder .qcc-field-label {
    top: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
}

/* =========================================================
   COMPOUND PHONE FIELD (country-code dropdown + phone input)
   ========================================================= */
.qcc-field-shell { margin-bottom: 10px; }
.qcc-phone-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.qcc-field--phone { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }

/* Hide native selects that are enhanced into custom dropdowns */
.qcc-cc-native, .qcc-nat-native {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0; pointer-events: none;
    clip: rect(0 0 0 0);
}

/* Country-code trigger button */
.qcc-cc-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 118px;
}
.qcc-cc-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: 52px;
    padding: 0 8px 0 12px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.qcc-cc-trigger:hover { border-color: var(--border-strong); }
.qcc-cc-trigger:focus-visible,
.qcc-cc-trigger[aria-expanded="true"] {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.qcc-cc-flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    /* Improve emoji rendering on macOS/Windows */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.qcc-cc-code {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    flex: 1 1 auto;
    text-align: left;
}
.qcc-cc-caret {
    width: 14px;
    height: 14px;
    color: var(--text-mu);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.qcc-cc-trigger[aria-expanded="true"] .qcc-cc-caret { transform: rotate(180deg); }

/* =========================================================
   GENERIC COMBO (full-width, label-on-top — e.g. Nationality)
   ========================================================= */
.qcc-combo--full { position: relative; margin-bottom: 10px; }
.qcc-combo--full .qcc-field-label {
    /* Reuses the floating-label position rules from .qcc-field.is-floating */
    position: absolute;
    left: 12px;
    top: 16px;
    font-size: 13px;
    color: var(--text-mu);
    pointer-events: none;
    transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease, font-weight 0.15s ease;
    font-weight: 400;
    background: transparent;
}
.qcc-combo--full .qcc-combo-trigger.has-value ~ .qcc-field-label,
.qcc-combo--full .qcc-combo-trigger[aria-expanded="true"] ~ .qcc-field-label {
    top: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}
.qcc-combo-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 18px 36px 6px 12px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}
.qcc-combo-trigger:hover { border-color: var(--border-strong); }
.qcc-combo-trigger:focus-visible,
.qcc-combo-trigger[aria-expanded="true"] {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.qcc-combo-flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.qcc-combo-flag:empty { display: none; }
.qcc-combo-value {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.qcc-combo-trigger:not(.has-value) .qcc-combo-value { color: transparent; }
.qcc-combo-caret {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-mu);
    transition: transform 0.15s ease;
}
.qcc-combo-trigger[aria-expanded="true"] .qcc-combo-caret {
    transform: translateY(-50%) rotate(180deg);
}

/* =========================================================
   DROPDOWN POPUP (rendered to body)
   ========================================================= */

/* Backdrop — appended as a sibling under the popup. Catches clicks and
   guarantees nothing visually bleeds through if any popup layer has
   transparency from host theme overrides. */
.qcc-dd-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483645 !important;
    background: rgba(15, 17, 28, 0.32) !important;
    animation: qcc-dd-fade 0.16s ease;
    /* Allow clicks to pass through to the outside-click handler that closes the popup */
    pointer-events: auto;
}

.qcc-dd-popup {
    position: fixed;
    z-index: 2147483646 !important;
    /* !important opaque background — defeats any host theme that resets bg */
    background: #FFFFFF !important;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 17, 28, 0.18), 0 2px 8px rgba(15, 17, 28, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: qcc-dd-pop 0.16s cubic-bezier(0.16, 1, 0.3, 1);
    /* Establish own stacking context */
    isolation: isolate;
}
@keyframes qcc-dd-pop {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.qcc-dd-popup-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    background: #FFFFFF !important;
}
.qcc-dd-search {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 2;
}
.qcc-dd-search-icon {
    width: 16px;
    height: 16px;
    color: var(--text-mu);
    flex-shrink: 0;
}
.qcc-dd-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    padding: 4px 0;
}
.qcc-dd-search-input::placeholder { color: var(--text-mu); }
.qcc-dd-close {
    display: none; /* hidden by default; shown on mobile drawer */
    border: 0;
    background: transparent;
    padding: 4px;
    cursor: pointer;
    color: var(--text-mu);
    border-radius: 6px;
    flex-shrink: 0;
}
.qcc-dd-close:hover { background: var(--surface-hover); color: var(--text); }
.qcc-dd-close svg { width: 18px; height: 18px; display: block; }
.qcc-dd-list {
    list-style: none;
    padding: 6px 0;
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1 1 auto;
    min-height: 0;
    background: #FFFFFF !important;
}
.qcc-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--text-2);
    cursor: pointer;
    transition: background 0.08s ease;
}
.qcc-dd-item.is-highlight,
.qcc-dd-item:hover { background: var(--accent-soft); color: var(--text); }
.qcc-dd-item.is-selected { background: var(--surface-hover); color: var(--text); font-weight: 500; }
.qcc-dd-item.is-selected.is-highlight { background: var(--accent-soft); }
.qcc-dd-item-flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.qcc-dd-item-label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qcc-dd-item-code {
    font-size: 13px;
    color: var(--text-mu);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    flex-shrink: 0;
}
.qcc-dd-empty {
    padding: 24px 14px;
    text-align: center;
    color: var(--text-mu);
    font-size: 13px;
    list-style: none;
}

/* =========================================================
   MOBILE DRAWER VARIANT (bottom sheet)
   =========================================================
   Layout strategy:
   - Drawer fixed to bottom of viewport
   - Explicit height (75dvh) so iOS Safari can't collapse it
   - Inner flex column: grabber (12px) + search header (auto, flex-shrink:0)
     + scrollable list (flex:1)
   - Safe-area padding at bottom prevents iOS home indicator collision
========================================================= */
.qcc-dropdown-locked { overflow: hidden; position: fixed; width: 100%; }
.qcc-dd-popup--drawer {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    height: 75dvh !important;
    max-height: 75dvh !important;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 32px rgba(15, 17, 28, 0.28);
    animation: qcc-dd-slide-up 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    /* Push content above iOS home indicator */
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.qcc-dd-popup--drawer .qcc-dd-popup-inner {
    height: 100%;
}
/* Drag handle bar at top of drawer */
.qcc-dd-grabber {
    width: 36px;
    height: 4px;
    background: rgba(15, 17, 28, 0.18);
    border-radius: 99px;
    margin: 8px auto 4px;
    flex-shrink: 0;
}
.qcc-dd-popup--drawer .qcc-dd-search {
    padding: 8px 12px 12px !important;
    /* Header is the first/second flex child — naturally pinned at top */
    position: relative !important;
    top: auto !important;
    flex-shrink: 0;
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--border) !important;
}
.qcc-dd-popup--drawer .qcc-dd-close { display: inline-flex !important; }
.qcc-dd-popup--drawer .qcc-dd-search-input { font-size: 16px !important; } /* prevent iOS zoom */
.qcc-dd-popup--drawer .qcc-dd-list {
    padding: 4px 0 12px !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    -webkit-overflow-scrolling: touch;
}
.qcc-dd-popup--drawer .qcc-dd-item {
    padding: 14px 16px !important;
    font-size: 15px !important;
}
@keyframes qcc-dd-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@keyframes qcc-dd-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Backdrop must always be solid + visible on mobile */
@media (max-width: 640px) {
    .qcc-dd-backdrop {
        background: rgba(15, 17, 28, 0.5) !important;
    }
}

/* =========================================================
   TURNSTILE MOUNT
   ========================================================= */
.qcc-turnstile-mount { margin-top: 10px; min-height: 0; }
.qcc-turnstile-mount:not(:empty) { margin-top: 10px; }

/* =========================================================
   ERRORS
   ========================================================= */
.qcc-error {
    color: var(--error-text);
    font-size: 12px;
    margin-top: 6px;
    min-height: 0;
}
.qcc-error:not(:empty) {
    margin-top: 8px;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 6px;
    padding: 6px 10px;
}
.qcc-input.has-error { border-color: var(--error-border); }

/* =========================================================
   NAV (back / continue / submit)
   ========================================================= */
.qcc-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    align-items: center;
}

.qcc-btn-primary {
    background: var(--accent);
    color: #FFFFFF;
    border: none;
    padding: 0 22px;
    height: 44px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, transform 0.08s ease;
    position: relative;
    margin-left: auto;
}
.qcc-btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.qcc-btn-primary:active { transform: translateY(1px); }
.qcc-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.qcc-btn-primary.is-loading {
    color: transparent !important;
    pointer-events: none;
    cursor: wait;
}
.qcc-btn-primary.is-loading::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 18px; height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: qcc-spinner 0.7s linear infinite;
}
@keyframes qcc-spinner { to { transform: rotate(360deg); } }

.qcc-btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 0 16px;
    height: 38px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.qcc-btn-secondary:hover:not(:disabled) {
    background: var(--surface-hover);
    border-color: var(--border-strong);
}
.qcc-btn-prev { margin-right: auto; }
.qcc-btn-prev[hidden] { display: none; }

/* =========================================================
   RESULT
   ========================================================= */
.qcc-result-pane.is-active { display: block; }
.qcc-result {
    text-align: center;
    padding: 8px 0;
}
.qcc-result-icon {
    width: 48px; height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    display: flex; align-items: center; justify-content: center;
}
.qcc-result-icon svg { width: 22px; height: 22px; stroke: currentColor; }
.qcc-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}
.qcc-result-num {
    font-size: 30px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 4px 0;
    font-variant-numeric: tabular-nums;
    /* Allow long ranges to wrap on small screens */
    word-spacing: 0.08em;
}
.qcc-result-num .qcc-result-dash {
    color: var(--text-mu);
    font-weight: 400;
    margin: 0 4px;
}
.qcc-result-range {
    font-size: 12px;
    color: var(--text-mu);
    margin-bottom: 14px;
    line-height: 1.5;
}
.qcc-result-range strong {
    color: var(--text-2);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.qcc-result-range .qcc-result-sep {
    margin: 0 8px;
    color: var(--border-strong);
}
.qcc-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mu);
    margin-bottom: 8px;
    text-align: left;
}
.qcc-breakdown-wrap {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: left;
    margin: 10px 0;
}
.qcc-breakdown {
    list-style: none;
    padding: 0;
    margin: 0;
}
.qcc-breakdown li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
}
.qcc-breakdown li:last-child { border-bottom: none; }
.qcc-breakdown li span:first-child { color: var(--text-2); }
.qcc-breakdown li span:last-child { color: var(--text); font-weight: 500; }
.qcc-breakdown li.is-discount span:last-child { color: var(--success); }

.qcc-msg-h {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 4px 0 8px;
    letter-spacing: -0.01em;
}
.qcc-msg-body {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
    max-width: 360px;
    margin: 0 auto 14px;
}

/* Thank-you / wrap-up message on the result pane */
.qcc-result-message {
    max-width: 420px;
    margin: 18px auto 0;
    text-align: center;
}
.qcc-result-message p {
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.6;
    margin: 0 0 10px;
}
.qcc-result-message p:last-child { margin-bottom: 0; }
.qcc-result-message strong {
    color: var(--text);
    font-weight: 600;
}
.qcc-result-message .qcc-result-meta {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    font-size: 12px;
    color: var(--text-mu);
}

/* Close button on result page (replaces nav after submission) */
.qcc-result-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 24px auto 0;
    padding: 10px 28px;
    background: var(--surface-alt);
    color: var(--text-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.qcc-result-close:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: var(--border-strong);
}

.qcc-result-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    max-width: 280px;
    margin: 14px auto 8px;
}
.qcc-result-cta .qcc-btn-primary,
.qcc-result-cta .qcc-btn-secondary {
    margin: 0;
    width: 100%;
}
.qcc-edit {
    display: inline-block;
    margin-top: 4px;
    color: var(--text-mu);
    font-size: 12px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    text-decoration: underline;
}
.qcc-edit:hover { color: var(--text-2); }

/* =========================================================
   TRIGGER BUTTON
   ========================================================= */
.qcc-trigger {
    display: inline-block;
    padding: 0 22px;
    height: 44px;
    background: var(--accent, #6366F1);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: background 0.15s ease, transform 0.08s ease;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.25);
}
.qcc-trigger:hover { background: #4F46E5; transform: translateY(-1px); }
.qcc-trigger:active { transform: translateY(0); }

/* =========================================================
   FLOATING BUTTON (auto-load mode)
   ========================================================= */
.qcc-floating {
    position: fixed !important;
    z-index: 2147483640 !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    gap: 8px;
    padding: 0 18px 0 14px;
    height: 48px;
    background: #6366F1;
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.32), 0 2px 8px rgba(20, 20, 35, 0.10);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    animation: qcc-floating-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.4s backwards;
    text-decoration: none !important;
    line-height: 1 !important;
}
.qcc-floating:hover {
    background: #4F46E5;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4), 0 4px 12px rgba(20, 20, 35, 0.12);
}
.qcc-floating:active { transform: translateY(0); }
.qcc-floating svg {
    width: 18px; height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}
.qcc-floating--bottom-right { bottom: 22px; right: 22px; }
.qcc-floating--bottom-left  { bottom: 22px; left: 22px; }

@keyframes qcc-floating-in {
    0%   { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hide the floating button while modal is open */
body.qcc-modal-open .qcc-floating { opacity: 0; pointer-events: none; }

@media (max-width: 480px) {
    .qcc-floating {
        height: 44px;
        padding: 0 16px 0 12px;
        font-size: 13px;
    }
    .qcc-floating-text {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .qcc-floating--bottom-right { bottom: 16px; right: 16px; }
    .qcc-floating--bottom-left  { bottom: 16px; left: 16px; }
}

/* =========================================================
   MODAL OVERLAY
   ========================================================= */
.qcc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 35, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999999;
    animation: qcc-fade-bg 0.2s ease;
}
.qcc-modal-overlay[hidden] { display: none; }
.qcc-modal-shell {
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    animation: qcc-modal-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes qcc-fade-bg { from { opacity: 0; } to { opacity: 1; } }
@keyframes qcc-modal-in {
    0% { opacity: 0; transform: translateY(8px) scale(0.99); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================
   FOCUS RINGS (a11y)
   ========================================================= */
.qcc :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Honeypot */
.qcc input[name="qcc_hp"] {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 640px) {
    .qcc { border-radius: 14px; }
    .qcc-modal-overlay { padding: 6px; }
    .qcc-modal-shell { max-height: 100dvh; }

    /* Compact header */
    .qcc-titlebar { padding: 10px 14px; gap: 10px; }
    .qcc-titlebar-mark { width: 28px; height: 28px; border-radius: 7px; }
    .qcc-titlebar-mark svg { width: 15px; height: 15px; }
    .qcc-titlebar-brand { font-size: 14.5px; line-height: 1.25; }
    .qcc-titlebar-brand--gradient { font-size: 16px; }
    .qcc-titlebar-caption { font-size: 11px; margin-top: 1px; }
    .qcc-close { width: 28px; height: 28px; }

    /* Hide desktop trust strip on mobile (mobile uses inline pill) */
    .qcc-trust-strip { display: none; }

    /* Hide desktop sidebar; show compact mobile trust bar */
    .qcc-sidebar { display: none; }
    .qcc-mobile-trust { display: flex; }
    .qcc-mobile-trust-details:not([hidden]) { display: flex; }
    /* Hide expandable trust details after step 1 */
    .qcc.qcc--past-step-1 .qcc-mobile-trust-toggle { display: none; }
    .qcc.qcc--past-step-1 .qcc-mobile-trust-details { display: none !important; }

    .qcc-body { flex-direction: column; }

    /* Sticky stepper */
    .qcc-stepper-wrap {
        position: sticky;
        top: 0;
        z-index: 10;
        backdrop-filter: saturate(180%) blur(8px);
        -webkit-backdrop-filter: saturate(180%) blur(8px);
        background: rgba(255, 255, 255, 0.92);
    }
    .qcc-step-indicator { padding: 10px 14px; gap: 3px; }
    .qcc-step-bar { min-width: 14px; max-width: none; height: 2.5px; }
    .qcc-step-label { font-size: 11px; margin-left: 8px; }

    /* Tighter content & smaller question */
    .qcc-content { padding: 14px 14px 10px; }
    .qcc-q { font-size: 16px; margin-bottom: 12px; }

    /* Single column for grid options on mobile */
    .qcc-options--grid { grid-template-columns: 1fr; }

    /* Compact nav bar */
    .qcc-nav { padding: 10px 14px; gap: 8px; }

    /* iOS Safari zooms in on inputs with font-size < 16px. Force 16px on mobile
       to prevent the zoom-on-focus jump. Padding adjusted slightly to keep the
       floating-label position visually balanced at the larger font size. */
    .qcc-input {
        font-size: 16px;
        min-height: 56px;
        padding: 22px 14px 8px;
    }
    .qcc-field-label {
        font-size: 11px;
    }
    .qcc-field.is-floating .qcc-input:focus ~ .qcc-field-label,
    .qcc-field.is-floating .qcc-input.has-value ~ .qcc-field-label,
    .qcc-field.is-floating .qcc-input:not(:placeholder-shown) ~ .qcc-field-label,
    .qcc-field.is-floating select.qcc-input:valid ~ .qcc-field-label {
        font-size: 10px;
    }

    /* Result page — adjust sizing */
    .qcc-result-num { font-size: 32px; }
    .qcc-result-cta { max-width: none; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .qcc *, .qcc *::before, .qcc *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
