        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        @font-face {
    font-family: "Optima";
    src: url("/assets/fonts/Optima_Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

        :root {
            --brand: #490905;
            --brand-light: #6a120d;
            --brand-soft: rgba(73, 9, 5, 0.18);
            --brand-border: rgba(73, 9, 5, 0.45);
            --glass-bg: rgba(255, 255, 255, 0.05);
            --glass-border: rgba(255, 255, 255, 0.16);
            --glass-hover: rgba(255, 255, 255, 0.10);
            --text: #fff;
            --text-muted: rgba(255, 255, 255, 0.58);
            --accent: #490905;
            --accent-light: #7d1812;
            --error: #ff6b6b;
        }

        html{
            background: #490905;
        }

        body {
            font-family: 'Optima', Optima, 'Palatino Linotype', Georgia, serif;
            padding: 40px 20px 80px;
            position: relative;
            min-height: 100dvh;
            color: var(--text);
            overflow-x: hidden;
        }

        /* Fixed background layer */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/desktop.webp') center/cover no-repeat;
    z-index: -1;
    transform: translateZ(0); /* helps mobile rendering */
}

        /* Ambient background orbs */


        .page-wrap {
            position: relative;
            z-index: 1;
            max-width: 820px;
            margin: auto;
        }

        /* ── HEADER ── */
        .survey-header {
            text-align: center;
            padding: 48px 0 36px;
        }

        .brand-mark {
            display: inline-flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 28px;
        }

        .survey-title {
            font-size: clamp(22px, 4vw, 32px);
            font-weight: 600;
            color: #fff;
            letter-spacing: 1px;
            margin-bottom: 10px;
        }

        .survey-subtitle {
            font-size: 12px;
            color: var(--text-muted);
            letter-spacing: 3px;
            text-transform: uppercase;
        }

        .gold-rule {
            width: 90px;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
            margin: 18px auto;
            border-radius: 10px;
        }

        /* ── PROGRESS ── */
        .progress-wrap {
            position: sticky;
            top: 0;
            z-index: 100;
            padding: 12px 0 0;
            backdrop-filter: blur(10px);
            margin-bottom: 10px;
        }

        .progress-bar-bg {
            height: 3px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 2px;
            overflow: hidden;
        }

        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.75));
            border-radius: 2px;
            transition: width 0.45s ease;
            width: 0%;
            box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
        }

        .progress-text {
            font-size: 11px;
            color: var(--text-muted);
            text-align: right;
            margin-top: 6px;
            letter-spacing: 0.5px;
        }

        /* ── STEP INDICATOR ── */
        .step-indicator {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0;
            margin-bottom: 28px;
            flex-wrap: nowrap;
            overflow-x: auto;
            padding: 0 4px;
        }

        .step-dot {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.18);
            background: rgba(255, 255, 255, 0.04);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.4);
            cursor: default;
            transition: all 0.3s;
            flex-shrink: 0;
        }

        .step-dot.active {
            border-color: #fff;
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
            box-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
        }

        .step-dot.done {
            border-color: rgba(255, 255, 255, 0.5);
            background: rgba(255, 255, 255, 0.12);
            color: rgba(255, 255, 255, 0.8);
        }

        .step-dot.done .dot-inner::after {
            content: "✓";
        }

        .step-dot:not(.done) .dot-inner {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
        }

        .step-connector {
            flex: 1;
            height: 2px;
            background: rgba(255, 255, 255, 0.1);
            min-width: 14px;
            max-width: 50px;
            transition: background 0.3s;
        }

        .step-connector.done {
            background: rgba(255, 255, 255, 0.4);
        }

        .step-label-text {
            font-size: 11px;
            color: var(--text-muted);
            text-align: center;
            letter-spacing: 0.5px;
            margin-bottom: 16px;
        }

        /* ── CARD ── */
        .card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            border-radius: 22px;
            padding: 36px 40px;
            margin-bottom: 20px;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }

        .card::before {
            content: "";
            position: absolute;
            inset: 0;
            padding: 1px;
            border-radius: inherit;
            background: linear-gradient(155deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(73, 9, 5, 0.4) 100%);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
        }

        /* ── SECTION HEADER ── */
        .section-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 28px;
            padding-bottom: 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .section-num {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(73, 9, 5, 0.22);
            border: 1px solid rgba(73, 9, 5, 0.65);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
            color: #fff;
            flex-shrink: 0;
        }

        .section-title {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
            letter-spacing: 0.5px;
            flex: 1;
        }

        .section-icon {
            font-size: 18px;
            color: rgba(255, 255, 255, 0.75);
        }

        /* ── STEP PANELS ── */
        .step-panel {
            display: none;
            animation: fadeUp 0.4s ease both;
        }

        .step-panel.active {
            display: block;
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(16px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ── META GRID ── */
        .meta-grid {
            display: grid;
            grid-template-columns: 1.5fr 0.8fr 1fr;
            gap: 14px;
            margin-bottom: 20px;
        }

        label {
            display: block;
            font-size: 12px;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--text-muted);
            margin-bottom: 7px;
        }

        input[type="text"],
        input[type="email"],
        input[type="date"] {
            width: 100%;
            padding: 12px 14px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: rgba(255, 255, 255, 0.06);
            color: #fff;
            font-family: inherit;
            font-size: 14px;
            outline: none;
            transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
        }

        input:focus {
            border-color: #fff;
            background: rgba(255, 255, 255, 0.09);
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
        }

        input::placeholder {
            color: rgba(255, 255, 255, 0.28);
        }

        input[type="date"]::-webkit-calendar-picker-indicator {
            filter: invert(1);
            opacity: 0.55;
        }

        input[type="date"]::-webkit-datetime-edit {
            color: rgba(255, 255, 255, 0.4);
        }

        input[type="date"].filled::-webkit-datetime-edit {
            color: #fff;
        }

        /* ── RADIO PILLS ── */
        .radio-inline {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 4px;
        }

        .radio-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 9px 16px;
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: rgba(255, 255, 255, 0.04);
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
            user-select: none;
        }

        .radio-pill input {
            display: none;
        }

        .radio-pill:hover {
            border-color: #fff;
            background: rgba(255, 255, 255, 0.08);
        }

        .radio-pill.selected {
            border-color: #fff;
            background: rgba(255, 255, 255, 0.18);
            color: #fff;
            box-shadow: 0 0 16px rgba(255, 255, 255, 0.10);
        }

        .radio-pill .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.45);
            transition: all 0.2s;
            flex-shrink: 0;
        }

        .radio-pill.selected .dot {
            border-color: #fff;
            background: #fff;
        }

        /* ── QUESTION BLOCKS ── */
        .question-block {
            margin-bottom: 28px;
            padding-bottom: 24px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .question-block:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .question-text {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.88);
            line-height: 1.6;
            margin-bottom: 16px;
        }

        .q-num {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.55);
            font-weight: 700;
            letter-spacing: 1px;
            margin-bottom: 5px;
        }

        /* ── RATING SCALE ── */
        .rating-scale {
            display: flex;
            gap: 8px;
            align-items: stretch;
        }

        .rating-option {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .rating-option input {
            display: none;
        }

        .rating-btn {
            width: 100%;
            aspect-ratio: 1;
            max-width: 56px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.55);
            transition: all 0.2s;
            position: relative;
        }

        .rating-option:hover .rating-btn {
            border-color: #fff;
            background: rgba(255, 255, 255, 0.10);
            color: #fff;
        }

        .rating-option.checked .rating-btn {
            border-color: #fff;
            background: #fff;
            color: #490905;
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.22);
        }

        .rating-label {
            font-size: 10px;
            color: var(--text-muted);
            text-align: center;
            line-height: 1.3;
            letter-spacing: 0.3px;
        }

        /* ── COMPARE OPTIONS ── */
        .compare-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .compare-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.04);
            cursor: pointer;
            transition: all 0.2s;
            user-select: none;
            font-size: 14px;
        }

        .compare-item:hover {
            border-color: #fff;
            background: rgba(255, 255, 255, 0.08);
        }

        .compare-item input {
            display: none;
        }

        .compare-item .chk-box {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.35);
            flex-shrink: 0;
            position: relative;
            transition: all 0.2s;
        }

        .compare-item.selected {
            border-color: #fff;
            background: rgba(255, 255, 255, 0.16);
            box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
        }

        .compare-item.selected .chk-box {
            border-color: #fff;
            background: #fff;
        }

        .compare-item.selected .chk-box::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 7px;
            height: 7px;
            background: #490905;
            border-radius: 50%;
        }

        /* ── RANK ITEMS ── */
        .rank-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .rank-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 16px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.04);
            cursor: pointer;
            transition: all 0.2s;
            user-select: none;
            font-size: 14px;
            text-transform: none;
            letter-spacing: normal;
        }

        .rank-item:hover {
            border-color: #fff;
            background: rgba(255, 255, 255, 0.08);
        }

        .rank-item input {
            display: none;
        }

        .rank-item.selected {
            border-color: #fff;
            background: rgba(255, 255, 255, 0.16);
            box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
        }

        .rank-item.maxed:not(.selected) {
            opacity: 0.45;
            cursor: not-allowed;
        }

        .rank-badge {
            width: 24px;
            height: 24px;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-muted);
            flex-shrink: 0;
            transition: all 0.2s;
            text-transform: none;
            letter-spacing: normal;
        }

        .unit-wrapper .error-hint {
            display: none;
        }

        .unit-wrapper input.has-error+.error-hint {
            display: block;
        }

        .rank-item.selected .rank-badge {
            background: #fff;
            border-color: #fff;
            color: #490905;
        }

        .rank-other-input {
            margin-top: 10px;
        }

        .select-hint {
            font-size: 11px;
            color: var(--text-muted);
            margin-bottom: 10px;
            letter-spacing: 0.3px;
        }

        /* ── OPTIONAL BADGE ── */
        .optional-badge {
            font-size: 11px;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.8);
            border: 1px solid rgba(73, 9, 5, 0.5);
            border-radius: 20px;
            padding: 2px 10px;
            background: rgba(73, 9, 5, 0.12);
        }

        /* ── CONTACT GRID ── */
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 14px;
        }

        .auth-checkbox-row {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 16px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.03);
            cursor: pointer;
            margin-bottom: 20px;
        }

        .auth-checkbox-row input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            min-width: 18px;
            border: 2px solid rgba(255, 255, 255, 0.35);
            border-radius: 4px;
            margin-top: 2px;
            cursor: pointer;
            background: rgba(255, 255, 255, 0.06);
            transition: all 0.2s;
            position: relative;
        }

        .auth-checkbox-row input[type="checkbox"]:checked {
            background: #fff;
            border-color: #fff;
        }

        .auth-label {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.5;
        }

        /* ── NAV BUTTONS ── */
        .form-nav {
            display: flex;
            gap: 12px;
            margin: 8px 0 24px;
        }

        .nav-btn {
            padding: 13px 28px;
            border-radius: 12px;
            font-family: inherit;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.25s;
            display: flex;
            align-items: center;
            gap: 8px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.06);
            color: #fff;
        }

        .nav-btn:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: #fff;
        }

        .nav-btn.primary {
            flex: 1;
            justify-content: center;
            background: linear-gradient(135deg, rgba(73, 9, 5, 0.95), rgba(110, 18, 13, 0.95));
            border-color: rgba(73, 9, 5, 0.75);
            box-shadow: 0 8px 22px rgba(73, 9, 5, 0.3);
        }

        .nav-btn.primary:hover {
            background: linear-gradient(135deg, rgba(90, 12, 8, 1), rgba(130, 24, 18, 1));
            border-color: #fff;
            box-shadow: 0 12px 28px rgba(255, 255, 255, 0.1);
            transform: translateY(-1px);
        }

        .nav-btn.back {
            flex-shrink: 0;
        }

        .nav-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            transform: none !important;
        }

        .radio-pill.error {
            border-color: rgba(255, 107, 107, 0.7);
            background: rgba(255, 107, 107, 0.08);
            box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.12);
        }

        .q-num{
            display: none;
        }

        /* ── SUBMIT BTN ── */
        .submit-btn {
            width: 100%;
            padding: 15px;
            border-radius: 14px;
            border: 1px solid rgba(73, 9, 5, 0.75);
            background: linear-gradient(135deg, rgba(73, 9, 5, 0.95), rgba(110, 18, 13, 0.95));
            color: #fff;
            font-family: inherit;
            font-size: 15px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.25s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 10px 24px rgba(73, 9, 5, 0.28);
        }

        .submit-btn:hover {
            transform: translateY(-1px);
            background: linear-gradient(135deg, rgba(90, 12, 8, 1), rgba(130, 24, 18, 1));
            border-color: #fff;
            box-shadow: 0 14px 30px rgba(255, 255, 255, 0.10);
        }


        .has-error+.error-hint {
            display: block;
        }

        /* ── SHAKE ERROR ── */
        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            20% {
                transform: translateX(-5px);
            }

            40% {
                transform: translateX(5px);
            }

            60% {
                transform: translateX(-3px);
            }

            80% {
                transform: translateX(3px);
            }
        }

        .shake {
            animation: shake 0.35s ease;
        }

        .error-hint {
            font-size: 11px;
            color: #ff6b6b;
            margin-top: 6px;
            display: none;
        }

        .error-hint.show-error {
            display: block;
        }

        .has-error .error-hint {
            display: block;
        }

        .has-error .rating-scale .rating-btn {
            border-color: rgba(255, 100, 100, 0.3);
        }

        #residencyGroup.has-error+.error-hint {
            display: block;
        }

        #residencyGroup.has-error {
            border: 1px solid var(--error);
            padding: 10px;
            border-radius: 12px;
            box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
            animation: shake 0.35s ease;
        }

        .question-block.has-error .rank-item:not(.selected) {
    border-color: rgba(255, 107, 107, 0.4);
}

