* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
}

.hindi-font {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

/* A4 Paper Style for Preview */
.a4-preview {
    background: #e5e7eb;
    padding: 20px;
    border-radius: 12px;
}

.paper-container {
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    width: 100%;
    max-width: 210mm;
}

/* A4 Content Style */
.a4-content {
    padding: 0.5in 0.4in 0.5in 0.4in;
    background: white;
    position: relative;
}

/* Fixed Header */
.fixed-header {
    margin-bottom: 12px;
    border-bottom: 2px solid #1f2937;
    padding-bottom: 10px;
}

/* Instructions Box */
.instructions-box {
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 8px 12px;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 11px;
}

.instructions-box.hidden-instruction {
    display: none;
}

/* Question Sections */
.question-section {
    page-break-inside: avoid;
    margin-bottom: 15px;
}

.mcq-option {
    margin-left: 20px;
    margin-top: 3px;
}

.answer-space {
    min-height: 50px;
    border-bottom: 1px dotted #9ca3af;
    margin-top: 8px;
}

/* PRINT STYLES */
@media print {
    body {
        margin: 0;
        padding: 0;
        background: white;
    }

    @page {
        size: A4;
        margin: 0;
    }

    .no-print {
        display: none !important;
    }

    .print-paper {
        display: block !important;
        width: 100% !important;
        padding: 0.5in 0.4in 0.5in 0.4in !important;
        background: white !important;
    }
}

/* Form Elements */
.question-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.question-item:hover {
    border-left-color: #f59e0b;
    background-color: #fffbeb;
}

.option-input:focus,
.question-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    outline: none;
}

.language-switch,
.number-toggle {
    background: #f3f4f6;
    border-radius: 50px;
    padding: 4px;
}

.lang-btn,
.num-btn {
    padding: 6px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 14px;
}

.lang-btn.active,
.num-btn.active {
    background: #f59e0b;
    color: white;
}

.toast {
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.questions-list::-webkit-scrollbar {
    width: 6px;
}

.questions-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.questions-list::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 10px;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #ccc;
    border-radius: 34px;
    transition: 0.3s;
    margin-right: 10px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked+.toggle-slider {
    background-color: #f59e0b;
}

input:checked+.toggle-slider:before {
    transform: translateX(20px);
}

/* Back to Home Button */
.back-home-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
}

.back-home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

/* FAQ Section Styles */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s;
}

.faq-question:hover {
    color: #f59e0b;
}

.faq-answer {
    display: none;
    padding-top: 12px;
    color: #6b7280;
    line-height: 1.6;
}

.faq-answer.show {
    display: block;
}