:root {
            --gold: #C5A021;
            --black: #1a1a1a;
            --white: #FFFFFF;
            --off-white: #f8f9fa;
            --font-main: "Times New Roman", Times, serif;
        }

        /* Loading Overlay */
        #loading-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100vw; height: 100vh;
            background: rgba(255,255,255,0.95);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            text-align: center;
            padding: 20px;
            box-sizing: border-box;
        }
        .spinner {
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--gold);
            border-radius: 50%;
            width: 60px; height: 60px;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0%   { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        #loading-overlay h3 {
            margin-top: 20px;
            color: var(--black);
            font-size: clamp(1.2rem, 5vw, 1.5rem);
            margin-bottom: 10px;
        }
        #loading-overlay p {
            color: #666;
            font-size: clamp(0.85rem, 3.5vw, 1rem);
            max-width: 90%;
            margin: 0 auto;
        }

        .form-header {
            clear: both;
            margin-top: 20px;
            text-align: center;
            padding: 60px 20px 30px;
        }
        .form-header h2 {
            font-size: 2.2rem;
            text-transform: uppercase;
            letter-spacing: 4px;
            color: var(--black);
            margin-bottom: 10px;
        }
        .form-header p { color: #888; letter-spacing: 0; }

        .progress-container {
            max-width: 450px;
            margin: 0 auto 40px;
            display: flex;
            justify-content: space-between;
            position: relative;
        }
        .progress-container::before {
            content: '';
            background: #e0e0e0;
            position: absolute;
            top: 50%; left: 0;
            transform: translateY(-50%);
            height: 3px; width: 100%;
            z-index: 1;
        }
        .progress-bar {
            background: var(--gold);
            position: absolute;
            top: 50%; left: 0;
            transform: translateY(-50%);
            height: 3px; width: 0%;
            z-index: 1;
            transition: 0.4s ease;
        }
        .circle {
            background: #fff;
            color: #999;
            border-radius: 50%;
            height: 35px; width: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #e0e0e0;
            z-index: 2;
            transition: 0.4s ease;
            font-weight: bold;
            font-size: 14px;
        }
        .circle.active {
            border-color: var(--gold);
            color: var(--gold);
            box-shadow: 0 0 10px rgba(212,175,55,0.2);
        }

        #quizForm {
            max-width: 600px;
            margin: 0 auto 100px;
            background: var(--white);
            padding: 45px;
            border-radius: 12px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.05);
            border-top: 6px solid var(--gold);
        }
        .step { display: none; }
        .step.active {
            display: block;
            animation: fadeIn 0.4s ease-in-out;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        h3 {
            color: var(--gold);
            text-transform: uppercase;
            font-size: 1rem;
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        label {
            display: block;
            margin-top: 20px;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.7rem;
            color: #666;
            letter-spacing: 0.5px;
        }
        input, select, textarea {
            width: 100%;
            padding: 14px;
            margin-top: 8px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-family: inherit;
            font-size: 0.95rem;
            transition: 0.3s;
            background: #fff;
        }
        input:focus, select:focus, textarea:focus {
            outline: none;
            border-color: var(--gold);
            box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
        }

        .radio-group { margin-top: 10px; display: grid; gap: 10px; }
        .radio-item {
            padding: 12px 15px;
            border: 1px solid #eee;
            border-radius: 6px;
            cursor: pointer;
            transition: 0.2s;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.9rem;
        }
        .radio-item:hover { background: #fffdf5; border-color: var(--gold); }
        .radio-item input[type="radio"] {
            accent-color: var(--gold);
            width: 18px; height: 18px;
        }

        .btn-group { display: flex; gap: 15px; margin-top: 35px; }
        #quizForm button {
            flex: 2;
            padding: 15px;
            background: var(--black);
            color: var(--gold);
            border: none;
            border-radius: 6px;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: bold;
            cursor: pointer;
            transition: 0.3s;
        }
        #quizForm button:hover { background: #333; transform: translateY(-2px); }
        #quizForm button.prev-btn { flex: 1; background: #f1f1f1; color: #666; }
        #quizForm button.prev-btn:hover { background: #e5e5e5; color: #333; }

        .alert {
            padding: 15px;
            margin-bottom: 25px;
            border-radius: 6px;
            text-align: center;
            font-size: 0.9rem;
            font-weight: 500;
        }
        .success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
        .error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

        input[type="file"] {
            border: 2px dashed #D4AF37;
            padding: 15px;
            background: #fffdf5;
            cursor: pointer;
        }

        /* ── TURNSTILE SECURITY CHECK BOX ── */
        .security-check-box {
            margin-top: 24px;
            padding: 20px;
            background: #fffdf5;
            border: 1.5px solid var(--gold);
            border-radius: 8px;
        }
        .security-check-header {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            margin-bottom: 16px;
        }
        .security-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
        .security-check-header strong {
            display: block;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #444;
            margin-bottom: 4px;
        }
        .security-check-header p {
            margin: 0;
            font-size: 0.82rem;
            color: #888;
            line-height: 1.5;
            text-transform: none;
            font-weight: normal;
            letter-spacing: 0;
        }
        .security-check-hint {
            margin-top: 12px;
            font-size: 0.78rem;
            color: #aaa;
            min-height: 1.2em;
        }
        .security-check-hint.verified { color: #2e7d32; font-weight: 600; }
        .security-check-hint.failed   { color: #c62828; }
        .cf-turnstile { max-width: 100%; }

        @media (max-width: 600px) {
            #quizForm { padding: 30px 20px; width: 92%; }
            .form-header h2 { font-size: 1.6rem; }
        }