:root {
    --primary-color: #5b64de;
    --primary-dark: #4819e2;
    --primary-light: #a3aaf5;
    --secondary-color: #55587e;
    --gentle-rose: #f0eaff;
    --accent-color: #5e60ce;
    --accent-hover: #4a4db5;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background: #f9f9fc;
    --background-alt: #f8fafc;
    --surface: #ffffff;
    --text-primary: #2b245d;
    --text-secondary: #67648b;
    --text-muted: #9495b8;
    --border: #e2e2f0;
    --border-light: #f1f1f9;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #3119e2 0%, #5b99de 100%);
    --gradient-accent: linear-gradient(135deg, #5e60ce 0%, #4d2dc1 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
::selection {
    background-color: var(--primary-color);
    color: #ffffff;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
   

       body {
    font-family: sans-serif;
    background: linear-gradient(to bottom, #e0ecff, #f6f7fb);
    color: var(--text-primary);
    letter-spacing: .5px;
    line-height: 1.6;
    overflow-x: hidden;
}

        /* Main Content */
        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .test-section {
            padding: 20px 0 50px 0;
        }

        /* Test Header */
        .test-header {
            text-align: center;
            margin-bottom: 50px;
            background: var(--surface);
            padding: 50px 40px;
            border-radius: 24px;
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border);
            position: relative;
            overflow: hidden;
        }

        .test-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: var(--gradient-primary);
        }

        .test-title {
            font-family: 'Playfair Display', serif;
            font-size: 3rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 15px;
        }

        .test-subtitle {
            font-size: 1.3rem;
            color: var(--text-secondary);
            margin-bottom: 30px;
        }

        .test-info {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-top: 30px;
            flex-wrap: wrap;
        }

        .info-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-secondary);
            font-size: 0.95rem;
        }

        /* Progress Bar */
        .progress-container {
            background: var(--surface);
            padding: 30px;
            border-radius: 20px;
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border);
            margin-bottom: 20px;
            top: 20px;
        }

        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .progress-text {
            font-weight: 600;
            color: var(--text-primary);
        }

        .progress-percentage {
            font-weight: 700;
            color: var(--primary-color);
            font-size: 1.1rem;
        }

        .progress-bar {
            height: 12px;
            background: var(--border-light);
            border-radius: 6px;
            overflow: hidden;
            position: relative;
        }

        .progress-fill {
            height: 100%;
            background: var(--gradient-primary);
            border-radius: 6px;
            transition: width 0.5s ease;
            position: relative;
        }

        .progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        /* Question Card */
        .question-card {
            background: var(--surface);
            border-radius: 24px;
            padding: 40px;
            margin-bottom: 30px;
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border);
            transition: all 0.3s ease;
            opacity: 0;
            transform: translateY(20px);
            animation: slideIn 0.5s ease forwards;
        }

        @keyframes slideIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .question-number {
            display: inline-block;
            background: var(--gradient-primary);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 20px;
        }

        .question-text {
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 30px;
            line-height: 1.5;
        }

        /* Answer Options */
        .answer-options {
            display: grid;
            gap: 15px;
        }

        .answer-option {
            position: relative;
        }

        .answer-option input[type="radio"] {
            position: absolute;
            opacity: 0;
            cursor: pointer;
        }

        .answer-option label {
            display: flex;
            align-items: center;
            padding: 20px 25px;
            background: var(--background-alt);
            border: 2px solid var(--border);
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            color: var(--text-secondary);
            position: relative;
            overflow: hidden;
        }

        .answer-option label::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--gradient-primary);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .answer-option label:hover {
            border-color: var(--primary-light);
            background: rgba(37, 99, 235, 0.05);
        }

        .answer-option input[type="radio"]:checked + label {
            border-color: var(--primary-color);
            background: rgba(37, 99, 235, 0.1);
            color: var(--primary-color);
            font-weight: 600;
        }

        .answer-option input[type="radio"]:checked + label::before {
            opacity: 0.1;
        }

        .option-indicator {
            width: 24px;
            height: 24px;
            border: 2px solid var(--border);
            border-radius: 50%;
            margin-right: 15px;
            position: relative;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .answer-option input[type="radio"]:checked + label .option-indicator {
            border-color: var(--primary-color);
            background: var(--primary-color);
        }

        .answer-option input[type="radio"]:checked + label .option-indicator::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 14px;
            font-weight: bold;
        }

        .option-text {
            flex: 1;
            position: relative;
            z-index: 1;
        }

        /* Scale Labels */
        .scale-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
            padding: 0 25px;
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .scale-label {
            text-align: center;
            font-weight: 500;
        }

        .scale-label.start {
            color: var(--error-color);
        }

        .scale-label.end {
            color: var(--success-color);
        }

        /* Navigation Buttons */
        .navigation-buttons {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            margin-top: 40px;
        }

        .btn {
            padding: 14px 28px;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-width: 140px;
            justify-content: center;
        }

        .btn-primary {
            background: var(--gradient-primary);
            color: white;
            box-shadow: var(--shadow);
        }

        .btn-secondary {
            background: var(--surface);
            color: var(--text-primary);
            border: 2px solid var(--border);
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  border: 2px solid;
  border-color: transparent;
  font-size: 16px;
  border-radius: 12px;
  font-weight: 600;
  color: #1f387e;
  box-shadow: 0 0 0 2px var(--background);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button svg {
  position: absolute;
  width: 24px;
  fill: #1f387e;
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: var(--border);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  color: #1f387e;
}

.animated-button:hover {
  box-shadow: 0 0 0 12px transparent;
  color: #212121;
  border-radius: 12px;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover svg {
  fill: #1f387e;
}

.animated-button:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px var(--surface);
}

.animated-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}
        /* Completion Section */
        .completion-section {
            display: none;
            text-align: center;
            background: var(--surface);
            padding: 50px 40px;
            border-radius: 24px;
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border);
            margin-top: 40px;
        }

        /* Center completion card vertically when test is done */
        .test-section.completed {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 0;
        }

        .completion-icon {
            width: 80px;
            height: 80px;
            background: var(--gradient-primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: white;
            margin: 0 auto 30px;
        }

        .completion-title {
            font-family:  serif;
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 15px;
                font-weight: 400;
        }

        .completion-text {
            font-size: 1.2rem;
            color: var(--text-secondary);
            margin-bottom: 40px;
            line-height: 1.6;
        }

        .results-btn {
            background: var(--gradient-primary);
            color: white;
            padding: 16px 32px;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            box-shadow: var(--shadow-lg);
            transition: all 0.3s ease;
        }

        .results-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-xl);
        }

        /* Loading Animation */
        .loading {
            display: none;
            text-align: center;
            padding: 40px;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid var(--border);
            border-top: 4px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }


        /* Responsive Design */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .mobile-menu-toggle {
                display: block;
            }

            .test-title {
                font-size: 2.2rem;
            }

            .test-info {
                flex-direction: column;
                gap: 15px;
            }

            .question-card {
                padding: 30px 25px;
            }

            .question-text {
                font-size: 1.1rem;
            }

            .navigation-buttons {
                flex-direction: column;
            }

            .btn {
                width: 100%;
            }

            .progress-container {
                position: static;
                margin-bottom: 20px;
            }
            .answer-option label, .btn, .results-btn, .progress-text {
                font-size: 0.9rem;
            }
            .question-number {
                font-size: 0.85rem;
            }
            .question-text {
                font-size: 1.05rem;
            } 
            .progress-percentage {
                    font-size: 1rem;
                }
                .progress-bar {
                height: 8px;
                }
                .progress-container, .question-card, .answer-option label  {
                    padding: 20px 15px;
                }
                .option-indicator {
                    width: 14px;
                    height: 14px;
                    margin-right: 10px;
                }
                .completion-section {
            padding: 30px 15px;
        }
                    .completion-text {
                font-size: .9rem;
            }
                    .completion-title {
                font-size: 2.2rem;
            }
                    .completion-icon {
                width: 60px;
                height: 60px;
            }
        }

        /* Accessibility */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* High contrast mode */
        @media (prefers-contrast: high) {
            :root {
                --border: #000000;
                --text-secondary: #000000;
            }
        }

        /* Print styles */
        @media print {
            .header, .footer, .navigation-buttons { display: none; }
            .test-section { padding-top: 20px; }
        }
/* Email Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 36, 93, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: var(--surface);
    border-radius: 24px;
    max-width: 550px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease-out;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    text-align: center;
    padding: 40px 40px 30px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
    border-bottom: 1px solid var(--border-light);
}

.modal-title {
    font-family: serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-body {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.form-group input[type='email'] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--background-alt);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input[type='email']:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(91, 100, 222, 0.1);
}

.form-help {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #d97706;
}

.alert-icon {
    font-size: 1.3rem;
}

.alert-message {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-large {
    width: 100%;
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-footer {
    background: var(--background-alt);
    padding: 20px 40px;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.privacy-icon {
    font-size: 1.1rem;
}

/* Modal Responsive */
@media (max-width: 600px) {
    .modal-content {
        border-radius: 20px;
    }

    .modal-header {
        padding: 30px 25px 20px;
    }

    .modal-title {
        font-size: 1.6rem;
    }

    .modal-subtitle {
        font-size: 0.95rem;
    }

    .modal-body {
        padding: 30px 25px;
    }

    .modal-footer {
        padding: 15px 25px;
    }

    .form-group input[type='email'] {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}
