/* ============================================================
   Ganga Hospital Hall Ticket System — Styles
   ============================================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    color: #333;
    min-height: 100vh;
}

/* --- Lookup Page --- */
.lookup-container {
    max-width: 520px;
    margin: 80px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 40px 36px;
}

.lookup-container .logo-header {
    text-align: center;
    margin-bottom: 28px;
}

.lookup-container .logo-header img {
    max-height: 80px;
    margin-bottom: 12px;
}

.lookup-container .logo-header h1 {
    font-size: 22px;
    color: #1a3a5c;
    margin-bottom: 4px;
}

.lookup-container .logo-header h2 {
    font-size: 15px;
    color: #666;
    font-weight: 400;
}

.search-form .form-group {
    margin-bottom: 18px;
}

.search-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
}

.search-form .radio-group {
    display: flex;
    gap: 24px;
    margin-bottom: 18px;
}

.search-form .radio-group label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.search-form input[type="text"],
.search-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.search-form input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}

.captcha-group {
    background: #f7f9fc;
    border: 1.5px solid #dde3ea;
    border-radius: 8px;
    padding: 14px 16px;
}

.captcha-question {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a5c;
    letter-spacing: 2px;
}

.captcha-group input[type="text"] {
    margin-top: 8px;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.search-form .btn-search {
    width: 100%;
    padding: 13px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form .btn-search:hover {
    background: #1557b0;
}

.error-msg {
    background: #ffeaea;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    border-left: 4px solid #c62828;
}

/* --- Hall Ticket Display --- */
.hallticket-wrapper {
    max-width: 820px;
    margin: 40px auto;
    padding: 0 16px;
}

.hallticket-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: flex-end;
}

.btn-download, .btn-print, .btn-back {
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background 0.2s;
}

.btn-download {
    background: #1a73e8;
    color: #fff;
}

.btn-download:hover { background: #1557b0; }

.btn-print {
    background: #fff;
    color: #1a73e8;
    border: 1.5px solid #1a73e8;
}

.btn-print:hover { background: #e8f0fe; }

.btn-back {
    background: #f1f3f4;
    color: #444;
}

.btn-back:hover { background: #e0e0e0; }

/* --- Hall Ticket Card --- */
.hallticket-card {
    background: #fff;
    border: 2px solid #333;
    padding: 0;
    font-family: 'Times New Roman', Times, serif;
}

.ht-header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #333;
    padding: 16px 24px;
    gap: 20px;
}

.ht-header .ht-logo img {
    max-height: 80px;
}

.ht-header .ht-title {
    flex: 1;
    text-align: center;
}

.ht-header .ht-title h1 {
    font-size: 22px;
    color: #1a3a5c;
    margin-bottom: 4px;
    font-style: italic;
}

.ht-header .ht-title p {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

.ht-header .ht-title h2 {
    font-size: 17px;
    font-weight: 700;
}

.ht-body {
    padding: 0;
}

.ht-row {
    display: flex;
    border-bottom: 1.5px solid #333;
}

.ht-row:last-child {
    border-bottom: none;
}

.ht-cell {
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.4;
}

.ht-cell strong {
    font-weight: 700;
}

.ht-cell.label {
    font-weight: 700;
    min-width: 160px;
}

.ht-cell.border-right {
    border-right: 1.5px solid #333;
}

.ht-cell.flex-1 { flex: 1; }
.ht-cell.flex-2 { flex: 2; }

.ht-photo-cell {
    width: 140px;
    min-height: 140px;
    border-left: 1.5px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.ht-photo-cell img {
    max-width: 110px;
    max-height: 130px;
    border: 1px solid #999;
}

.ht-photo-cell span {
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}

.ht-row-full {
    padding: 10px 16px;
    border-bottom: 1.5px solid #333;
    font-size: 14px;
}

.ht-center-section {
    padding: 14px 16px;
    border-bottom: 1.5px solid #333;
    font-size: 14px;
    min-height: 60px;
}

.ht-sign-row {
    display: flex;
    padding: 30px 16px 20px;
    border-bottom: 2px solid #333;
}

.ht-sign-box {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    border-top: 1px solid #555;
    margin: 0 40px;
    padding-top: 8px;
}

.ht-instructions {
    padding: 16px 20px;
}

.ht-instructions h3 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.ht-instructions ol {
    padding-left: 24px;
    font-size: 13px;
    line-height: 1.8;
}

.ht-instructions ol li {
    margin-bottom: 2px;
}

/* --- Print Styles --- */
@media print {
    body { background: #fff; }
    .hallticket-actions { display: none !important; }
    .hallticket-wrapper { margin: 0; max-width: 100%; padding: 0; }
    .hallticket-card { border: 2px solid #000; }
}
