.quiz-body {
    background: #f3f6fa;
    color: #071b53;
    font-family: 'Poppins', Arial, sans-serif;
    min-height: 100vh;
}

.quiz-body * {
    box-sizing: border-box;
}

.quiz-header {
    background: #fff;
    border-bottom: 1px solid #e9eef4;
    box-shadow: 0 8px 24px rgba(7, 27, 83, 0.06);
}

.quiz-header-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 88px;
}

.quiz-logo {
    align-items: center;
    display: flex;
    gap: 14px;
    text-decoration: none;
}

.quiz-logo img {
    height: 72px;
    width: auto;
}

.quiz-logo span {
    color: #071b53;
    display: block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.quiz-header-link {
    color: #071b53;
    font-weight: 700;
    text-decoration: none;
}

.quiz-shell {
    padding: 44px 0 56px;
}

.quiz-panel {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(7, 27, 83, 0.08);
    max-width: 100%;
    overflow: hidden;
}

.quiz-panel-head {
    background: linear-gradient(90deg, #f36a08 0%, #7a3f98 100%);
    color: #fff;
    padding: 28px 32px;
}

.quiz-panel-head h1,
.quiz-panel-head h2 {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.quiz-panel-head p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    margin: 8px 0 0;
}

.quiz-panel-body {
    padding: 32px;
}

.quiz-form-label {
    color: #071b53;
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
}

.quiz-required-mark {
    color: #c62828;
    font-weight: 900;
}

.quiz-input,
.quiz-select,
.quiz-textarea {
    border: 1px solid #d8e0ea;
    border-radius: 6px;
    box-shadow: none;
    color: #16233a;
    font-size: 15px;
    min-height: 48px;
    padding: 11px 14px;
    width: 100%;
}

.quiz-textarea {
    min-height: 98px;
    resize: vertical;
}

.quiz-input:focus,
.quiz-select:focus,
.quiz-textarea:focus {
    border-color: #7a3f98;
    box-shadow: 0 0 0 3px rgba(122, 63, 152, 0.12);
    outline: none;
}

.quiz-error {
    color: #c62828;
    display: block;
    font-size: 13px;
    margin-top: 6px;
}

.quiz-hint {
    color: #5f6b7a;
    display: block;
    font-size: 13px;
    margin-top: 6px;
}

.quiz-btn {
    background: linear-gradient(90deg, #f36a08 0%, #7a3f98 100%);
    border: 0;
    border-radius: 30px;
    color: #fff;
    display: inline-block;
    font-size: 16px;
    font-weight: 800;
    min-height: 48px;
    padding: 13px 26px;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.quiz-btn:hover,
.quiz-btn:focus {
    box-shadow: 0 12px 22px rgba(122, 63, 152, 0.2);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.quiz-btn-secondary {
    background: #fff;
    border: 1px solid #d8e0ea;
    color: #071b53;
}

.quiz-btn-secondary:hover,
.quiz-btn-secondary:focus {
    color: #071b53;
}

.quiz-meta-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
}

.quiz-meta-card {
    background: #f7f9fc;
    border: 1px solid #e6edf5;
    border-radius: 8px;
    padding: 14px 16px;
}

.quiz-meta-card span {
    color: #5d6778;
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.quiz-meta-card strong {
    color: #071b53;
    display: block;
    font-size: 18px;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.quiz-progress {
    background: #e8edf4;
    border-radius: 20px;
    height: 12px;
    overflow: hidden;
}

.quiz-progress-bar {
    background: linear-gradient(90deg, #f36a08 0%, #7a3f98 100%);
    border-radius: 20px;
    height: 12px;
    transition: width 0.25s ease;
}

.quiz-question-card {
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 8px;
    margin-top: 24px;
    padding: 26px;
    scroll-margin-top: 16px;
}

.quiz-question-card:focus {
    outline: none;
}

.quiz-question-card h2 {
    color: #071b53;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 20px;
    overflow-wrap: anywhere;
}

.quiz-options {
    display: grid;
    gap: 12px;
}

.quiz-option {
    align-items: flex-start;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 15px;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.quiz-option:hover {
    background: #fbfcff;
    border-color: #7a3f98;
    transform: translateY(-1px);
}

.quiz-option input {
    margin-top: 5px;
}

.quiz-option strong {
    color: #071b53;
    min-width: 24px;
}

.quiz-option span {
    color: #1f2937;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.quiz-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
}

.quiz-result-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quiz-result-card {
    background: #f7f9fc;
    border: 1px solid #e6edf5;
    border-radius: 8px;
    padding: 18px;
}

.quiz-result-card span {
    color: #5d6778;
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.quiz-result-card strong {
    color: #071b53;
    display: block;
    font-size: 26px;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.quiz-footer {
    background: #fff;
    border-top: 1px solid #e9eef4;
    color: #5d6778;
    padding: 18px 0;
    text-align: center;
}

@media (max-width: 991px) {
    .quiz-meta-grid,
    .quiz-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .quiz-header-inner {
        min-height: 74px;
    }

    .quiz-logo img {
        height: 58px;
    }

    .quiz-logo span {
        font-size: 18px;
    }

    .quiz-shell {
        padding: 24px 0 36px;
    }

    .quiz-panel-head,
    .quiz-panel-body {
        padding: 22px 18px;
    }

    .quiz-panel-head h1,
    .quiz-panel-head h2 {
        font-size: 24px;
    }

    .quiz-meta-grid,
    .quiz-result-grid {
        grid-template-columns: 1fr;
    }

    .quiz-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .quiz-actions .quiz-btn,
    .quiz-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quiz-header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        justify-content: center;
        padding: 10px 0;
    }

    .quiz-logo {
        gap: 10px;
    }

    .quiz-logo img {
        height: 50px;
    }

    .quiz-panel-head h1,
    .quiz-panel-head h2 {
        font-size: 22px;
    }

    .quiz-question-card {
        padding: 18px;
    }

    .quiz-question-card h2 {
        font-size: 20px;
    }

    .quiz-btn {
        width: 100%;
    }
}
