/* Authentication pages: intentional, compact, and independent of portal navigation. */
:root {
  --auth-navy: #0f172a;
  --auth-blue: #2563eb;
  --auth-surface: #f8fafc;
  --auth-text: #111827;
  --auth-muted: #64748b;
  --auth-border: #e2e8f0;
  --auth-gold: #c9a227;
}

body.auth-screen {
  min-width: 0;
  background: var(--auth-surface);
  color: var(--auth-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page-wrap { min-height: 100vh; }
.auth-page-wrap .notice { position: fixed; z-index: 20; top: 1.25rem; left: 50%; width: min(92vw, 37rem); transform: translateX(-50%); }
.auth-layout { display: grid; grid-template-columns: minmax(22rem, .9fr) minmax(28rem, 1.1fr); min-height: 100vh; }
.auth-brand-panel {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(2rem, 6vw, 5.5rem); color: #fff; background: #0f172a;
}
.auth-brand-panel::before, .auth-brand-panel::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.auth-brand-panel::before { width: 29rem; height: 29rem; top: -13rem; left: -12rem; border: 1px solid rgba(148,163,184,.21); box-shadow: 0 0 0 3.5rem rgba(37,99,235,.07), 0 0 0 7rem rgba(37,99,235,.045); }
.auth-brand-panel::after { width: 19rem; height: 19rem; right: -11rem; bottom: -8rem; background: radial-gradient(circle, rgba(37,99,235,.25), rgba(37,99,235,0) 68%); }
.auth-brand-content, .auth-brand-foot { position: relative; z-index: 1; }
.auth-logo { display: inline-flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; font-weight: 750; font-size: 1.08rem; letter-spacing: -.01em; }
.auth-logo-mark { display: flex; align-items: center; justify-content: center; width: 2.85rem; height: 2.85rem; border-radius: 0; background: transparent; box-shadow: none; font-size: 1.25rem; }
.auth-logo-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(0,0,0,.35)); }
.auth-logo small { display: block; margin-top: .1rem; color: #94a3b8; font-size: .72rem; font-weight: 500; letter-spacing: .03em; }
.auth-brand-message { max-width: 32rem; margin: clamp(3.5rem, 10vh, 8rem) 0 2rem; }
.auth-brand-message h1 { max-width: 29rem; margin: 0; color: #fff; font-size: clamp(1.85rem, 3vw, 2.6rem); line-height: 1.12; letter-spacing: -.04em; }
.auth-brand-message p { max-width: 30rem; margin: 1.25rem 0 0; color: #cbd5e1; font-size: 1rem; line-height: 1.65; }
.auth-trust-list { display: grid; gap: .7rem; margin: 2rem 0 0; padding: 1.15rem 1.25rem; border: 1px solid rgba(226,232,240,.16); border-radius: .9rem; background: rgba(255,255,255,.045); color: #e2e8f0; font-size: .875rem; }
.auth-trust-list span { display: flex; gap: .65rem; align-items: center; }
.auth-trust-list i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--auth-gold); }
.auth-brand-foot { display: flex; justify-content: space-between; color: #94a3b8; font-size: .78rem; }
.auth-brand-foot strong { color: #cbd5e1; font-size: .73rem; letter-spacing: .1em; }

.auth-form-panel { display: grid; align-items: center; padding: 2rem; background: #fff; }
.auth-card { width: min(100%, 25.5rem); margin: auto; }
.auth-back { display: inline-flex; margin-bottom: 2.15rem; border: 0; background: transparent; color: var(--auth-muted); font: inherit; font-size: .875rem; text-decoration: none; cursor: pointer; }
.auth-back:hover, .auth-meta a:hover, .auth-footer a:hover { color: var(--auth-blue); text-decoration: underline; }
.auth-kicker { display: block; margin-bottom: .65rem; color: var(--auth-blue); font-size: .75rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.auth-card h1, .register-heading h1 { margin: 0; color: var(--auth-text); font-size: 1.9rem; letter-spacing: -.035em; line-height: 1.2; }
.auth-intro, .register-heading p { margin: .65rem 0 0; color: var(--auth-muted); font-size: .95rem; line-height: 1.55; }
.auth-form { margin-top: 1.85rem; }
.auth-field { min-width: 0; }
.auth-field + .auth-field { margin-top: 1rem; }
.auth-field label, .section-title { display: block; margin-bottom: .45rem; color: #334155; font-size: .86rem; font-weight: 680; }
.auth-required::after { margin-left: .2rem; color: #dc2626; content: "*"; }
.auth-screen input, .auth-screen select, .auth-screen textarea {
  box-sizing: border-box; width: 100%; border: 1px solid var(--auth-border); border-radius: .55rem; outline: none; background: #fff; color: var(--auth-text); font: inherit; font-size: .94rem; transition: border-color .15s, box-shadow .15s;
}
.auth-screen input, .auth-screen select { height: 2.95rem; padding: 0 .85rem; }
.auth-screen textarea { min-height: 5.5rem; padding: .75rem .85rem; resize: vertical; }
.auth-screen input::placeholder, .auth-screen textarea::placeholder { color: #94a3b8; }
.auth-screen select { padding-right: 2.35rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%); background-position: calc(100% - 1.2rem) 1.25rem, calc(100% - .88rem) 1.25rem; background-size: .32rem .32rem, .32rem .32rem; background-repeat: no-repeat; }
.auth-screen input:focus, .auth-screen select:focus, .auth-screen textarea:focus { border-color: var(--auth-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 4rem; }
.password-toggle { position: absolute; top: 50%; right: .45rem; transform: translateY(-50%); border: 0; border-radius: .35rem; background: transparent; color: #475569; padding: .35rem .42rem; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.password-toggle:hover { background: #f1f5f9; color: var(--auth-blue); }
.auth-meta { display: flex; justify-content: flex-end; margin-top: .48rem; font-size: .81rem; }
.auth-meta a, .auth-footer a { color: var(--auth-blue); }
.auth-primary { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 3rem; margin-top: 1.35rem; border: 0; border-radius: .55rem; background: var(--auth-blue); box-shadow: 0 .55rem 1.2rem rgba(37,99,235,.2); color: #fff; font: inherit; font-size: .93rem; font-weight: 700; cursor: pointer; transition: background .15s, transform .15s; }
.auth-primary:hover { background: #1d4ed8; transform: translateY(-1px); }
.auth-primary:focus-visible, .password-toggle:focus-visible, .auth-back:focus-visible, .auth-footer a:focus-visible { outline: 3px solid rgba(37,99,235,.32); outline-offset: 3px; }
.auth-help { margin: 1rem 0 0; color: var(--auth-muted); font-size: .78rem; text-align: center; }
.auth-footer { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--auth-border); color: var(--auth-muted); font-size: .85rem; text-align: center; line-height: 1.7; }

.register-page { min-height: 100vh; padding: 1.25rem 1.25rem 3rem; background: var(--auth-surface); }
.register-top { display: flex; align-items: center; justify-content: space-between; width: min(100%, 59rem); margin: 0 auto 2rem; }
.register-top .auth-logo { color: var(--auth-navy); }
.register-top .auth-logo small { color: var(--auth-muted); }
.register-top .auth-logo-mark { box-shadow: none; }
.auth-outline { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: 0 .9rem; border: 1px solid var(--auth-border); border-radius: .5rem; color: #334155; background: #fff; font-size: .85rem; font-weight: 650; text-decoration: none; }
.auth-outline:hover { border-color: #bfdbfe; color: var(--auth-blue); }
.register-container { width: min(100%, 57rem); margin: 0 auto; border: 1px solid var(--auth-border); border-radius: .95rem; background: #fff; box-shadow: 0 1.25rem 3.4rem rgba(15,23,42,.07); overflow: hidden; }
.register-heading { padding: 2rem 2.25rem 1.55rem; border-bottom: 1px solid var(--auth-border); }
.register-heading h1 { font-size: 1.75rem; }
.register-heading .auth-kicker { margin-bottom: .5rem; }
.registration-notice { display: flex; gap: .75rem; align-items: flex-start; margin: 1.25rem 2.25rem 0; padding: .85rem 1rem; border: 1px solid #dbeafe; border-radius: .55rem; background: #eff6ff; color: #1e3a8a; font-size: .84rem; line-height: 1.45; }
.registration-notice strong { color: #1d4ed8; }
.register-form { margin: 0; padding: .25rem 2.25rem 2.25rem; }
.wizard-steps{display:flex;align-items:flex-start;margin:1rem 0 1.35rem;padding:0;border:0}.wizard-steps button{position:relative;display:grid;justify-items:center;gap:.45rem;flex:1;min-width:0;padding:0;border:0;background:none;color:#64748b;font:600 .72rem/1.2 inherit;cursor:pointer}.wizard-steps button:not(:last-child)::after{content:"";position:absolute;top:.7rem;left:calc(50% + .85rem);width:calc(100% - 1.7rem);height:1px;background:#dbe3ee}.wizard-steps b{display:grid;place-items:center;z-index:1;width:1.45rem;height:1.45rem;border-radius:50%;background:#e8eef6;color:#64748b;font-size:.72rem}.wizard-steps .active{color:#1d4ed8}.wizard-steps .active b{background:#2563eb;color:#fff}.wizard-steps .done b{background:#16a34a;color:#fff;font-size:0}.wizard-steps .done b::after{content:"✓";font-size:.75rem}.wizard-steps .done:not(:last-child)::after{background:#2563eb}
.classification-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:0 0 1.2rem}.classification-card{display:grid;gap:.35rem;min-height:88px;padding:1rem;border:1px solid var(--auth-border);border-radius:.65rem;cursor:pointer}.classification-card input{width:18px!important;height:18px!important;min-height:0!important;padding:0!important;accent-color:#2563eb}.classification-card.active{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 2px rgba(37,99,235,.12)}.classification-card strong{color:#172b4d}.classification-card small{color:#64748b;line-height:1.45}.auth-field>input[type=checkbox],.auth-field>input[type=radio]{width:18px!important;height:18px!important;min-height:0!important;padding:0!important;border:0!important;vertical-align:middle;accent-color:#2563eb}@media(max-width:760px){.classification-cards{grid-template-columns:1fr}.wizard-steps{overflow:hidden}.wizard-steps button{display:none}.wizard-steps button.active{display:grid;align-items:center;grid-template-columns:auto 1fr;justify-items:start;text-align:left}.wizard-steps button.active::after{display:none}}
.wizard-actions{margin-top:1.2rem}.wizard-actions .auth-outline{min-width:5rem}.wizard-actions [hidden]{display:none}
.form-section { padding: 1.45rem 0; border-bottom: 1px solid var(--auth-border); }
.form-section:last-of-type { border-bottom: 0; }
.form-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.form-section-head h2 { margin: 0; color: var(--auth-text); font-size: 1.05rem; letter-spacing: -.01em; }
.form-section-head p { margin: 0; color: var(--auth-muted); font-size: .8rem; }
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.15rem; }
.auth-grid .auth-field + .auth-field { margin-top: 0; }
.auth-span-full { grid-column: 1 / -1; }
.auth-field .help { margin: .4rem 0 0; color: var(--auth-muted); font-size: .75rem; line-height: 1.4; }
.register-submit { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 1.65rem; }
.register-submit p { margin: 0; color: var(--auth-muted); font-size: .78rem; line-height: 1.4; }
.register-submit .auth-primary { width: auto; min-width: 14rem; margin: 0; padding: 0 1.15rem; }
.registration-footer { padding: 1rem 2.25rem; border-top: 1px solid var(--auth-border); color: var(--auth-muted); font-size: .84rem; text-align: center; }
.registration-footer a { color: var(--auth-blue); }

@media (max-width: 760px) {
  .auth-layout { display: block; }
  .auth-brand-panel { min-height: auto; padding: 1.45rem 1.35rem; }
  .auth-brand-message { margin: 1.8rem 0 .2rem; }
  .auth-brand-message h1 { font-size: 1.5rem; }
  .auth-brand-message p, .auth-trust-list, .auth-brand-foot { display: none; }
  .auth-form-panel { display: block; padding: 1.75rem 1.35rem 2.5rem; }
  .auth-card { width: 100%; }
  .auth-back { margin-bottom: 1.5rem; }
  .register-page { padding: .8rem .7rem 1.5rem; }
  .register-top { margin-bottom: 1.1rem; }
  .register-top .auth-logo small { display: none; }
  .register-container { border-radius: .75rem; }
  .register-heading, .register-form { padding-left: 1.15rem; padding-right: 1.15rem; }
  .registration-notice { margin-left: 1.15rem; margin-right: 1.15rem; }
  .registration-footer { padding-left: 1.15rem; padding-right: 1.15rem; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-span-full { grid-column: auto; }
  .form-section-head { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .register-submit { align-items: stretch; flex-direction: column; }
  .register-submit .auth-primary { width: 100%; }
}

/* Establishment registration wizard */
.hotel-wizard { padding-top: .45rem; }
.hotel-wizard .form-section { padding: 1.65rem 0; }
.form-section-head > div { min-width: 0; }
.form-section-head h2 { font-size: 1.16rem; }
.form-section-head p { margin-top: .25rem; }
.section-caption { flex: 0 0 auto; color: #64748b; font-size: .76rem; font-weight: 650; }
.wizard-steps { margin: 1.2rem 0 .2rem; padding: .2rem 0 1.3rem; border-bottom: 1px solid #e2e8f0; }
.wizard-steps button { gap: .5rem; color: #64748b; font-size: .76rem; font-weight: 700; text-transform: none; }
.wizard-steps button:not(:last-child)::after { top: .87rem; left: calc(50% + 1.05rem); width: calc(100% - 2.1rem); height: 2px; background: #dbe3ee; }
.wizard-steps b { width: 1.78rem; height: 1.78rem; border: 0; background: #e8eef6; color: #60728c; font-size: .78rem; box-shadow: 0 0 0 4px #fff; }
.wizard-steps .active b { background: #2563eb; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #bfdbfe; }
.wizard-steps .done { color: #36516f; }
.wizard-steps .done b { background: #168a4a; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #d1fae5; }
.wizard-steps .done b::after { font-size: .94rem; font-weight: 800; line-height: 1; }
.wizard-steps .done:not(:last-child)::after { background: #2563eb; }
.classification-cards { margin: 0 0 1.35rem; padding: 0; border: 0; }
.classification-cards legend { width: 100%; margin-bottom: .6rem; color: #334155; font-size: .86rem; font-weight: 680; }
.classification-cards legend span { margin-left: .2rem; color: #dc2626; }
.classification-card { grid-template-columns: 1.25rem 2rem minmax(0, 1fr); align-items: start; gap: .65rem; min-height: 0; padding: .9rem; border-radius: .7rem; transition: border-color .15s, box-shadow .15s, background .15s; }
.classification-card input { margin: .17rem 0 0; }
.classification-card .classification-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .5rem; background: #f1f5f9; color: #2563eb; font-size: 1rem; font-weight: 800; }
.classification-card strong { display: block; font-size: .9rem; }
.classification-card small { display: block; margin-top: .22rem; font-size: .75rem; }
.classification-card.active .classification-icon { background: #dbeafe; }
.map-field { padding: 1rem; border: 1px solid #dbe5f1; border-radius: .75rem; background: #fbfdff; margin-top: 1rem; }
.map-field-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.map-head-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.map-head-actions a.map-locate-btn { text-decoration: none; }
.map-search-bar { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.map-search-bar input { flex: 1 1 auto; min-width: 0; height: 2.55rem !important; font-size: .85rem !important; }
.map-search-btn { height: 2.55rem; padding: 0 1rem; border: 0; border-radius: .5rem; background: #2563eb; color: #fff; font: 700 .82rem/1 inherit; cursor: pointer; white-space: nowrap; }
.map-search-btn:hover { background: #1d4ed8; }
.map-search-btn:disabled { opacity: .65; cursor: wait; }
.map-results-list { display: grid; gap: .35rem; margin-bottom: .75rem; padding: .45rem; border: 1px solid #dbe5f1; border-radius: .55rem; background: #fff; }
.map-result-item { width: 100%; text-align: left; padding: .5rem .65rem; border: 0; border-radius: .4rem; background: transparent; color: #334155; font: 600 .78rem/1.35 inherit; cursor: pointer; }
.map-result-item:hover { background: #eff6ff; color: #1d4ed8; }
.map-field-head strong { display: block; color: #243b5b; font-size: .88rem; }
.map-field-head p, .photo-section > div > p, .facility-list > p { margin: .25rem 0 0; color: #64748b; font-size: .75rem; line-height: 1.45; }
.map-locate-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border: 1px solid #bfdbfe; border-radius: .5rem; background: #eff6ff; color: #1d4ed8; font: 650 .78rem/1.2 inherit; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.map-locate-btn:hover { background: #dbeafe; border-color: #93c5fd; }
.map-locate-btn:disabled { opacity: .65; cursor: wait; }
.map-status { display: block; max-width: 28rem; color: #52667f; font-size: .74rem; line-height: 1.35; margin-top: .2rem; }
.map-toolbar { display: flex; align-items: center; gap: .8rem; margin-bottom: .75rem; }
.map-action, .map-link { border: 0; border-radius: .45rem; background: transparent; color: #1d4ed8; font: 700 .76rem/1 inherit; cursor: pointer; }
.map-action { padding: .6rem .7rem; background: #eaf2ff; }
.map-action:hover { background: #dbeafe; }
.map-link { padding: .5rem .3rem; color: #52667f; }
.map-link:hover { color: #1d4ed8; text-decoration: underline; }
.property-map { height: 23rem; overflow: hidden; border: 1px solid #cbd5e1; border-radius: .6rem; background: #eef3f8; cursor: crosshair; touch-action: none; }
.property-map .leaflet-control-attribution { font-size: 9px; }
.map-dual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.map-pane { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.map-pane-bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 1.75rem; font-size: .74rem; font-weight: 700; color: #334155; flex-wrap: wrap; }
.map-pane-tools { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.map-pane-tools a.map-link { padding: .2rem .35rem; text-decoration: none; }
.map-pin-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .35rem; flex-wrap: wrap; }
.map-pin-footer .field-note { margin-top: 0; }
.map-pin-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.map-pane-bar small { color: #64748b; font-weight: 600; font-size: .7rem; }
.map-layer-switch { display: inline-flex; padding: 2px; border: 1px solid #cbd5e1; border-radius: .45rem; background: #f1f5f9; gap: 2px; }
.map-layer-btn { border: 0; border-radius: .35rem; padding: .22rem .55rem; background: transparent; color: #475569; font: 700 .7rem/1.1 inherit; cursor: pointer; }
.map-layer-btn.is-active { background: #2563eb; color: #fff; }
.google-map-embed { width: 100%; height: 20rem; border: 1px solid #cbd5e1; border-radius: .6rem; background: #eef3f8; }
@media (max-width: 820px) { .map-dual-grid { grid-template-columns: 1fr; } }
.hpgvs-map-pin { background: transparent; border: 0; }
.hpgvs-map-pin svg { display: block; filter: drop-shadow(0 3px 6px rgba(15, 23, 42, .38)); }
.hpgvs-map-pin span { display: block; width: 1.45rem; height: 1.45rem; border: 3px solid #fff; border-radius: 50% 50% 50% 0; background: #ea4335; box-shadow: 0 2px 7px rgba(15,23,42,.32); transform: rotate(-45deg); }
.hpgvs-map-pin span::after { content: ""; display: block; width: .42rem; height: .42rem; margin: .35rem; border-radius: 50%; background: #fff; }
.map-coordinate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: .9rem; }
.map-help { margin: .55rem 0 0 !important; }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.evidence-details { margin-bottom: .95rem; }
.upload-card, .photo-upload { position: relative; min-width: 0; border: 1px dashed #b9c9dd; border-radius: .7rem; background: #fbfdff; transition: border-color .15s, box-shadow .15s, background .15s; }
.upload-card:hover, .photo-upload:hover, .upload-card.has-file, .photo-upload.has-file { border-color: #2563eb; background: #f7fbff; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.upload-card .upload-input, .photo-upload .upload-input { position: absolute; width: 1px !important; height: 1px !important; min-height: 1px !important; margin: -1px; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 !important; }
.upload-card label { display: grid; grid-template-columns: 2.35rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .75rem; row-gap: .15rem; align-items: center; min-height: 4.8rem; padding: .85rem 5rem .85rem .9rem; cursor: pointer; }
.upload-card:not(.photo-upload) label > span, .upload-symbol { display: grid; grid-column: 1; grid-row: 1 / span 2; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: .55rem; background: #eaf2ff; color: #2563eb; font-size: 1.05rem; font-weight: 800; }
.upload-card:not(.photo-upload) label > strong, .upload-card:not(.photo-upload) label > em, .upload-card:not(.photo-upload) label > small { grid-column: 2; }
.upload-card strong, .photo-upload strong { color: #334155; font-size: .84rem; line-height: 1.3; }
.upload-card small { margin-top: .16rem; color: #64748b; font-size: .7rem; line-height: 1.35; }
.upload-card em, .photo-upload em { display: block; margin-top: .15rem; overflow: hidden; color: #2563eb; font-size: .74rem; font-style: normal; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.upload-clear { position: absolute; top: .6rem; right: .65rem; border: 0; border-radius: .35rem; background: #fee2e2; color: #b91c1c; padding: .3rem .4rem; font: 700 .67rem/1 inherit; cursor: pointer; }
.upload-clear:hover { background: #fecaca; }
.upload-preview { border: 1px solid #bfdbfe; border-radius: .45rem; background: #eff6ff; color: #1d4ed8; padding: .62rem .85rem; font: 700 .82rem/1.2 inherit; cursor: pointer; }
.upload-preview:hover { background: #dbeafe; }
.photo-section { margin-top: 1.25rem; padding-top: 1.15rem; border-top: 1px solid #e2e8f0; }
.photo-section h3 { margin: 0; color: #334155; font-size: .92rem; }
.photo-upload-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: .85rem; }
.photo-upload.upload-card label, .photo-upload label { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .25rem; min-height: 6.8rem; padding: .9rem 5rem .9rem .9rem; cursor: pointer; }
.photo-upload label > span { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; margin-bottom: .3rem; border-radius: .5rem; background: #eaf2ff; color: #2563eb; font-size: .95rem; }
.photo-upload label > em { width: 100%; margin-top: .1rem; }
.photo-upload .upload-clear { top: .45rem; right: .45rem; }
.upload-required-mark { color: #dc2626; font-style: normal; }
.register-form [hidden] { display: none !important; }
.choice-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.choice-row label { margin: 0; }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row span { display: inline-flex; min-height: 2.35rem; align-items: center; padding: 0 .78rem; border: 1px solid #d5dfec; border-radius: .5rem; background: #fff; color: #52667f; font-size: .77rem; font-weight: 650; cursor: pointer; }
.choice-row input:checked + span { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; box-shadow: 0 0 0 2px rgba(37,99,235,.1); }
.facility-list { margin: 1.2rem 0 0; padding: 0; border: 0; }
.facility-list legend { color: #334155; font-size: .88rem; font-weight: 680; }
.facility-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: .85rem; }
.facility-grid label { position: relative; display: grid; grid-template-columns: 1.45rem minmax(0,1fr); column-gap: .6rem; padding: .78rem; border: 1px solid #dbe5f1; border-radius: .65rem; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.facility-grid input { position: absolute; opacity: 0; pointer-events: none; }
.facility-check { display: grid; grid-row: span 2; place-items: center; width: 1.18rem; height: 1.18rem; margin-top: .08rem; border: 1px solid #b9c9dd; border-radius: .33rem; color: transparent; font-size: .76rem; font-weight: 900; }
.facility-grid strong { color: #334155; font-size: .79rem; }
.facility-grid small { margin-top: .15rem; color: #64748b; font-size: .7rem; line-height: 1.35; }
.facility-grid label:has(input:checked) { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 2px rgba(37,99,235,.08); }
.facility-grid input:checked + .facility-check { border-color: #2563eb; background: #2563eb; color: #fff; }
.review-warning-list { margin: 0 0 1rem; padding: .8rem .95rem; border: 1px solid #f7c864; border-radius: .7rem; background: #fffbeb; color: #854d0e; font-size: .8rem; line-height: 1.45; }
.review-warning-list strong { display: block; font-weight: 750; }
.review-warning-list ul { display: grid; gap: .18rem; margin: .38rem 0 0 1.1rem; padding: 0; }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.review-grid article { padding: .95rem; border: 1px solid #dbe5f1; border-radius: .7rem; background: #fbfdff; }
.review-grid article header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-bottom: .65rem; border-bottom: 1px solid #e5edf6; }
.review-grid h3 { margin: 0; color: #334155; font-size: .86rem; }
.review-grid button { border: 0; background: transparent; color: #1d4ed8; font: 700 .72rem/1 inherit; cursor: pointer; }
.review-grid button:hover { text-decoration: underline; }
.review-grid dl { display: grid; gap: .52rem; margin: .7rem 0 0; }
.review-grid dl div { display: grid; grid-template-columns: 5rem minmax(0,1fr); gap: .5rem; }
.review-grid dt { color: #718096; font-size: .7rem; }
.review-grid dd { margin: 0; overflow-wrap: anywhere; color: #334155; font-size: .75rem; font-weight: 650; line-height: 1.35; }
.registration-report-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .85rem; margin-top: 1rem; padding: 1rem; border: 1px solid #bfdbfe; border-radius: .7rem; background: #eff6ff; }
.registration-report-actions strong { color: #1e3a8a; font-size: .88rem; }
.registration-report-actions p { margin: .25rem 0 0; color: #475569; font-size: .78rem; line-height: 1.4; }
.registration-report-buttons, .success-report-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.registration-report-buttons .auth-outline { cursor: pointer; }
.declaration { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1rem; padding: .85rem .9rem; border: 1px solid #dbe5f1; border-radius: .65rem; background: #f8fbff; color: #475569; font-size: .77rem; line-height: 1.45; cursor: pointer; }
.declaration input { flex: 0 0 auto; width: 1rem !important; height: 1rem !important; min-height: 0 !important; margin: .08rem 0 0; padding: 0 !important; accent-color: #2563eb; }
@media (max-width: 760px) {
  .hotel-wizard .form-section { padding: 1.25rem 0; }
  .section-caption { display: none; }
  .wizard-steps { padding-bottom: .85rem; }
  .wizard-steps button.active { gap: .45rem; font-size: .85rem; }
  .wizard-steps button.active b { width: 1.8rem; height: 1.8rem; }
  .map-field { padding: .8rem; }
  .map-field-head { display: block; }
  .map-head-actions { margin-top: .5rem; }
  .map-status { display: block; max-width: none; margin-top: .4rem; text-align: left; }
  .property-map { height: 17.5rem; }
  .map-coordinate-grid, .upload-grid, .facility-grid, .review-grid { grid-template-columns: 1fr; }
  .photo-upload-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ============================================================
   Hotel Registration — enhanced UX elements
   ============================================================ */
.optional-tag { display: inline-block; margin-left: .35rem; padding: .05rem .4rem; border-radius: .3rem; background: #f1f5f9; color: #64748b; font-size: .68rem; font-weight: 600; vertical-align: middle; }
.field-hint { color: #94a3b8; font-size: .78rem; font-weight: 500; }
.field-note { display: block; margin-top: .3rem; color: #64748b; font-size: .78rem; }
.photo-hint { margin: .3rem 0 .75rem; color: #64748b; font-size: .82rem; }
.identity-evidence { margin-top: 1.4rem; padding-top: 1.25rem; border-top: 1px solid #e2e8f0; }
.identity-evidence h3 { margin: 0; color: #1e293b; font-size: 1rem; }
.identity-evidence > p { margin: .35rem 0 .85rem; color: #64748b; font-size: .82rem; line-height: 1.45; }
.identity-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.identity-capture-card { overflow: visible; }
.evidence-choice-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0 .9rem .85rem; }
.camera-open { width: 100%; padding: .62rem .85rem; border: 1px solid #93c5fd; border-radius: .45rem; background: #eff6ff; color: #1d4ed8; font: 700 .82rem/1.2 inherit; cursor: pointer; }
.evidence-choice-actions .upload-preview { grid-column: 1 / -1; width: 100%; }
.upload-button { border-color: #cbd5e1; background: #fff; color: #334155; }
.upload-button:hover { background: #f8fafc; }
.camera-open:hover { background: #dbeafe; }
.document-capture-card .evidence-choice-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .5rem; margin: 0 .8rem .8rem; }
.document-capture-card .camera-open, .document-capture-card .upload-preview { width: auto; min-width: 0; padding: .54rem .75rem; font-size: .76rem; line-height: 1.15; white-space: nowrap; }
.camera-capture { position: fixed; inset: 0; z-index: 1100; display: flex; flex-direction: column; justify-content: center; gap: .65rem; padding: 1.25rem; background: rgba(15, 23, 42, .68); }
.camera-capture video, .camera-capture img { display: block; width: min(100%, 42rem); max-height: min(62vh, 34rem); margin: 0 auto; border: 1px solid #334155; border-radius: .7rem; background: #0f172a; object-fit: contain; box-shadow: 0 18px 48px rgba(0,0,0,.35); }
.registration-file-preview { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 1.25rem; background: rgba(15,23,42,.7); }
.registration-file-preview[hidden] { display: none; }
.registration-file-preview-panel { display: flex; flex-direction: column; width: min(100%, 52rem); max-height: calc(100vh - 2.5rem); padding: 1rem; border-radius: .8rem; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.32); }
.registration-file-preview-panel header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.registration-file-preview-panel h2 { margin: 0; color: #0f172a; font-size: 1rem; }
.registration-file-preview-panel header button { width: 2rem; height: 2rem; border: 1px solid #cbd5e1; border-radius: .45rem; color: #475569; background: #fff; font: 700 1.35rem/1 inherit; cursor: pointer; }
.registration-file-preview-panel > p { margin: .45rem 0 .75rem; overflow: hidden; color: #64748b; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.registration-file-preview-panel [data-file-preview-content] { display: grid; flex: 1; min-height: 12rem; place-items: center; overflow: auto; border-radius: .55rem; background: #f1f5f9; }
.registration-file-preview-panel [data-file-preview-content] > img { display: block; max-width: 100%; max-height: min(70vh, 42rem); object-fit: contain; }
.registration-file-preview-panel [data-file-preview-content] > iframe { display: block; width: min(100%, 48rem); height: min(70vh, 42rem); border: 0; background: #fff; }
.registration-file-preview-panel [data-file-preview-content] > p { max-width: 28rem; padding: 2rem; color: #475569; font-size: .85rem; line-height: 1.5; text-align: center; }
.camera-capture p { width: min(100%, 42rem); min-height: 1.1rem; margin: 0 auto; color: #e2e8f0; font-size: .82rem; line-height: 1.35; text-align: center; }
.camera-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; width: min(100%, 42rem); margin: 0 auto; }
.camera-actions button { border: 1px solid #bfdbfe; border-radius: .4rem; background: #fff; color: #1e40af; padding: .55rem .75rem; font: 700 .78rem/1.2 inherit; cursor: pointer; }
.camera-actions button:hover:not(:disabled) { background: #dbeafe; }
.camera-actions button:disabled { cursor: not-allowed; opacity: .5; }
@media (max-width: 760px) { .identity-evidence-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .camera-capture { padding: .75rem; } .camera-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .camera-actions button { width: 100%; } }

.station-help-msg { margin: .5rem 0 0; padding: .6rem .85rem; border-radius: .5rem; background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; font-size: .83rem; line-height: 1.4; }

.login-preview-box { display: flex; gap: .9rem; align-items: flex-start; margin-top: 1.4rem; padding: 1rem 1.1rem; border: 1px solid #bfdbfe; border-radius: .75rem; background: #eff6ff; }
.login-preview-icon { font-size: 1.4rem; flex-shrink: 0; }
.login-preview-box strong { display: block; color: #1e40af; font-size: .88rem; }
.login-preview-box p { margin: .3rem 0 0; color: #3b82f6; font-size: .82rem; line-height: 1.4; }

.credentials-preview { display: flex; gap: .9rem; align-items: flex-start; margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid #d1fae5; border-radius: .75rem; background: #f0fdf4; }
.cred-preview-icon { font-size: 1.4rem; flex-shrink: 0; }
.credentials-preview strong { display: block; color: #065f46; font-size: .88rem; }
.credentials-preview p { margin: .3rem 0 0; color: #047857; font-size: .82rem; line-height: 1.4; }
.application-access { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem 1.15rem; align-items: start; margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid #bfdbfe; border-radius: .75rem; background: #eff6ff; }
.application-access > .auth-field { min-width: 0; margin-top: .1rem; }
.application-access strong { display: block; color: #1e40af; font-size: .88rem; }
.application-access p { margin: .3rem 0 0; color: #3b82f6; font-size: .82rem; line-height: 1.4; }
@media (max-width: 760px) { .application-access { grid-template-columns: 1fr; } .application-access .cred-preview-icon { display: none; } }

.upload-card.has-error, .photo-upload.has-error, .doc-card.has-error { border-color: #dc2626; background: #fef2f2; box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.upload-card.has-error em, .photo-upload.has-error em, .doc-card.has-error .doc-file-name { color: #b91c1c; white-space: normal; }

/* Step 4 redesigned Documents & Photographs layout */
.doc-licence-bar { padding: 1rem 1.1rem; border: 1px solid #dbe5f1; border-radius: .75rem; background: #f8fbff; margin-bottom: 1.35rem; }
.doc-group-block { margin-top: .25rem; }
.doc-group-head { margin-bottom: .9rem; }
.doc-group-head h3 { margin: 0; color: #0f172a; font-size: .96rem; font-weight: 750; }
.doc-group-head p { margin: .28rem 0 0; color: #64748b; font-size: .8rem; line-height: 1.45; }
.doc-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.doc-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.doc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .7rem;
  min-width: 0;
  padding: .95rem 1rem;
  border: 1px solid #dbe3ef;
  border-radius: .75rem;
  background: #ffffff;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.doc-card:hover { border-color: #93c5fd; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); }
.doc-card.has-file { border-color: #2563eb; background: #f8fbff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.doc-card .upload-input { position: absolute; width: 1px !important; height: 1px !important; min-height: 1px !important; margin: -1px; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 !important; }
.doc-card-head { display: flex; align-items: flex-start; gap: .75rem; min-width: 0; }
.doc-card-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .55rem;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}
.doc-card.has-file .doc-card-icon { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.doc-card-copy { flex: 1; min-width: 0; }
.doc-card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.doc-card-title { margin: 0; color: #0f172a; font-size: .85rem; font-weight: 700; line-height: 1.32; cursor: pointer; }
.doc-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: .15rem .48rem;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .01em;
  white-space: nowrap;
}
.doc-badge.is-required { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.doc-badge.is-optional { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.doc-badge.is-applicable { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.doc-card-sub { margin: .25rem 0 0; color: #64748b; font-size: .73rem; line-height: 1.38; }
.doc-card-status {
  padding: .42rem .65rem;
  border-radius: .48rem;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  min-width: 0;
}
.doc-card.has-file .doc-card-status { border-style: solid; border-color: #bfdbfe; background: #eff6ff; }
.doc-file-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #64748b;
  font-size: .74rem;
  font-weight: 600;
}
.doc-card.has-file .doc-file-name { color: #1e40af; font-weight: 700; }
.doc-card.has-file .doc-file-name::before { content: "✓ "; color: #16a34a; font-weight: 800; }
.doc-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin: 0 !important; }
.doc-btn, .doc-card .upload-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: .35rem .72rem;
  border: 1px solid #cbd5e1;
  border-radius: .45rem;
  background: #fff;
  color: #334155;
  font: 650 .75rem/1.1 inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.doc-btn:hover, .doc-card .upload-preview:hover { background: #f8fafc; border-color: #94a3b8; }
.doc-btn-primary { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.doc-btn-primary:hover { background: #dbeafe; border-color: #93c5fd; }
.doc-card .upload-preview { border-color: #bfdbfe; background: #fff; color: #1d4ed8; }
.doc-btn-danger { order: 9; margin-left: auto; border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.doc-btn-danger:hover { background: #fee2e2; border-color: #fca5a5; }
@media (max-width: 760px) {
  .doc-upload-grid, .doc-photo-grid { grid-template-columns: 1fr; }
}
.wizard-error-banner { margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid #fca5a5; border-radius: .65rem; background: #fef2f2; color: #991b1b; font-size: .86rem; font-weight: 600; line-height: 1.45; }
.submit-btn { background: #16a34a; }
.submit-btn:hover { background: #15803d; }
.wizard-actions { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #e2e8f0; }
.wizard-actions [data-wizard-back] { margin-right: auto; }

/* ============================================================
   Registration success page (compact single-screen layout)
   ============================================================ */
.rhs-success-page { min-height: 100vh; display: flex; flex-direction: column; }
.success-wrap { flex: 1; display: grid; place-items: center; padding: 1.25rem 1rem; background: var(--auth-surface); }
.success-card { width: min(100%, 54rem); padding: 1.75rem 2rem; border: 1px solid #e2e8f0; border-radius: 1.15rem; background: #fff; box-shadow: 0 4px 28px rgba(15,23,42,.06); text-align: left; }
.success-header { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid #e2e8f0; }
.success-icon { flex-shrink: 0; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 1.4rem; font-weight: 900; }
.success-card h1 { margin: 0; color: #111827; font-size: 1.45rem; letter-spacing: -.03em; }
.success-sub { margin: .25rem 0 0; color: #64748b; font-size: .9rem; line-height: 1.45; }

.success-grid { display: grid; grid-template-columns: 1.25fr .95fr; gap: 1.25rem; align-items: stretch; }
.credentials-box { display: flex; flex-direction: column; padding: 1.2rem; border: 1.5px solid #bfdbfe; border-radius: .85rem; background: #eff6ff; }
.credentials-box h2 { margin: 0 0 .2rem; color: #1e3a8a; font-size: 1rem; }
.cred-note { margin: 0 0 .85rem; color: #2563eb; font-size: .8rem; }
.cred-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .55rem; padding: .55rem .75rem; border-radius: .55rem; background: #fff; border: 1px solid #dbeafe; }
.cred-label { flex: 0 0 9rem; color: #64748b; font-size: .76rem; font-weight: 650; }
.cred-value { flex: 1; min-width: 0; color: #1e40af; font-size: .92rem; font-weight: 750; font-family: ui-monospace, monospace; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cred-value.cred-masked { letter-spacing: .08em; color: #64748b; }
.cred-actions { display: flex; gap: .35rem; flex-shrink: 0; }
.cred-copy { flex-shrink: 0; border: 1px solid #93c5fd; border-radius: .4rem; background: #eff6ff; color: #2563eb; padding: .3rem .6rem; font: 650 .74rem/1.1 inherit; cursor: pointer; white-space: nowrap; transition: background .15s; }
.cred-copy:hover { background: #dbeafe; }
.cred-hint { margin-top: auto; padding: .7rem .85rem; border-radius: .55rem; background: #fefce8; border: 1px solid #fde68a; color: #78350f; font-size: .78rem; line-height: 1.45; }

.success-side { display: flex; flex-direction: column; justify-content: space-between; padding: 1.2rem; border: 1px solid #e2e8f0; border-radius: .85rem; background: #f8fafc; }
.success-steps h3 { margin: 0 0 .75rem; color: #1e293b; font-size: .95rem; }
.success-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.success-steps li { display: flex; align-items: flex-start; gap: .65rem; color: #475569; font-size: .82rem; line-height: 1.4; }
.success-steps li span { flex-shrink: 0; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #2563eb; color: #fff; font-size: .7rem; font-weight: 750; }
.success-cta { margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }
.success-report-actions { margin-bottom: .75rem; }
.success-report-actions .auth-outline { flex: 1; text-align: center; }
.success-login-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: .75rem 1.25rem; border-radius: .55rem; background: #2563eb; color: #fff; font-size: .92rem; font-weight: 700; text-decoration: none; box-sizing: border-box; }
.success-login-btn:hover { background: #1d4ed8; }
.success-ref { margin: .6rem 0 0; text-align: center; color: #94a3b8; font-size: .76rem; }
@media (max-width: 760px) {
  .success-card { padding: 1.25rem; }
  .success-grid { grid-template-columns: 1fr; }
  .cred-label { flex: 0 0 7.25rem; }
}

/* ============================================================
   Hotel Application Status Page
   ============================================================ */
.status-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--auth-surface); }
.status-top-actions { display: flex; align-items: center; gap: .6rem; }
.status-logout-form { margin: 0; }
.status-signout-btn { cursor: pointer; }
.status-wrap { flex: 1; display: grid; place-items: center; padding: 1.5rem 1rem 2.5rem; }
.status-card { width: min(100%, 54rem); padding: 2rem; border: 1px solid #e2e8f0; border-radius: 1.15rem; background: #fff; box-shadow: 0 4px 28px rgba(15,23,42,.06); }

.status-hero { display: flex; align-items: flex-start; gap: 1.15rem; }
.status-icon { flex-shrink: 0; display: grid; place-items: center; width: 3.35rem; height: 3.35rem; border-radius: 50%; font-size: 1.45rem; font-weight: 800; }
.status-icon-pending, .status-icon-review { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.status-icon-correction { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.status-icon-approved { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.status-icon-rejected { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.status-hero-copy { flex: 1; min-width: 0; }
.status-badge { display: inline-flex; align-items: center; padding: .24rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .01em; }
.status-badge-pending, .status-badge-review { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.status-badge-correction { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.status-badge-approved { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.status-badge-rejected { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.status-hero-copy h1 { margin: .5rem 0 .45rem; color: #0f172a; font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.25; }
.status-desc { margin: 0; color: #475569; font-size: .9rem; line-height: 1.55; }

/* 4-Stage Progress Tracker */
.progress-tracker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 1.6rem 0; padding: 1.1rem 1rem; border: 1px solid #e2e8f0; border-radius: .85rem; background: #f8fafc; }
.tracker-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .45rem; }
.tracker-step:not(:last-child)::after { content: ""; position: absolute; top: 1rem; left: calc(50% + 1.15rem); width: calc(100% - 2.3rem); height: 2px; background: #cbd5e1; }
.tracker-step.tracker-done:not(:last-child)::after { background: #16a34a; }
.tracker-node { position: relative; z-index: 1; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; font-size: .78rem; font-weight: 800; background: #e2e8f0; color: #64748b; border: 2px solid #cbd5e1; }
.tracker-done .tracker-node { background: #16a34a; color: #fff; border-color: #16a34a; }
.tracker-current .tracker-node { background: #2563eb; color: #fff; border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,.16); }
.tracker-rejected .tracker-node { background: #dc2626; color: #fff; border-color: #dc2626; }
.tracker-label { color: #64748b; font-size: .76rem; font-weight: 650; line-height: 1.3; }
.tracker-done .tracker-label { color: #15803d; }
.tracker-current .tracker-label { color: #1d4ed8; font-weight: 700; }
.tracker-rejected .tracker-label { color: #b91c1c; font-weight: 700; }

.status-remarks { margin: 0 0 1.35rem; padding: 1.1rem 1.25rem; border-radius: .75rem; font-size: .94rem; line-height: 1.55; }
.status-remarks strong { display: block; margin-bottom: .65rem; font-size: 1rem; }
.status-remarks p { margin: 0; }
.status-remarks-correction { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; }
.status-remarks-rejected { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.status-remarks-rejected ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.status-remarks-rejected li { display: flex; align-items: flex-start; gap: .7rem; padding: .7rem .85rem; border: 1px solid #fecaca; border-radius: .55rem; background: #fff; color: #1e293b; font-weight: 600; overflow-wrap: anywhere; }
.status-remarks-rejected li::before { content: "•"; flex: none; color: #dc2626; font-size: 1.1rem; line-height: 1.2; }
.status-reapply-prompt { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: -.35rem 0 1.35rem; padding: .9rem 1rem; border: 1px solid #bfdbfe; border-radius: .75rem; background: #eff6ff; }
.status-reapply-prompt p { margin: 0; color: #1e3a8a; font-size: .86rem; font-weight: 600; line-height: 1.4; }
.status-reapply-prompt form { margin: 0; }
.status-reapply-prompt button { width: auto; min-width: 15rem; margin: 0; padding: 0 .95rem; white-space: nowrap; }
.status-reapply-prompt[hidden] { display: none; }

.status-info-card { padding: 1.15rem 1.25rem; border: 1px solid #e2e8f0; border-radius: .85rem; background: #fbfdff; }
.status-info-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-bottom: .75rem; border-bottom: 1px solid #e2e8f0; }
.status-info-head h2 { margin: 0; color: #1e293b; font-size: .95rem; }
.status-ref-pill { padding: .2rem .6rem; border-radius: .4rem; background: #eff6ff; color: #1e40af; font-size: .76rem; }
.status-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.25rem; margin: .9rem 0 0; }
.status-info-grid dt { color: #64748b; font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .03em; }
.status-info-grid dd { margin: .2rem 0 0; color: #0f172a; font-size: .88rem; font-weight: 650; }

.status-update-panel { margin-top: 1.25rem; padding: 1.2rem; border: 1px solid #fde68a; border-radius: .85rem; background: #fffdf5; }
.status-update-panel h3 { margin: 0 0 .85rem; color: #78350f; font-size: .95rem; }
.status-correction-items { margin: 0 0 1rem; padding: .85rem 1rem; border: 1px solid #fde68a; border-radius: .65rem; background: #fffbeb; color: #78350f; font-size: .82rem; }.status-correction-items strong { display: block; margin-bottom: .45rem; }.status-correction-items ul { display: grid; gap: .35rem; margin: 0; padding-left: 1.2rem; }.status-correction-items li { padding-left: .1rem; }.status-correction-items small { display: block; margin-top: .15rem; color: #92400e; }
.auth-correction-upload input[type="file"] { height: auto; min-height: 2.95rem; padding: .45rem .55rem; background: #fff; }
.auth-correction-upload input[type="file"]::file-selector-button { margin-right: .7rem; padding: .42rem .7rem; border: 0; border-radius: .38rem; background: #dbeafe; color: #1d4ed8; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.auth-correction-upload small { display: block; margin-top: .35rem; color: #64748b; font-size: .73rem; }
.status-update-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }

.status-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.4rem; padding-top: 1.15rem; border-top: 1px solid #e2e8f0; }
.status-refresh-btn { cursor: pointer; }
.status-refresh-feedback { color: #64748b; font-size: .8rem; margin-right: auto; }
.status-portal-btn { text-decoration: none; display: inline-flex; align-items: center; }

@media (max-width: 760px) {
  .status-card { padding: 1.25rem; }
  .status-hero { flex-direction: column; gap: .8rem; }
  .progress-tracker { grid-template-columns: 1fr; gap: .75rem; text-align: left; }
  .tracker-step { flex-direction: row; justify-content: flex-start; gap: .75rem; text-align: left; }
  .tracker-step:not(:last-child)::after { display: none; }
  .status-info-grid { grid-template-columns: 1fr; }
  .status-top-actions { gap: .4rem; }
  .status-reapply-prompt { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   Subscription & Checkout Step in Registration
   ============================================================ */
.sub-head-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.sub-property-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; padding: .6rem .95rem; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; font-size: .84rem; color: #0f172a; }
.sub-edit-prop { border: 0; background: transparent; color: #2563eb; font: 700 .8rem/1 inherit; cursor: pointer; padding: .25rem .45rem; border-radius: .35rem; }
.sub-edit-prop:hover { background: #eff6ff; text-decoration: underline; }
.sub-exempt-banner { margin-bottom: .9rem; padding: .75rem .95rem; border: 1px solid #86efac; border-radius: 10px; background: #f0fdf4; color: #166534; font-size: .84rem; }
.sub-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: .8rem; margin-bottom: .85rem; }
.sub-plan-card { display: flex; flex-direction: column; gap: .55rem; padding: 1rem 1.05rem; border: 1.5px solid #dbe3ee; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; position: relative; }
.sub-plan-card:hover { border-color: #93c5fd; }
.sub-plan-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.sub-plan-card.is-selected { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 2px rgba(37,99,235,.12); }
.sub-plan-header { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-height: 1.4rem; }
.sub-plan-header strong { color: #0f172a; font-size: .95rem; font-weight: 700; }
.sub-rec-badge { display: inline-flex; align-items: center; padding: .16rem .48rem; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: .68rem; font-weight: 750; white-space: nowrap; }
.sub-plan-pricing { display: flex; flex-direction: column; gap: .12rem; margin: .1rem 0; }
.sub-plan-price { color: #0f172a; font-size: 1.45rem; font-weight: 800; line-height: 1.1; }
.sub-plan-card.is-selected .sub-plan-price { color: #1d4ed8; }
.sub-plan-unit { color: #64748b; font-size: .76rem; font-weight: 600; }
.sub-plan-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; font-size: .78rem; color: #475569; }
.sub-plan-badge { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: .48rem .75rem; border-radius: 8px; border: 1px solid #cbd5e1; background: #f8fafc; color: #1e293b; font-size: .8rem; font-weight: 700; transition: all .15s; }
.sub-plan-card.is-selected .sub-plan-badge { background: #2563eb; border-color: #2563eb; color: #fff; }
.sub-empty-plans { padding: .95rem 1.05rem; border: 1px solid #fecaca; border-radius: 12px; background: #fef2f2; color: #991b1b; font-size: .84rem; margin-bottom: .9rem; }
.sub-benefits-bar { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; padding: .7rem .95rem; margin-bottom: 1rem; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; font-size: .8rem; color: #334155; font-weight: 600; }
.sub-benefits-bar span { display: inline-flex; align-items: center; gap: .3rem; }
.sub-checkout-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; align-items: start; margin-top: .25rem; }
.checkout-box, .sub-summary-box { padding: 1.15rem 1.2rem; border: 1px solid #dbe3ee; border-radius: 12px; background: #fff; min-width: 0; }
.sub-summary-box { background: #f8fafc; }
.checkout-box h3, .sub-summary-box h3 { margin: 0 0 .85rem; color: #0f172a; font-size: .95rem; font-weight: 700; }
.checkout-intro { margin: -.45rem 0 .9rem; color: #64748b; font-size: .78rem; line-height: 1.45; }
.sub-deferred-box { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; }
.sub-deferred-icon { font-size: 1.25rem; line-height: 1; }
.sub-deferred-box h3 { margin: 0 0 .35rem; font-size: .92rem; color: #1e3a8a; }
.sub-deferred-box p { margin: 0; font-size: .82rem; color: #1e40af; line-height: 1.48; }
.sub-totals-dl { display: grid; gap: .55rem; margin: 0; }
.sub-totals-dl div { display: flex; justify-content: space-between; gap: .75rem; font-size: .84rem; }
.sub-totals-dl dt { color: #64748b; }
.sub-totals-dl dd { margin: 0; color: #0f172a; font-weight: 650; text-align: right; }
.sub-totals-dl .sub-total-row { margin-top: .35rem; padding-top: .65rem; border-top: 1px solid #cbd5e1; font-size: .98rem; }
.sub-totals-dl .sub-total-row dd { color: #2563eb; font-weight: 800; }
.sub-radio-list { display: grid; gap: .7rem; }
.sub-radio-item { border: 1.5px solid #dbe3ee; border-radius: 12px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; overflow: hidden; }
.sub-radio-item:hover { border-color: #93c5fd; }
.sub-radio-item.is-active { border-color: #2563eb; background: #f8fbff; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.sub-radio-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; cursor: pointer; }
.sub-radio-head input[type="radio"] { width: 1rem !important; height: 1rem !important; min-height: 0 !important; padding: 0 !important; margin: .18rem 0 0 !important; flex: 0 0 auto; accent-color: #2563eb; box-shadow: none !important; }
.checkout-method-icon { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: .55rem; background: #eaf2ff; color: #1d4ed8; font-size: 1rem; font-weight: 800; flex: 0 0 auto; }
.checkout-method-copy { flex: 1; min-width: 0; }
.sub-radio-head strong { display: block; color: #0f172a; font-size: .9rem; }
.sub-radio-head small { display: block; color: #64748b; font-size: .77rem; margin-top: .14rem; }
.sub-radio-body { padding: 0 .95rem .95rem; border-top: 1px solid #e2e8f0; padding-top: .85rem; }
.sandbox-details { margin: 0 0 .75rem; border: 1px solid #fde68a; border-radius: 8px; background: #fffbeb; }
.sandbox-details summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .58rem .75rem; color: #92400e; font-size: .74rem; font-weight: 750; cursor: pointer; list-style: none; }
.sandbox-details summary::-webkit-details-marker { display: none; }
.sandbox-details summary::after { content: '⌄'; margin-left: auto; font-size: .9rem; }
.sandbox-details[open] summary::after { transform: rotate(180deg); }
.sandbox-details summary small { color: #b45309; font-size: .68rem; font-weight: 700; }
.sandbox-box { display: flex; flex-direction: column; gap: .45rem; padding: 0 .75rem .75rem; }
.sandbox-select-label { display: grid; gap: .25rem; font-size: .76rem; color: #78350f; font-weight: 600; }
.checkout-hint { margin: 0; color: #334155; font-size: .81rem; line-height: 1.45; }
.upi-apps-row, .card-brands-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.upi-apps-row span, .card-brand-chip { display: inline-flex; align-items: center; padding: .24rem .55rem; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #0f172a; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.card-form-grid { display: grid; gap: .65rem; }
.card-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.card-checkout-btn { width: 100%; margin-top: .85rem !important; min-height: 2.75rem !important; cursor: pointer; font-weight: 700; }
.card-security-note { margin: .55rem 0 0; font-size: .74rem; color: #64748b; line-height: 1.35; }
.checkout-pay-btn { width: 100%; margin-top: .95rem !important; min-height: 2.75rem !important; cursor: pointer; }
.checkout-paid-card { padding: .8rem .9rem; border: 1.5px solid #86efac; border-radius: 8px; background: #f0fdf4; color: #166534; }
.checkout-paid-head { display: flex; align-items: center; gap: .7rem; }
.checkout-paid-icon { width: 1.85rem; height: 1.85rem; border-radius: 50%; background: #16a34a; color: #fff; display: grid; place-items: center; font-weight: 900; flex-shrink: 0; }
.checkout-paid-head > div { flex: 1; min-width: 0; }
.checkout-paid-head strong { display: block; font-size: .86rem; }
.checkout-paid-head small { display: block; font-size: .75rem; color: #15803d; margin-top: .1rem; }
.checkout-reset-btn { border: 1px solid #86efac; border-radius: 6px; background: #fff; color: #15803d; padding: .3rem .6rem; font: 700 .74rem/1 inherit; cursor: pointer; }
.upi-qr-wrap { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: center; }
.sub-upi-qr { border: 1px solid #dbe3ee; border-radius: 8px; background: #fff; padding: .25rem; display: block; }
.sub-treasury-card { display: grid; gap: .55rem; padding: .8rem .9rem; border: 1px solid #dbe3ee; border-radius: 8px; background: #f8fafc; }
.treasury-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.treasury-row small { display: block; font-size: .71rem; color: #64748b; font-weight: 600; }
.treasury-row strong { display: block; margin-top: .08rem; font-size: .86rem; color: #0f172a; }
.copy-mini-btn { border: 1px solid #bfdbfe; border-radius: 6px; background: #eff6ff; color: #1d4ed8; padding: .34rem .62rem; font: 700 .73rem/1 inherit; cursor: pointer; flex-shrink: 0; }
.copy-mini-btn:hover { background: #dbeafe; }
.checkout-manual-fields { margin-top: .85rem; padding-top: .85rem; border-top: 1px dashed #cbd5e1; }
.treasury-note { margin: .65rem 0 0; font-size: .76rem; color: #475569; line-height: 1.4; }
.sub-ref-field, .sub-proof-field { margin-top: .65rem; }
.sub-proof-field input[type="file"] { height: auto !important; min-height: 2.75rem; padding: .4rem .55rem !important; background: #fff; font-size: .82rem; }
.sub-proof-field input[type="file"]::file-selector-button { margin-right: .7rem; padding: .38rem .7rem; border: 0; border-radius: .38rem; background: #dbeafe; color: #1d4ed8; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.pincode-station-hint { margin-top: .5rem; padding: .55rem .75rem; border: 1px solid #bfdbfe; border-radius: .55rem; background: #eff6ff; font-size: .78rem; color: #1e3a8a; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.pincode-station-chip { border: 1px solid #93c5fd; border-radius: 999px; background: #fff; color: #1d4ed8; padding: .22rem .65rem; font: 700 .74rem/1.2 inherit; cursor: pointer; }
.pincode-station-chip:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.auth-screen .date-picker-header select { padding-right: 1.8rem !important; background-position: calc(100% - .65rem) 1rem, calc(100% - .38rem) 1rem !important; }
@media (max-width: 760px) {
  .sub-plan-grid, .sub-checkout-grid, .upi-qr-wrap { grid-template-columns: 1fr; }
}
.registration-verified-note { margin: .5rem 0 1.25rem; padding: .75rem 1rem; border: 1px solid #bbf7d0; border-radius: .6rem; background: #f0fdf4; color: #166534; font-size: .88rem; }
.registration-verified-note a { color: #1d4ed8; font-weight: 700; text-decoration: underline; }
