/* ===================================
   HIRING ASSESSMENT QUIZ STYLES
   HireVirtuals - Complete CSS File
   =================================== */

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0fdfa 0%, #f1f5f9 100%);
    min-height: 100vh;
    color: #334155;
    line-height: 1.6;
}

/* ===================================
   MAIN CONTAINER & LAYOUT
   =================================== */

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.quiz-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

/* ===================================
   HEADER SECTION
   =================================== */

.quiz-header {
    background: linear-gradient(135deg, #008080 0%, #333333 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.quiz-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 16px;
    line-height: 1.2;
}

.quiz-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.4;
}

.quiz-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 14px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 20px;
    font-weight: bold;
    display: block;
}

/* ===================================
   QUIZ CONTENT AREA
   =================================== */

.quiz-content {
    padding: 40px 30px;
}

/* ===================================
   PROGRESS BAR
   =================================== */

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #008080, #10b981);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* ===================================
   QUESTION SECTIONS
   =================================== */

.question-container {
    display: none;
    animation: fadeIn 0.5s ease;
}

.question-container.active {
    display: block;
}

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

.question-number {
    color: #008080;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-text {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.4;
    color: #1e293b;
}

.question-description {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
    font-style: italic;
}

/* ===================================
   OPTIONS & SELECTION
   =================================== */

.options {
    display: grid;
    gap: 16px;
    margin-bottom: 40px;
}

.option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option:hover {
    border-color: #008080;
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.1);
}

.option.selected {
    border-color: #008080;
    background: #f0fdfa;
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.15);
}

.option.selected::before {
    content: "✓";
    position: absolute;
    top: 15px;
    right: 15px;
    color: #008080;
    font-weight: bold;
    font-size: 18px;
}

.option-text {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 8px;
    color: #1e293b;
    line-height: 1.3;
}

.option-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* ===================================
   NAVIGATION BUTTONS
   =================================== */

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    min-width: 120px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #008080 0%, #333333 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 128, 128, 0.2);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 128, 128, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #64748b;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #475569;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ===================================
   RESULTS SECTION
   =================================== */

.results-container {
    display: none;
    text-align: center;
}

.results-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.results-score {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.results-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.3;
}

.results-description {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

.results-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    text-align: left;
}

/* ===================================
   RECOMMENDATIONS
   =================================== */

.recommendation {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.recommendation:hover {
    border-color: #008080;
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.1);
}

.recommendation-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendation-text {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    background: linear-gradient(135deg, #333333 0%, #008080 100%);
    color: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    margin-top: 32px;
}

.cta-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cta-text {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   EMAIL FORM
   =================================== */

.email-form {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto 16px auto;
    flex-wrap: wrap;
}

.email-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    min-width: 250px;
    background: white;
    color: #333;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #008080;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.email-input::placeholder {
    color: #94a3b8;
}

.features-list {
    font-size: 14px;
    margin-top: 16px;
    opacity: 0.8;
    line-height: 1.4;
}

/* ===================================
   BACK BUTTON
   =================================== */

.back-button {
    text-align: center;
    margin-top: 24px;
}

.back-link {
    color: #008080;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.back-link:hover {
    background: #f0fdfa;
    color: #006666;
    text-decoration: underline;
}

/* ===================================
   LOADING STATES
   =================================== */

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #008080;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   =================================== */

/* Focus states for keyboard navigation */
.option:focus,
.btn:focus,
.email-input:focus {
    outline: 2px solid #008080;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .question-container {
        animation: none;
    }
    
    .option,
    .btn,
    .progress-fill {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .quiz-header {
        background: #000;
        border: 2px solid #fff;
    }
    
    .option {
        border-width: 3px;
    }
    
    .option.selected {
        background: #000;
        color: #fff;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet styles */
@media (max-width: 1024px) {
    .quiz-container {
        padding: 16px;
    }
    
    .quiz-content {
        padding: 32px 24px;
    }
    
    .quiz-title {
        font-size: 26px;
    }
    
    .question-text {
        font-size: 21px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .quiz-container {
        padding: 12px;
    }

    .quiz-content {
        padding: 24px 20px;
    }

    .quiz-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .quiz-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .question-text {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .question-description {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .quiz-stats {
        gap: 20px;
        font-size: 13px;
    }

    .stat-number {
        font-size: 18px;
    }

    .option {
        padding: 16px;
    }

    .option-text {
        font-size: 15px;
    }

    .option-description {
        font-size: 13px;
    }

    .navigation {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        font-size: 15px;
        padding: 14px 20px;
    }

    .results-score {
        font-size: 36px;
    }

    .results-title {
        font-size: 20px;
    }

    .cta-title {
        font-size: 20px;
    }

    .cta-text {
        font-size: 15px;
    }

    .email-form {
        flex-direction: column;
        max-width: 100%;
    }

    .email-input {
        min-width: auto;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .recommendation {
        padding: 20px;
    }

    .recommendation-title {
        font-size: 16px;
    }

    .recommendation-text {
        font-size: 14px;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .quiz-container {
        padding: 8px;
    }

    .quiz-header {
        padding: 32px 20px;
    }

    .quiz-content {
        padding: 20px 16px;
    }

    .quiz-title {
        font-size: 22px;
    }

    .quiz-subtitle {
        font-size: 15px;
    }

    .question-text {
        font-size: 18px;
    }

    .quiz-stats {
        gap: 16px;
        flex-wrap: wrap;
    }

    .option {
        padding: 14px;
    }

    .results-details {
        padding: 24px 20px;
    }

    .cta-section {
        padding: 24px 20px;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .quiz-container {
        box-shadow: none;
        background: white;
    }
    
    .quiz-header {
        background: #333 !important;
        color: white !important;
    }
    
    .btn,
    .email-form,
    .navigation {
        display: none;
    }
    
    .question-container:not(.active) {
        display: block !important;
    }
    
    .option:hover {
        transform: none;
    }
}

/* ===================================
   DARK MODE SUPPORT (Optional)
   =================================== */

@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        color: #e2e8f0;
    }
    
    .quiz-card {
        background: #1e293b;
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }
    
    .option {
        background: #334155;
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .option:hover {
        background: #3f4b5c;
    }
    
    .option.selected {
        background: #064e3b;
        border-color: #10b981;
    }
    
    .results-details {
        background: #334155;
    }
    
    .recommendation {
        background: #334155;
        border-color: #475569;
    }
    
    .email-input {
        background: #334155;
        color: #e2e8f0;
        border-color: #475569;
    }
    
    .email-input::placeholder {
        color: #94a3b8;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.hidden { display: none !important; }
.visible { display: block !important; }

.fade-in {
    animation: fadeIn 0.5s ease;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===================================
   END OF STYLES
   =================================== */ 
