/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-navy: #0a1929;
    --secondary-navy: #132f4c;
    --accent-gold: #D4AF37;
    --accent-gold-hover: #f0c04d;
    --text-light: #ffffff;
    --text-gray: #b0b8c1;
    --border-color: #2d3d52;
    --error-red: #ff4444;
    --success-green: #4caf50;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #001529 100%);
    color: var(--text-light);
    min-height: 100vh;
    padding: 20px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(19, 47, 76, 0.6);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.logo svg {
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
    margin-bottom: 20px;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-hover));
    width: 9.09%;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Quiz Steps */
.quiz-container {
    min-height: 450px;
    position: relative;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

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

.step-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-light);
    text-align: center;
}

.step-description {
    font-size: 16px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 40px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-light);
}

.required {
    color: var(--accent-gold);
}

.optional {
    color: var(--text-gray);
    font-weight: 400;
    font-size: 12px;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 14px 18px;
    background: rgba(10, 25, 41, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
}

.error-message {
    display: block;
    color: var(--error-red);
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

/* Option Cards */
.options-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(10, 25, 41, 0.4);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option-card:hover {
    border-color: var(--accent-gold);
    background: rgba(10, 25, 41, 0.7);
    transform: translateX(5px);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-card input:checked + .option-content {
    color: var(--accent-gold);
}

.option-card input:checked ~ .option-content::before {
    content: '✓';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
    font-weight: bold;
    font-size: 16px;
}

.option-card input:checked {
    & ~ * {
        border-color: var(--accent-gold);
    }
}

.option-card:has(input:checked) {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.08);
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    padding-right: 40px;
    position: relative;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
}

.option-desc {
    font-size: 13px;
    color: var(--text-gray);
}

/* Slider */
.slider-container {
    padding: 20px;
    background: rgba(10, 25, 41, 0.4);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.slider-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 30px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--border-color);
    outline: none;
    margin: 20px 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 10px;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-gray);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.step-indicator {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 41, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: var(--text-gray);
    font-size: 16px;
}

/* Results Page */
.results-container {
    padding: 40px 0;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h1 {
    font-size: 36px;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.results-header p {
    font-size: 18px;
    color: var(--text-gray);
}

.results-section {
    background: rgba(10, 25, 41, 0.4);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
}

.results-section h2 {
    font-size: 24px;
    color: var(--accent-gold);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-section h3 {
    font-size: 18px;
    color: var(--text-light);
    margin: 20px 0 10px 0;
}

.results-section p,
.results-section li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.results-section ul {
    list-style: none;
    padding-left: 0;
}

.results-section ul li {
    padding-left: 25px;
    position: relative;
}

.results-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.highlight {
    color: var(--accent-gold);
    font-weight: 600;
}

.contact-info {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-top: 40px;
}

.contact-info h2 {
    font-size: 24px;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 25px;
    }

    .step-title {
        font-size: 24px;
    }

    .step-description {
        font-size: 14px;
    }

    .navigation {
        flex-wrap: wrap;
        gap: 15px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .step-indicator {
        order: -1;
        width: 100%;
        text-align: center;
    }

    .results-header h1 {
        font-size: 28px;
    }

    .results-section {
        padding: 20px;
    }

    .results-section h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .option-card {
        padding: 15px;
    }

    .option-title {
        font-size: 14px;
    }

    .option-desc {
        font-size: 12px;
    }

    .slider-value {
        font-size: 28px;
    }
}