/* =========================
   Base Reset
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f9fafb;
    color: #1f2937;
}

@font-face {
    font-family: 'UrduKhushKhati';
    src: url('../fonts/Urdu Khush Khati Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/* =========================
   Header
========================= */
.site-header {
    background: #ffffff;
    padding: 22px 16px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #1b96a3;
}

/* =========================
   Main Content
========================= */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.form-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 32px 28px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

/* =========================
   Auth Grid Layout
========================= */

.auth-wrapper {
    min-height: calc(100vh - 120px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 40px;
    gap: 40px;
}

/* Left: form side */
.auth-form {
    display: flex;
    justify-content: center;
}

/* Right: visual side */
.auth-visual {
    height: 100%;
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(27, 150, 163, 0.85),
            rgba(4, 147, 129, 0.85)
        ),
        url("../images/jamkaranbg.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;
}

/* Image inside */
.auth-visual img {
    max-width: 70%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
}

/* Decorative shapes */
.auth-visual::before,
.auth-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}

.auth-visual::before {
    width: 220px;
    height: 220px;
    top: -60px;
    left: -60px;
}

.auth-visual::after {
    width: 180px;
    height: 180px;
    bottom: -50px;
    right: -50px;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }
    .auth-visual {
        display: none;
    }
}
/* =========================
   Form Elements
========================= */
.form-card h2 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 20px;
    font-weight: 600;
    color: #049381;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1b96a3;
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

/* Match select with input & textarea */
.form-group select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    transition: border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* Focus effect same as input */
.form-group select:focus {
    outline: none;
    border-color: #1b96a3;
}

/* Custom dropdown arrow */
.form-group {
    position: relative;
}
/* Default select text color */
.form-group select {
    color: #9ca3af; /* Light grey */
}

/* When user selects real option */
.form-group select:valid {
    color: #374151; /* Normal dark text */
}

/* Dropdown option styling */
.form-group select option {
    color: #374151;
}


.form-group select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%231b96a3' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}
/* =========================
   Primary Button
========================= */
.btn-primary {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: #1b96a3;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #049381;
}

/* =========================
   Rules Page
========================= */

.rules-card {
    width: 100%;
    max-width: 700px;
    background: #ffffff;
    padding: 32px 30px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.rules-card h2 {
    text-align: center;
    margin-bottom: 26px;
    font-size: 20px;
    color: #1b96a3;
    font-weight: 600;
}

.rules-section {
    margin-bottom: 24px;
}

.rules-section h3 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #049381;
    font-weight: 600;
}

.rules-section ul {
    padding-left: 20px;
}

.rules-section ul li {
    font-size: 14px;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 6px;
}

/* Urdu alignment */
.rules-section.urdu {
    direction: rtl;
    text-align: right;
    margin-right: 20px;
}
.rules-section.urdu h3
{
    font-family: 'UrduKhushKhati', serif;
    font-size: 23px;
}

.heading-ur
{
    font-family: 'UrduKhushKhati', serif;
    font-size: 30px;
    font-weight: normal;
}
.rules-section.urdu ul li {
    font-family: 'UrduKhushKhati', serif;
    font-size: 20px;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 6px;  
}
ul li::marker {
    font-size: 12px;
}

/* Agreement */
.agreement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 20px 0 25px;
    font-size: 14px;
    color: #374151;
}

.agreement input {
    margin-top: 3px;
}

/* Disabled button state */
button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}


/* =========================
   Quiz Portal
========================= */

.quiz-header {
    background: #ffffff;
}

.quiz-header-content {
    max-width: 900px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-title {
    font-size: 16px;
    font-weight: 600;
    color: #1b96a3;
}

.quiz-timer {
    font-size: 24px;           /* Bigger font */
    font-weight: 700;           /* Bold */
    color: #1b96a3;             /* Red/pink color for urgency */
    background: #fff3f4;        /* Light background */
    padding: 6px 12px;          /* Some padding */
    border-radius: 8px;         /* Rounded corners */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* Slight shadow */
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.quiz-timer {
    animation: pulse 1.5s infinite;
}

.quiz-container {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 30px 16px;
}

.question-card {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 28px;
}

.question-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
}

.question-text {
    font-size: 18px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 24px;
    line-height: 1.5;
}

.question-ur
{
    font-family: 'UrduKhushKhati', serif;
    direction: rtl;
    text-align: right;
    font-size: 30px !important;
}

/* Options */
.options-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.option:hover {
    border-color: #1b96a3;
}

.option input {
    accent-color: #1b96a3;
}

.option span {
    font-size: 14px;
    color: #374151;
}
.option-en {
    text-align: left;
    flex: 1;
    direction: ltr;
    font-weight: bolder;
}

.option-ur {
    text-align: right;
    flex: 1;
    direction: rtl;
    font-family: 'UrduKhushKhati', serif;
    font-size: 26px !important;
}

/* Next button */
.next-btn {
    margin-top: 24px;
    width: 100%;
    padding: 15px 26px;
}

/* =========================
   Quiz Finish
========================= */

.finish-wrapper {
    width: 100%;
    max-width: 700px;
    margin: 80px auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 40px 32px;
    text-align: center;
}

.finish-icon {
    font-size: 52px;
    margin-bottom: 16px;
}

.finish-title {
    font-size: 22px;
    font-weight: 600;
    color: #1b96a3;
    margin-bottom: 16px;
}

.finish-text-en {
    font-size: 15px;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 24px;
}

.finish-text-ur {
    font-family: 'UrduKhushKhati', serif;
    font-size: 26px;
    line-height: 2;
    color: #111827;
    direction: rtl;
    text-align: center;
}

.finish-note {
    margin-top: 28px;
    font-size: 13px;
    color: #6b7280;
}

/* =========================
   Quiz Validation Error
========================= */

.question-card.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.quiz-error-text {
    margin-top: 10px;
    font-size: 13px;
    color: #dc2626;
    display: none;
}


/* =========================
   Footer
========================= */
.site-footer {
    text-align: center;
    padding: 14px 10px;
    font-size: 12px;
    color: #6b7280;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.quiz-container, .question-card, .question-text, .options-form 
{
    user-select: none;       /* Standard */
    -webkit-user-select: none; /* Chrome, Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
}

/* Optional: cursor changes */
.quiz-container {
    cursor: default;
}