body {
    font-family: "Times New Roman", Times, serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    color: #000;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

#error-page.active {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: black;
    font-size: 24px;
    font-family: sans-serif;
}

/* Search Page */
#search-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-center {
    margin-bottom: 10px;
}

.logo-large {
    width: 80px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.header-center {
    text-align: center;
}

.hindi-title {
    font-size: 22px;
    margin-top: 5px;
    color: #a03033;
    font-weight: normal;
}

.english-title {
    font-size: 16px;
    margin-top: 5px;
    color: #555;
    font-weight: normal;
}

.exam-title {
    text-align: center;
    font-size: 16px;
    margin-bottom: 40px;
    color: #a03033;
}

.form-container {
    width: 400px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    font-family: "Times New Roman", Times, serif;
}

.input-group input:focus {
    border-color: #66afe9;
    background-color: #e6f7ff; /* Aasmani / Sky Blue color */
    outline: none;
}

.captcha-group {
    text-align: left;
    margin-bottom: 8px;
    font-size: 14px;
    color: #000;
    font-weight: bold;
}

.button-group {
    text-align: center;
    margin-top: 20px;
}

button {
    background-color: #c0392b;
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 15px;
    cursor: pointer;
    font-family: "Times New Roman", Times, serif;
    border-radius: 3px;
}

button:hover {
    background-color: #a93226;
}

.error {
    color: red;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

/* Result Page */
#result-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
}

.logo-container {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.logo-small {
    width: 70px;
    height: auto;
    max-height: 70px;
    object-fit: contain;
}

.result-header-text {
    text-align: center;
}

.result-header-text h2 {
    margin: 0;
    font-size: 22px;
}

.result-header-text h3 {
    margin: 5px 0;
    font-size: 18px;
}

.result-header-text h4 {
    margin: 0;
    font-size: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

table, th, td {
    border: 1px solid #b0b0b0;
}

th, td {
    padding: 8px;
    text-align: center;
}

.details-table td.label {
    text-align: left;
    font-weight: bold;
    width: 30%;
    padding-left: 15px;
}

.details-table td.value {
    text-align: left;
    padding-left: 15px;
}

.orange-header th {
    background-color: #e89b3c;
    color: black;
    font-size: 16px;
    padding: 10px;
}

.sub-header th {
    background-color: #f9f9f9;
    font-weight: normal;
}

.bold-text {
    font-weight: bold;
}

.watermark-container {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.watermark-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    text-align: center;
    color: rgba(180, 180, 180, 0.4);
    z-index: -1;
    pointer-events: none;
    width: 120%;
}

.web-copy {
    font-size: 80px;
    font-weight: bold;
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 14px;
    line-height: 1.5;
    font-weight: bold;
}

.abbreviations {
    margin-top: 20px;
    font-size: 12px;
}

.abbr-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.action-buttons {
    text-align: center;
    margin-top: 30px;
}

.action-buttons button {
    margin: 0 10px;
}

@media print {
    .action-buttons {
        display: none;
    }
    .watermark-text {
        color: rgba(180, 180, 180, 0.4) !important;
        -webkit-print-color-adjust: exact;
    }
    .orange-header th {
        background-color: #e89b3c !important;
        -webkit-print-color-adjust: exact;
    }
    .sub-header th {
        background-color: #f9f9f9 !important;
        -webkit-print-color-adjust: exact;
    }
}
