/* Pet Guardian hospital appointment experience */
html[data-domain="pet"] .mobile-app-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.hospital-entry-card {
  width: calc(100% - 24px);
  min-height: 76px;
  margin: 10px 12px 0;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-align: left;
  border: 1px solid #0a4db4;
  border-radius: 13px;
  background: var(--yon-navy);
  color: white;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(0, 24, 80, 0.16);
}
.hospital-entry-card:hover { background: #00236f; }
.hospital-entry-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, 0.11); color: #7db5ff; font-size: 21px; }
.hospital-entry-copy { min-width: 0; display: grid; gap: 1px; }
.hospital-entry-copy small { color: #7db5ff; font-size: 6px; font-weight: 800; letter-spacing: 0.09em; }
.hospital-entry-copy strong { overflow: hidden; color: white; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.hospital-entry-copy em { overflow: hidden; color: #c3d2e8; font-size: 7px; line-height: 1.4; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.hospital-entry-action { display: inline-flex; align-items: center; gap: 3px; color: #bcd7ff; font-size: 7px; font-weight: 800; white-space: nowrap; }
.hospital-entry-action i { color: white; font-size: 17px; font-style: normal; line-height: 1; }

.hospital-view { background: #f5f8fc; }
.hospital-hero { position: relative; margin: 12px; padding: 16px 15px 14px; overflow: hidden; border-radius: 15px; background: var(--yon-navy); color: white; }
.hospital-hero::after { content: ""; position: absolute; right: -36px; bottom: -58px; width: 142px; height: 142px; border: 1px solid rgba(113, 169, 250, 0.2); border-radius: 50%; box-shadow: 0 0 0 18px rgba(113, 169, 250, 0.04); }
.hospital-hero > div { position: relative; z-index: 1; padding-right: 66px; }
.hospital-hero > div small { color: #7db5ff; font-size: 6px; font-weight: 800; letter-spacing: 0.1em; }
.hospital-hero h2 { margin: 2px 0 3px; color: white; font-size: 22px; line-height: 1.2; }
.hospital-hero p { margin: 0; color: #c4d2e6; font-size: 8px; line-height: 1.5; }
.hospital-hero > span { position: absolute; z-index: 1; top: 17px; right: 17px; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, 0.11); color: #7db5ff; font-size: 23px; }
.hospital-hero > button { position: relative; z-index: 1; min-height: 34px; margin-top: 13px; padding: 7px 12px; border: 0; border-radius: 8px; background: var(--on-blue); color: white; cursor: pointer; font-size: 8px; font-weight: 800; }
.hospital-hero > button:hover { background: #1d79fa; }
.hospital-hero > button:disabled { cursor: wait; opacity: 0.58; }

.hospital-simulation-note { margin: 0 12px 9px; padding: 8px 9px; border-left: 3px solid #9eb0ca; background: #edf2f8; color: #586b88; font-size: 7px; line-height: 1.5; }
.hospital-simulation-note strong { color: var(--yon-navy); }
.hospital-inline-success { margin: 0 12px 9px; padding: 8px 10px; border: 1px solid #c8eade; border-radius: 8px; background: #f0faf7; color: #087653; font-size: 8px; font-weight: 800; }

.hospital-state { min-height: 250px; margin: 10px 12px; padding: 30px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px solid #dce5f1; border-radius: 13px; background: white; }
.hospital-state > span:not(.hospital-loader) { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 12px; background: #edf5ff; color: var(--on-blue); font-size: 22px; }
.hospital-state.error > span { background: #fff3e0; color: var(--warning); }
.hospital-state strong { color: var(--yon-navy); font-size: 12px; }
.hospital-state p { max-width: 240px; margin: 5px 0 12px; color: #647693; font-size: 8px; line-height: 1.55; }
.hospital-state button { min-height: 33px; padding: 7px 13px; border: 1px solid var(--on-blue); border-radius: 8px; background: var(--on-blue); color: white; cursor: pointer; font-size: 8px; font-weight: 800; }
.hospital-loader { width: 26px; height: 26px; margin-bottom: 12px; border: 3px solid #dce7f5; border-top-color: var(--on-blue); border-radius: 50%; animation: hospital-loading 760ms linear infinite; }
@keyframes hospital-loading { to { transform: rotate(360deg); } }

.hospital-appointment-section { margin: 13px 12px 0; }
.hospital-appointment-section.history { margin-top: 18px; padding-top: 12px; border-top: 1px solid #dce5f1; }
.hospital-section-heading { min-height: 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.hospital-section-heading > div { display: grid; gap: 1px; }
.hospital-section-heading small { color: var(--on-blue); font-size: 6px; font-weight: 800; letter-spacing: 0.1em; }
.hospital-section-heading h3 { margin: 0; color: var(--yon-navy); font-size: 14px; }
.hospital-empty-line { margin: 8px 0; padding: 12px; border: 1px dashed #cbd8e9; border-radius: 9px; background: white; color: #697b97; text-align: center; font-size: 8px; }
.hospital-appointment-card { position: relative; margin-top: 8px; padding: 11px; display: grid; grid-template-columns: 43px 1fr; gap: 10px; border: 1px solid #d9e4f1; border-radius: 11px; background: white; box-shadow: 0 5px 13px rgba(0, 24, 80, 0.045); }
.hospital-appointment-card.cancelled { background: #f8fafc; box-shadow: none; opacity: 0.78; }
.appointment-date-badge { width: 43px; height: 49px; display: grid; align-content: center; justify-items: center; border-radius: 9px; background: #edf5ff; color: var(--trust-blue); }
.appointment-date-badge strong { font-size: 18px; line-height: 1; }
.appointment-date-badge small { margin-top: 3px; font-size: 7px; font-weight: 800; }
.appointment-card-copy { min-width: 0; }
.appointment-card-copy > div { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.appointment-card-copy > div > small { color: var(--on-blue); font-size: 9px; font-weight: 800; }
.appointment-card-copy h4 { margin: 5px 0 1px; overflow: hidden; color: var(--yon-navy); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.appointment-card-copy p { margin: 0; color: #657792; font-size: 7px; }
.appointment-card-copy em { display: block; margin-top: 4px; color: #8796ad; font-size: 6px; font-style: normal; letter-spacing: 0.03em; }
.appointment-card-actions { grid-column: 2; display: flex; gap: 6px; }
.appointment-card-actions button { min-height: 28px; padding: 5px 8px; border: 1px solid #cfdbeb; border-radius: 7px; background: white; color: var(--trust-blue); cursor: pointer; font-size: 7px; font-weight: 800; }
.appointment-card-actions button:last-child { color: #8c5500; }

.hospital-subheader { min-height: 62px; padding: 10px 13px; display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 9px; border-bottom: 1px solid #e0e8f3; background: white; }
.hospital-subheader > button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #dce5f1; border-radius: 9px; background: white; color: var(--yon-navy); cursor: pointer; font-size: 22px; }
.hospital-subheader > div { display: grid; gap: 1px; }
.hospital-subheader small { color: var(--on-blue); font-size: 6px; font-weight: 800; letter-spacing: 0.1em; }
.hospital-subheader h2 { margin: 0; color: var(--yon-navy); font-size: 16px; }
.hospital-subheader > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #edf5ff; color: var(--on-blue); font-size: 17px; }

.hospital-form { padding: 12px; }
.hospital-step-indicator { margin-bottom: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.hospital-step-indicator span { padding: 5px 3px; border-radius: 6px; background: #e8eef6; color: #70819c; text-align: center; font-size: 6px; font-weight: 800; }
.hospital-step-indicator span.active { background: #eaf3ff; color: var(--on-blue); }
.hospital-form-error:empty { display: none; }
.hospital-form-error { margin: 0 0 9px; padding: 8px 9px; border: 1px solid #f2d49c; border-radius: 7px; background: #fff9ed; color: #8f5700; font-size: 7px; line-height: 1.5; }
.hospital-form fieldset { min-width: 0; margin: 0 0 10px; padding: 11px; border: 1px solid #dce5f1; border-radius: 11px; background: white; }
.hospital-form legend { padding: 0 5px; color: var(--yon-navy); font-size: 10px; font-weight: 800; }
.hospital-form legend span { margin-right: 4px; color: var(--on-blue); font-size: 7px; }
.hospital-form label:not(.hospital-option, .hospital-consent, .hospital-time-slots label), .hospital-field-label { display: grid; gap: 5px; margin-top: 9px; color: var(--ink); font-size: 8px; font-weight: 800; }
.hospital-form label b, .hospital-field-label b { color: var(--on-blue); font-size: 6px; }
.hospital-form input[type="date"], .hospital-form select, .hospital-form textarea { width: 100%; min-height: 37px; padding: 8px 9px; border: 1px solid #cbd8e8; border-radius: 7px; outline: 0; background: white; color: var(--ink); font-size: 8px; line-height: 1.4; }
.hospital-form textarea { min-height: 70px; resize: vertical; }
.hospital-form input:focus, .hospital-form select:focus, .hospital-form textarea:focus { border-color: var(--on-blue); box-shadow: 0 0 0 3px rgba(0, 104, 248, 0.1); }
.hospital-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.field-guide, .slot-guide { margin: 0; color: #7c8da6; font-size: 6px; line-height: 1.45; font-weight: 500; }

.hospital-option-list { display: grid; gap: 6px; }
.hospital-option { min-height: 58px; padding: 8px; display: grid; grid-template-columns: 1fr 18px; align-items: center; gap: 7px; border: 1px solid #dce5f1; border-radius: 9px; cursor: pointer; }
.hospital-option.selected { border-color: #8eb8f2; background: #f3f8ff; box-shadow: inset 3px 0 var(--on-blue); }
.hospital-option input { position: absolute; opacity: 0; pointer-events: none; }
.hospital-option > span { display: grid; gap: 1px; }
.hospital-option strong { color: var(--yon-navy); font-size: 8px; }
.hospital-option small { color: #647691; font-size: 6px; }
.hospital-option em { color: #8796ad; font-size: 6px; font-style: normal; }
.hospital-option > i { width: 17px; height: 17px; display: none; place-items: center; border-radius: 50%; background: var(--on-blue); color: white; font-size: 8px; font-style: normal; }
.hospital-option.selected > i { display: grid; }
.hospital-option:has(input:focus-visible), .hospital-time-slots label:has(input:focus-visible) span { outline: 3px solid rgba(0, 104, 248, 0.28); outline-offset: 2px; }
.hospital-time-slots { margin-top: 5px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.hospital-time-slots label { cursor: pointer; }
.hospital-time-slots input { position: absolute; opacity: 0; pointer-events: none; }
.hospital-time-slots span { min-height: 29px; display: grid; place-items: center; border: 1px solid #d3deec; border-radius: 7px; background: white; color: var(--trust-blue); font-size: 7px; font-weight: 800; }
.hospital-time-slots input:checked + span { border-color: var(--on-blue); background: var(--on-blue); color: white; }
.hospital-time-slots .unavailable { cursor: not-allowed; }
.hospital-time-slots .unavailable span { border-color: #e4e9f0; background: #eef1f5; color: #a4afbf; text-decoration: line-through; }
.hospital-slot-state { margin-top: 6px; padding: 10px; border: 1px dashed #cbd8e8; border-radius: 8px; background: #f8fafc; color: #637591; font-size: 7px; line-height: 1.5; }

.hospital-consent { margin-top: 11px; padding: 9px; display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 7px; border: 1px solid #dce5f1; border-radius: 8px; background: #f8fafe; cursor: pointer; }
.hospital-consent input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--on-blue); }
.hospital-consent span { display: grid; gap: 2px; }
.hospital-consent strong { color: var(--ink); font-size: 7px; }
.hospital-consent small { color: #6f819d; font-size: 6px; line-height: 1.45; }
.hospital-consent b { color: var(--on-blue); }
.hospital-medical-note { margin: 0 0 10px; padding: 9px 10px; border-left: 3px solid var(--warning); background: #fff9ed; color: #75511b; font-size: 7px; line-height: 1.55; }
.hospital-form-actions { position: sticky; bottom: -14px; z-index: 2; margin: 0 -12px -12px; padding: 10px 12px 12px; display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 7px; border-top: 1px solid #dce5f1; background: rgba(245, 248, 252, 0.96); }
.hospital-form-actions button { min-height: 40px; border: 1px solid #cad7e7; border-radius: 8px; background: white; color: var(--yon-navy); cursor: pointer; font-size: 8px; font-weight: 800; }
.hospital-form-actions button[type="submit"] { border-color: var(--on-blue); background: var(--on-blue); color: white; }
.hospital-form-actions button:disabled { cursor: wait; opacity: 0.58; }

.hospital-cancel-form { padding-top: 14px; }
.cancel-summary { padding: 11px; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 9px; border: 1px solid #dce5f1; border-radius: 10px; background: white; }
.cancel-summary > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #fff4df; color: var(--warning); font-size: 19px; }
.cancel-summary small { color: var(--on-blue); font-size: 7px; font-weight: 800; }
.cancel-summary h3 { margin: 2px 0 1px; color: var(--yon-navy); font-size: 11px; }
.cancel-summary p { margin: 0; color: #697b96; font-size: 7px; }
.hospital-cancel-form > p:not(.hospital-form-error) { margin: 11px 0; color: #5f718e; font-size: 8px; line-height: 1.55; }
.hospital-form-actions .cancel-confirm-button { border-color: #a86a00; background: #a86a00; }

@media (prefers-reduced-motion: reduce) {
  .hospital-loader { animation: none; }
}