.question-block.has-error .rank-badge {
    border-color: rgba(255, 107, 107, 0.6);
    color: #ff6b6b;
}

select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

select:focus {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

select option {
    background: #1a0a09;
    color: #fff;
}

select.has-error {
    border-color: rgba(255, 107, 107, 0.8) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

        input.has-error {
            border-color: rgba(255, 107, 107, 0.8) !important;
            box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
            animation: shake 0.35s ease;
        }

        /* ── CONFIRMATION ── */
        .confirmation {
            display: none;
            text-align: center;
            padding: 60px 40px;
        }

        .confirmation.show {
            display: block;
        }

        .conf-icon {
            font-size: 56px;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 20px;
        }

        .conf-title {
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .conf-text {
            font-size: 15px;
            color: var(--text-muted);
            line-height: 1.7;
        }

        input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
}

        /* ── RESPONSIVE ── */
        @media(max-width:640px) {
            body {
                padding: 20px 14px 60px;
                min-height: 100vh;
 
            }

            .card {
                padding: 24px 20px;
            }
                input[type="date"] {
        width: 100%;
        box-sizing: border-box;
    }

            .meta-grid {
                grid-template-columns: 1fr 1fr;
            }

            .contact-grid {
                grid-template-columns: 1fr;
            }

            .rating-btn {
                font-size: 14px;
            }

            .rating-label {
                /* display: none; */
            }

            .step-dot {
                width: 24px;
                height: 24px;
                font-size: 10px;
            }
            .rating-scale {
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.rating-option {
    min-width: 52px;
}

.rating-btn {
    max-width: 100%;
    width: 100%;
}

.rating-label {
    display: block;
    font-size: 9px;
    white-space: nowrap;
}
        }

        @media (max-width: 640px) {
    .meta-grid {
        grid-template-columns: 1fr;
    }
}