/* Extend the existing SWAYAM account screens; the exported PDF owns the reference layout. */
.hall-ticket-page { margin: 0; background: #f5f6f8; color: #333; font-family: Poppins, Arial, sans-serif; }
.ticket-wrap { max-width: 1200px; margin: 0 auto; padding: 28px 24px 64px; }
.ticket-breadcrumb { margin-bottom: 20px; font-size: 12px; color: #555; }
.ticket-breadcrumb a { color: #003987; }
.ticket-heading h1 { margin: 0 0 8px; font-size: 27px; font-weight: 600; line-height: 1.3; }
.ticket-heading p { max-width: 70ch; margin: 0 0 25px; font-size: 14px; line-height: 1.7; }
.ticket-login { padding: 24px; background: #fff; border: 1px solid #d5d9df; }
.ticket-login p { margin: 0 0 16px; }
.ticket-form { background: #fff; border: 1px solid #d5d9df; padding: 28px; }
.ticket-form fieldset { min-width: 0; border: 0; padding: 0; margin: 0 0 28px; }
.ticket-form legend { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #d5d9df; font-size: 17px; font-weight: 600; }
.ticket-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; }
.ticket-field { min-width: 0; }
.ticket-field-wide { grid-column: 1 / -1; }
.ticket-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 500; }
.ticket-field input, .ticket-field select, .ticket-field textarea { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #aeb6c1; border-radius: 3px; background: #fff; color: #252b34; font: inherit; font-size: 13px; line-height: 1.5; }
.ticket-field textarea { min-height: 85px; resize: vertical; }
.ticket-field input[readonly] { background: #f5f6f8; color: #4f5762; }
.ticket-field input[type="file"] { padding: 8px; }
.ticket-field small { display: block; margin-top: 7px; font-size: 12px; color: #555; line-height: 1.5; }
.ticket-field input:focus-visible, .ticket-field select:focus-visible, .ticket-field textarea:focus-visible, .ticket-btn:focus-visible, .ticket-download:focus-visible, .ticket-wrap a:focus-visible { outline: 3px solid #003987; outline-offset: 3px; }
.ticket-session-times { grid-column: 1 / -1; padding: 14px 16px; background: #f1f5fa; color: #263d58; font-size: 13px; line-height: 1.8; }
.ticket-session-times strong { font-weight: 600; }
.ticket-upload-grid { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; }
.ticket-photo-preview { width: 116px; height: 135px; border: 1px solid #aeb6c1; object-fit: contain; background: #f5f6f8; }
.ticket-photo-placeholder { width: 116px; height: 135px; border: 1px dashed #9aa7b7; background: #f5f6f8; color: #4f5762; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; padding: 12px; }
.ticket-signature-preview { max-width: 200px; max-height: 65px; margin-top: 10px; object-fit: contain; }
.ticket-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.ticket-btn, .ticket-download { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 24px; border: 1px solid #003987; border-radius: 3px; background: #003987; color: #fff; text-decoration: none; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.ticket-btn:hover, .ticket-download:hover { color: #fff; background: #00285f; text-decoration: none; }
.ticket-btn:disabled { cursor: wait; background: #5b708c; border-color: #5b708c; }
.ticket-download { background: #fff; color: #003987; }
.ticket-status { font-size: 13px; line-height: 1.6; }
.ticket-error { padding: 14px 16px; margin: 0 0 20px; background: #fff1f0; color: #8f2220; border: 1px solid #dba09e; font-size: 13px; line-height: 1.6; }
.ticket-preview { margin-top: 32px; }
.ticket-preview h2 { font-size: 19px; margin: 0 0 12px; font-weight: 600; }
.ticket-preview-pages { display: grid; gap: 24px; padding: 20px; background: #e6e8eb; border: 1px solid #aeb6c1; }
.ticket-preview-pages figure { min-width: 0; margin: 0; }
.ticket-preview-pages figcaption { margin-bottom: 10px; text-align: center; color: #4f5762; font-size: 12px; }
.ticket-preview-pages canvas { display: block; width: 100%; max-width: 794px; height: auto; margin: auto; background: #fff; }
.ticket-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ticket-form [hidden], .ticket-wrap [hidden] { display: none !important; }
@media (max-width: 640px) {
  .ticket-wrap { padding: 22px 14px 42px; }
  .ticket-heading h1 { font-size: 23px; }
  .ticket-form { padding: 20px 16px; }
  .ticket-grid, .ticket-three { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ticket-upload-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ticket-photo-placeholder, .ticket-photo-preview { margin-bottom: 0; }
  .ticket-preview-pages { padding: 8px; gap: 18px; }
  .hall-ticket-page .mv-swayam-image-wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 100%; padding: 0 14px !important; }
  .hall-ticket-page .mv-swayam-logo { width: auto; flex: 0 0 120px; }
  .hall-ticket-page .mv-swayam-image { width: 120px; max-width: 100% !important; }
  .hall-ticket-page .mv-display { min-width: 0; max-width: calc(100% - 140px); position: relative; margin: 0; }
  .hall-ticket-page .user_email { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .hall-ticket-page #login_dropdown-menu { left: auto; right: 0; min-width: min(235px, calc(100vw - 28px)); }
  .ticket-actions .ticket-btn, .ticket-actions .ticket-download { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ticket-wrap * { scroll-behavior: auto; } }
