:root {
    --bg-color: #0d0d0d;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #D4AF37;
    /* Gold */
    --accent-hover: #F2C94C;
    --success-color: #27ae60;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --radius-sm: 8px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 20%);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    height: 100vh;
    /* Force full viewport height */
    overflow: hidden;
    /* No scroll on body */
    display: flex;
    flex-direction: column;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Welcome Screen (Full Screen Center) */
/* Welcome Screen (Full Screen Center) */
.full-screen-center {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-md);
    animation: fadeIn 0.8s ease-out;
    width: 100%;
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    /* Larger */
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.5px;
}

.highlight {
    color: var(--accent-color);
    font-style: italic;
    /* Design match */
}

.intro-text p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    font-size: 1.1rem;
    font-weight: 500;
}

.intro-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
    /* Space between items */
    max-width: 800px;
}

.intro-list li {
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Force specific items to break line to match visual */
.intro-list li:last-child {
    width: 100%;
    justify-content: center;
    margin-top: 5px;
}

.start-btn {
    margin: var(--spacing-lg) auto 0;
    padding: 18px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 1px;
}

.start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}



/* Compact Header (Quiz Mode) */
.compact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(13, 13, 13, 0.9);
    border-bottom: 1px solid var(--card-border);
}

.logo-mini img {
    height: 30px;
    width: auto;
}

.step-counter-inline {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Old header styles replaced by compact-header */

/* Container */
/* Container (Quiz Mode) */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
    /* Reduced specific padding */
    width: 100%;
    flex: 1;
    /* Take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertically center content */
    overflow-y: hidden;
    /* FORCE NO SCROLL */
}

/* Site Header - Removed from flow, handled by Welcome Screen */
.site-header {
    display: none;
}

.logo {
    max-width: 140px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Form Sections */
.quiz-section {
    display: none;
    width: 100%;
    animation: fadeIn 0.4s ease-in-out;
}

.quiz-section.active-section {
    display: block;
}

/* Section Headers (Restored and Styled) */
.quiz-section h2 {
    display: block;
    /* Show them again */
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-color);
    /* Gold color */
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.5s ease-out;
}

/* Questions */
.question-block {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 20px;
    /* Reduced from var(--spacing-md) */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    /* No margin bottom */
}

.question-block.active-question {
    display: block;
    animation: slideUp 0.4s ease-out;
}

/* Fix for Candidate Section */
.quiz-section.active-section .question-block {
    display: block;
    animation: slideUp 0.4s ease-out;
    margin-bottom: 8px;
    /* Very small spacing between inputs */
    padding: 15px;
    /* Even smaller padding for these 3 blocks */
}

.question-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    /* Smaller title */
    margin-bottom: 8px;
    /* Less space below title */
    color: var(--text-primary);
    line-height: 1.2;
}

/* Radio Options */
.radio-option {
    display: flex;
    align-items: center;
    padding: 12px;
    /* Smaller padding */
    margin-bottom: 8px;
    /* Smaller margin */

    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.radio-option:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    margin-right: 16px;
    position: relative;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked {
    border-color: var(--accent-color);
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.radio-option:has(input:checked) {
    background-color: rgba(212, 175, 55, 0.15);
    border-color: var(--accent-color);
    color: #fff;
}

/* Text Inputs */
textarea,
.text-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

textarea:focus,
.text-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.5);
}

/* Thank You Page Styling */
.thank-you-card-styled {
    background: rgba(13, 13, 13, 0.95);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 60px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: scaleIn 0.5s ease-out;
}

.thank-you-card-styled h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-color);
    margin: 30px 0;
    line-height: 1.3;
}

.highlight-gold {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 2rem;
}

.thank-you-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.thank-you-text .final-note {
    margin-top: 30px;
    opacity: 0.7;
    font-size: 0.95rem;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wizard-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-btn,
.submit-btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
}

.secondary-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
}

.secondary-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.primary-btn {
    background: var(--accent-color);
    color: #000;
    margin-left: auto;
    /* Push to right if alone */
}

.primary-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.submit-btn {
    background: var(--success-color);
    color: #fff;
    margin-left: auto;
}

.submit-btn:hover {
    background: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* Footer */
.site-footer {
    display: none;
    /* Hide footer in wizard mode */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .container {
        padding-top: 40px;
    }

    .question-title {
        font-size: 1.2rem;
    }

    .wizard-navigation {
        padding: 15px;
    }

    .nav-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}