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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #000000;
}

.screen {
    display: none;
    width: 100%;
    max-width: 800px;
}

.screen.active {
    display: block;
}

.container {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 0;
    padding: 50px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    max-width: 200px;
    height: auto;
}

h1 {
    color: #000000;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    text-align: center;
    color: #666666;
    margin-bottom: 40px;
    font-size: 1em;
    font-weight: 500;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #000000;
    font-weight: 600;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #000000;
    border-radius: 0;
    font-size: 16px;
    transition: all 0.2s;
    background: #ffffff;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.btn {
    padding: 15px 40px;
    border: 2px solid #000000;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
    width: 100%;
    margin-top: 20px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background: #ffffff;
    color: #000000;
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 #000000;
}

.btn-primary:active:not(:disabled) {
    transform: translate(0, 0);
    box-shadow: none;
}

.btn-primary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #cccccc;
    border-color: #cccccc;
    color: #666666;
}

.btn-secondary {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

.btn-secondary:hover {
    background: #000000;
    color: #ffffff;
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 #000000;
}

.btn-secondary:active {
    transform: translate(0, 0);
    box-shadow: none;
}

.info-text {
    text-align: center;
    color: #666666;
    font-size: 0.85em;
    margin-top: 30px;
}

/* Quiz Header */
.quiz-header {
    background: #ffffff;
    padding: 30px;
    border: 2px solid #000000;
    border-bottom: none;
    margin-bottom: 0;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #f0f0f0;
    border: 2px solid #000000;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: #000000;
    width: 0%;
    transition: width 0.3s ease;
}

.quiz-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.timer {
    font-size: 1.3em;
    font-weight: bold;
    color: #000000;
    padding: 8px 20px;
    background: #ffffff;
    border: 2px solid #000000;
    min-width: 80px;
    text-align: center;
}

.timer.warning {
    background: #000000;
    color: #ffffff;
    animation: pulse 0.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Question Container */
.question-container {
    margin: 0;
    padding: 50px;
    min-height: 400px;
    border: 2px solid #000000;
    border-top: none;
    background: #ffffff;
}

#questionText {
    color: #000000;
    margin-bottom: 30px;
    font-size: 1.3em;
    line-height: 1.6;
    font-weight: 600;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.option {
    padding: 18px 25px;
    border: 2px solid #000000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
    font-size: 1em;
    text-align: left;
    font-weight: 500;
}

.option:hover:not(.disabled) {
    background: #000000;
    color: #ffffff;
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.option.selected {
    background: #000000;
    color: #ffffff;
    font-weight: 600;
}

.option.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Results Screen */
.results-container {
    text-align: center;
    padding: 20px;
}

.score-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.score-circle {
    width: 200px;
    height: 200px;
    border: 4px solid #000000;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

#finalScore {
    font-size: 4.5em;
    font-weight: bold;
    line-height: 1;
    color: #000000;
}

.score-label {
    font-size: 1.5em;
    color: #000000;
    font-weight: 600;
}

.percentage {
    font-size: 3.5em;
    font-weight: bold;
    color: #000000;
    border: 4px solid #000000;
    padding: 20px 40px;
    background: #ffffff;
}

.results-details {
    margin: 40px 0;
    text-align: left;
}

.results-details h3 {
    color: #000000;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.5em;
    font-weight: 700;
}

.section-scores {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-score {
    display: flex;
    justify-content: space-between;
    padding: 20px 25px;
    background: #ffffff;
    border: 2px solid #000000;
    align-items: center;
}

.section-name {
    font-weight: 600;
    color: #000000;
    font-size: 1em;
}

.section-score span:last-child {
    font-weight: 700;
    font-size: 1.1em;
    color: #000000;
}

.email-notice {
    color: #000000;
    font-weight: 600;
    margin: 30px 0;
    padding: 20px;
    background: #f5f5f5;
    border: 2px solid #000000;
    font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 25px;
        box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    }
    
    .logo img {
        max-width: 150px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .subtitle {
        font-size: 0.9em;
    }
    
    .quiz-header {
        padding: 20px;
    }
    
    .question-container {
        padding: 25px;
        min-height: 350px;
    }
    
    #questionText {
        font-size: 1.1em;
    }
    
    .option {
        padding: 15px 20px;
        font-size: 0.95em;
    }
    
    .option:hover:not(.disabled) {
        transform: translate(-2px, -2px);
        box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .btn-primary:hover:not(:disabled),
    .btn-secondary:hover {
        transform: translate(-2px, -2px);
        box-shadow: 2px 2px 0 #000000;
    }
    
    .score-display {
        flex-direction: column;
        gap: 25px;
    }
    
    .score-circle {
        width: 160px;
        height: 160px;
        border-width: 3px;
    }
    
    #finalScore {
        font-size: 3.5em;
    }
    
    .score-label {
        font-size: 1.2em;
    }
    
    .percentage {
        font-size: 2.5em;
        padding: 15px 30px;
        border-width: 3px;
    }
    
    .section-score {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .section-name {
        font-size: 0.9em;
    }
    
    .timer {
        font-size: 1.1em;
        padding: 6px 15px;
        min-width: 70px;
    }
    
    .quiz-info {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    .logo img {
        max-width: 120px;
    }
    
    h1 {
        font-size: 1.3em;
    }
    
    .quiz-header,
    .question-container {
        padding: 15px;
    }
    
    #questionText {
        font-size: 1em;
    }
    
    .option {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .score-circle {
        width: 140px;
        height: 140px;
    }
    
    #finalScore {
        font-size: 3em;
    }
    
    .percentage {
        font-size: 2em;
        padding: 12px 25px;
    }
}

/* Print styles */
@media print {
    body {
        background: #ffffff;
    }
    
    .btn {
        display: none;
    }
    
    .container {
        box-shadow: none;
        border: 1px solid #000000;
    }
}
