.gtq-wrapper {
    direction: rtl;
    text-align: right;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    max-width: 720px;
    margin: 24px auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    color: #1f2937;
}

.gtq-quiz-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.gtq-quiz-meta {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 20px;
}

.gtq-field {
    margin-bottom: 16px;
}

.gtq-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.gtq-required {
    color: #dc2626;
}

.gtq-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.gtq-field small {
    display: block;
    color: #9ca3af;
    margin-top: 4px;
    font-size: 12px;
}

.gtq-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s ease;
}

.gtq-btn:hover { opacity: .9; }

.gtq-btn-primary {
    background: #4f46e5;
    color: #fff;
    width: 100%;
}

.gtq-error-msg {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

.gtq-error-box {
    direction: rtl;
    text-align: right;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 16px;
    border-radius: 10px;
}

.gtq-quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.gtq-timer {
    background: #111827;
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.gtq-question-block {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.gtq-question-title {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 15px;
}

.gtq-question-desc {
    color: #4b5563;
    margin-bottom: 10px;
    font-size: 14px;
}

.gtq-answers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gtq-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.gtq-option:hover {
    background: #f9fafb;
}

.gtq-option input {
    margin: 0;
}

.gtq-option-img {
    max-width: 80px;
    border-radius: 6px;
}

.gtq-blank-input,
.gtq-match-input,
.gtq-essay-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 6px;
}

.gtq-match-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.gtq-match-item {
    min-width: 140px;
    font-weight: 600;
}

.gtq-ordering-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gtq-ordering-item {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #f9fafb;
    cursor: grab;
}

.gtq-hint {
    color: #9ca3af;
    font-size: 12px;
    margin-bottom: 6px;
}

.gtq-submit-quiz-btn {
    margin-top: 16px;
}

.gtq-loading {
    text-align: center;
    padding: 16px;
    color: #6b7280;
}

.gtq-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: gtq-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}

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

.gtq-result-box {
    text-align: center;
    padding: 20px 0;
}

.gtq-score-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #eef2ff;
    border: 6px solid #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto;
    font-size: 26px;
    font-weight: 800;
    color: #4f46e5;
}

.gtq-score-detail {
    font-size: 16px;
    color: #374151;
    margin: 4px 0;
}

.gtq-attempted-detail {
    color: #6b7280;
    font-size: 13px;
}

.gtq-pass-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 700;
}

.gtq-pass {
    background: #dcfce7;
    color: #16a34a;
}

.gtq-fail {
    background: #fee2e2;
    color: #dc2626;
}

.gtq-email-note,
.gtq-essay-note {
    color: #6b7280;
    font-size: 13px;
    margin-top: 10px;
}
