/* ═══════════════════════════════════════════════════════════
   LISTENING FULL MOCK — dizayn manbasi: part 1/part1.css
   Oq kartochka (#f4f7f6 fon), yashil banner, 2 ustunli savollar.
   ═══════════════════════════════════════════════════════════ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    padding: 20px;
    display: flex;
    justify-content: center;
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
}

/* ── Oq kartochka ── */
.container {
    background-color: #ffffff;
    max-width: 800px;
    width: 100%;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ── Orqaga qaytish ── */
.back-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

/* ── Sarlavha (sariq) ── */
.header-title {
    text-align: center;
    background-color: #ffeb3b;
    display: table;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 22px;
    margin: 0 auto 20px auto;
}

/* ── Yuqori panel: test tanlash + taymer ── */
.mock-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.mock-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.mock-select {
    padding: 7px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    background: #fff;
    color: #333;
    max-width: 320px;
    font-family: inherit;
}

.timer-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 7px 13px;
    font-size: 0.86rem;
    font-weight: bold;
    color: #007bff;
}

.timer-chip.danger {
    color: #c62828;
    border-color: #f44336;
}

/* ── Yuklanish / bo'sh holat ── */
.state-box {
    text-align: center;
    padding: 45px 20px;
    color: #666;
    border: 2px dashed #ccc;
    border-radius: 6px;
    background: #fafafa;
}

.state-box h4 {
    margin: 10px 0 6px;
    color: #333;
}

.state-box p {
    font-size: 0.9rem;
    color: #777;
}

/* ── Audio ── */
.audio-player-container {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin-bottom: 22px;
    text-align: center;
}

.audio-player-container p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #555;
}

.audio-player-container audio {
    width: 100%;
}

/* ── Meta ── */
.meta-box {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.86rem;
    color: #555;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.meta-box strong {
    color: #111;
}

/* ── Bo'lim yorlig'i (yashil) ── */
.section-title {
    display: inline-block;
    padding: 4px 12px;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 12px;
    margin-top: 10px;
    background-color: #00ff00;
}

/* ── Yo'riqmalar ── */
.questions-title {
    margin-bottom: 5px;
    font-weight: bold;
}

.instructions {
    font-style: italic;
    margin-bottom: 8px;
    color: #444;
}

.highlight-text {
    background-color: #b3d4fc;
    padding: 2px 6px;
    display: inline-block;
    margin-bottom: 18px;
}

.part-intro {
    font-style: italic;
    color: #444;
    margin-bottom: 10px;
}

/* ── Ajratkich ── */
.quiz-divider {
    margin: 40px 0;
    border: 0;
    border-top: 2px dashed #ccc;
}

/* ── 2 USTUNLI SAVOLLAR (part1 uslubi) ── */
.questions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 10px;
}

.map-questions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Part 3 (Speakerlar) va Part 4 savollari \u2014 bitta ustun, hammasi chapda.
   Matn avval, variant undan keyin \u2014 ikkalasi bir qatorning chap qismida. */
.select-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: start;
}

.select-list .question-block {
    width: 100%;
    max-width: 520px;
    justify-content: flex-start;
}

@media (max-width: 650px) {
    .questions-grid,
    .map-questions {
        grid-template-columns: 1fr;
    }
}

/* ── Savol kartasi ── */
.question-block {
    background-color: #fafafa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.question-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #111;
}

.prompt-text {
    color: #444;
    font-size: 0.92rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ── Variantlar ── */
.options label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 0.92rem;
}

.options label:hover {
    background-color: #f0f0f0;
}

.options input[type="radio"] {
    margin-right: 10px;
    flex-shrink: 0;
}

/* ── Matn / tanlash kiritishlari ── */
.text-input-gap {
    padding: 5px 9px;
    width: 100%;
    max-width: 100%;
    font-size: 0.92rem;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
}

.text-input-gap:focus,
.select-input-gap:focus {
    border-color: #007bff;
}

.select-input-gap {
    padding: 6px 9px;
    font-size: 0.9rem;
    font-family: inherit;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    background: #fff;
    color: #333;
}

.map-select {
    padding: 6px;
    font-family: inherit;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    width: 120px;
    margin-left: 8px;
}

/* ── Matn ichidagi bo'sh joy (passage) — underline input, to'g'ridan-to'g'ri yoziladi ── */
.passage-block {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 22px;
    border-radius: 6px;
    line-height: 2.4;
    margin: 15px 0;
    font-size: 0.98rem;
    color: #333;
}

.gap-inline-input {
    display: inline-block;
    width: 170px;
    max-width: 46%;
    margin: 0 6px;
    padding: 2px 8px 3px;
    border: none;
    border-bottom: 2px solid #007bff;
    background: #f0f7ff;
    border-radius: 4px 4px 0 0;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    text-align: left;
    color: #0f62c7;
    transition: background 0.15s, border-color 0.15s;
}

.gap-inline-input:focus {
    background: #dbeafe;
    border-bottom-color: #0056b3;
}

.gap-inline-input:placeholder-shown {
    background: transparent;
    border-bottom-style: dashed;
}

/* ── Extract sarlavhasi ── */
/* Part 5 — har bir savol óz sarlavhasi bilan, sarlavha raqamdan OLDIN */
.extract-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #1e3a8a;
    background: #dbeafe;
    padding: 5px 10px;
    margin: 0 0 9px 0;
    border-left: 4px solid #007bff;
    border-radius: 0 4px 4px 0;
}

/* ── Xarita (Part 4) ── */
.map-img-frame {
    text-align: center;
    width: 100%;
    margin-bottom: 16px;
}

.quiz-map-img {
    max-width: 100%;
    height: auto;
    max-height: 520px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.part4-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* ── To'g'ri / noto'g'ri ── */
.correct-block {
    border: 1px solid #4caf50 !important;
    background-color: #e8f5e9 !important;
}

.wrong-block {
    border: 1px solid #f44336 !important;
    background-color: #ffebee !important;
}

.options label.correct-choice {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: bold;
}

.options label.wrong-choice {
    background: #ffebee;
    color: #c62828;
    font-weight: bold;
    text-decoration: line-through;
}

.feedback-text {
    color: #2e7d32;
    font-weight: bold;
    margin-top: 6px;
    font-size: 0.85rem;
    background-color: #c8e6c9;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.breakdown-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin: 14px 0 0;
}

/* ── Natija ── */
.result-box {
    margin-top: 26px;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: bold;
    display: none;
}

/* ── Tugma ── */
.btn-container {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 14px 50px;
    font-size: 1rem;
    font-weight: bold;
    font-family: inherit;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background-color: #0056b3;
}

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

/* ── Telefon uchun ── */
@media (max-width: 520px) {
    body { padding: 10px; }
    .container { padding: 18px 14px 34px; }
    .header-title { font-size: 1.3rem; }
    .mock-select { max-width: 100%; }
    .submit-btn { padding: 13px 30px; font-size: 0.95rem; }
    .passage-block { padding: 16px; }
}
