/* ===========================
   Global / Shared Styles
   =========================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #1e40af 100%);
    color: #fff;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.logo-placeholder {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.footer {
    background: #f59e0b;
    padding: 16px 40px;
    text-align: center;
    color: #1e3a5f;
    font-size: 14px;
    font-weight: 500;
}

/* ===========================
   Welcome Page
   =========================== */
.admin-link {
    color: rgba(255,255,255);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    transition: all 0.3s;
}

.admin-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    width: 100%;
    gap: 60px;
}

.text-section {
    flex: 1;
    max-width: 550px;
}

.illustration-section {
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-box {
    width: 420px;
    height: 420px;
    background: rgba(255,255,255,0.1);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}

.title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

.start-btn {
    display: inline-block;
    background: #f59e0b;
    color: #1e3a5f;
    font-size: 20px;
    font-weight: 700;
    padding: 16px 48px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.start-btn:hover {
    background: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* ===========================
   Question Page
   =========================== */
.progress-text {
    font-size: 16px;
    opacity: 0.8;
}

.question-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 48px;
    max-width: 650px;
    width: 100%;
}

.question-number {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 32px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;
}

.option-label:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.option-label.selected {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

.option-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.option-label.selected .radio-custom {
    border-color: #f59e0b;
}

.radio-custom::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f59e0b;
    display: none;
}

.option-label.selected .radio-custom::after {
    display: block;
}

.buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-back:hover {
    background: rgba(255,255,255,0.2);
}

.btn-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f59e0b;
    color: #1e3a5f;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 36px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-next:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.note-box {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-line;
}

.warning-box {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.6;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-bottom: 0;
}

.progress-bar-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ===========================
   Result Page
   =========================== */
.result-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 48px;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.thank-you {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 32px;
}

.chart-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 16px;
}

.percentage-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: 700;
}

.score-detail {
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 24px;
}

.result-message {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 36px;
    padding: 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
}

.btn-retry {
    display: inline-block;
    background: #f59e0b;
    color: #1e3a5f;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 40px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-retry:hover {
    background: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .header { padding: 16px 20px; }

    /* Welcome */
    .content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .title { font-size: 28px; }
    .description { font-size: 16px; }
    .illustration-box { width: 300px; }

    /* Question */
    .question-card { padding: 28px 20px; }
    .question-text { font-size: 20px; }
    .option-label { font-size: 16px; padding: 14px 16px; }

    /* Result */
    .result-card { padding: 28px 20px; }
    .thank-you { font-size: 24px; }
    .percentage-overlay { font-size: 36px; }
    .chart-container { width: 180px; height: 180px; }
}
