/* Mobile booking layout. Desktop retains the established photography design. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, label.slot, summary { touch-action: manipulation; }
.mobile-slot-hint, .change-slot { display: none; }
.mobile-booking-bar { display: none; }
.makeup-card { min-width: 0; margin: 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.makeup-card legend { max-width: 100%; padding-inline: 6px; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.4; }
.makeup-card legend .optional { font-size: 13px; font-weight: 400; margin-left: 5px; }
.makeup-card p { font-size: 16px; line-height: 1.6; margin: 0 0 12px; }
.makeup-card p.makeup-note { font-size: 14px; color: var(--muted); }
.makeup-options { display: grid; gap: 10px; margin-top: 16px; }
.makeup-choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); font-size: 15px; line-height: 1.5; cursor: pointer; }
.makeup-choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.makeup-choice input { width: 20px; height: 20px; min-width: 20px; margin: 0; accent-color: var(--accent); }
#makeup-contact-consent { margin-top: 18px; }
.makeup-card .check { font-size: 14px; line-height: 1.6; }
.makeup-admin { border-left: 3px solid var(--accent); padding-left: 12px; margin: 14px 0; }
.makeup-admin .secondary { white-space: normal; }
@media (max-width: 360px) { .makeup-card { padding: 16px 12px; } }

@media (max-width: 900px) {
  :root { --muted: #626775; }
  html { scroll-padding-top: 20px; scroll-padding-bottom: 110px; }
  body { font-size: 16px; line-height: 1.6; }
  body.mobile-bar-active { padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
  header { padding: 18px 20px; gap: 12px; }
  .brand { font-size: 38px; gap: 7px; }
  .brand span { font-size: 9px; letter-spacing: 2px; }
  nav > a:first-child { display: none; }
  .nav-book { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; padding: 8px 12px; }
  .nav-book span { margin-left: 8px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 26px 20px 32px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: 1.2px; margin-bottom: 14px; }
  h1 { font-size: clamp(29px, 9.3vw, 53px); letter-spacing: -1.25px; line-height: 1.12; }
  .hero-lead { font-size: 16px; line-height: 1.55; max-width: 560px; margin: 18px 0; }
  .event { gap: 12px; margin: 20px 0; }
  .event > div > strong { font-size: 15px; line-height: 1.45; display: block; }
  .event p { font-size: 13px; line-height: 1.45; margin-top: 3px; }
  .date-tile { min-width: 59px; }
  .date-tile span { font-size: 10px; }
  .primary, .secondary { min-height: 50px; font-size: 15px; padding: 13px 16px; gap: 12px; }
  .hero .primary { width: 100%; }
  .hero-meta { font-size: 12px; gap: 6px; justify-content: flex-start; }
  .hero-meta span { background: var(--soft); padding: 4px 8px; border-radius: 4px; }
  .hero-meta span + span:before { content: none; }
  .location { text-align: left; font-size: 13px; line-height: 1.5; max-width: none; margin-top: 10px; overflow-wrap: anywhere; }
  .hero-visual { height: 180px; max-width: none; width: 100%; transform: none; }
  .hero-visual img { width: 100%; height: 180px; object-fit: cover; object-position: 50% 77%; border-radius: 65px 65px 6px 6px; }
  .photo-note { left: 12px; bottom: 15px; padding: 9px 14px; font-size: 16px; }
  .photo-note span { font-size: 20px; }
  .booking-section { padding: 30px 16px 36px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
  .section-heading .eyebrow { font-size: 10px; letter-spacing: 1.4px; }
  .section-heading > p { max-width: none; text-align: left; font-size: 13px; line-height: 1.5; }
  h2 { font-size: 36px; }
  .booking-layout { display: flex; flex-direction: column; gap: 20px; }
  .booking-panel { width: 100%; padding: 22px 18px; border-radius: 8px; }
  .step-heading h3 { font-size: 24px; }
  .step-heading > span { width: 29px; min-width: 29px; height: 29px; font-size: 12px; }
  .booking-panel > .muted { font-size: 14px; line-height: 1.55; margin-bottom: 20px; }
  .slot-top { align-items: flex-start; flex-direction: column; gap: 4px; font-size: 14px; }
  .slot-top > span { font-size: 13px; }
  .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-height: 0; }
  .slot { min-height: 76px; border-radius: 6px; padding: 13px 6px; }
  .slot strong { font-size: 19px; font-weight: 600; }
  .slot small { font-size: 12px; margin-top: 6px; opacity: 1; }
  .slot:has(input:checked) { box-shadow: 0 0 0 2px #956A9026; }
  .slot-legend { gap: 10px 14px; font-size: 12px; }
  .slot-legend .text-button { margin-left: 0; padding-right: 8px; }
  .text-button { min-height: 44px; font-size: 13px; padding: 10px 3px; }
  .mobile-slot-hint { display: block; font-size: 14px; color: var(--muted); padding-top: 12px; line-height: 1.55; }
  .booking-panel.has-slot .mobile-slot-hint { display: none; }
  .booking-panel:not(.has-slot) #booking-form { display: none; }
  .details-heading { margin-top: 18px; padding-top: 22px; scroll-margin-top: 18px; }
  .booking-panel form > .muted, .small { font-size: 13px; line-height: 1.6; }
  .fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 12px; }
  .fields label { font-size: 14px; min-width: 0; }
  .fields label:nth-child(1), .fields label:nth-child(2), .fields label:nth-child(3), .fields label:nth-child(4), .fields label.full { grid-column: 1 / -1; }
  .fields input, .fields select, .fields textarea, form > label input { font-size: 16px; line-height: 1.4; min-height: 50px; min-width: 0; padding: 12px; border-radius: 5px; scroll-margin-block: 90px; }
  .optional { font-size: 12px; }
  .consents { margin-top: 24px; }
  .check { font-size: 14px; gap: 12px; line-height: 1.6; padding: 8px 0; margin-bottom: 7px; }
  .check input { width: 22px; min-width: 22px; height: 22px; margin-top: 1px; }
  .inline-link { text-underline-offset: 3px; }
  .change-slot { display: inline-flex; align-items: center; }
  .selection-summary { font-size: 14px; padding: 12px; line-height: 1.55; }
  .submit { white-space: normal; min-height: 54px; }
  .after-button { font-size: 13px; }
  .summary-card { position: static; width: 100%; padding: 25px 22px; border-radius: 8px; }
  .summary-card > .eyebrow { font-size: 10px; }
  .summary-card > .little-star { float: right; font-size: 32px; }
  .summary-card h3 { font-size: 27px; }
  .package-list { font-size: 15px; gap: 12px; margin-block: 20px; }
  .price-row { font-size: 15px; }
  .total-price, .reserved-note, .reserved-note p { font-size: 14px; line-height: 1.55; }
  .contact-link { min-height: 48px; font-size: 15px; }
  .signature { font-size: 14px; }
  .how-section { padding: 36px 20px; }
  .how-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 25px; }
  .how-grid article { display: grid; grid-template-columns: 32px 1fr; gap: 0 15px; }
  .how-number { grid-row: 1 / 3; font-size: 26px; padding-top: 4px; }
  .how-grid h3 { margin: 4px 0 9px; font-size: 24px; }
  .how-grid p { grid-column: 2; font-size: 15px; line-height: 1.6; }
  .how-section .section-heading > p { display: none; }
  summary { min-height: 52px; align-items: center; font-size: 15px; line-height: 1.5; padding-block: 16px; }
  details p { font-size: 15px; line-height: 1.6; }
  footer { padding: 25px 20px; gap: 15px; align-items: flex-start; }
  footer > div { width: 100%; display: flex; flex-wrap: wrap; gap: 10px 18px; order: 2; }
  footer p { display: none; }
  footer .private-label { margin-left: auto; font-size: 11px; }
  dialog { width: calc(100% - 24px); max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 22px 20px; border-radius: 10px; overscroll-behavior: contain; }
  .dialog-top { position: sticky; top: -22px; z-index: 1; background: var(--paper); padding-block: 8px; margin-top: -8px; }
  .dialog-top .eyebrow { font-size: 11px; }
  .close { width: 44px; min-width: 44px; height: 44px; }
  .dialog-top + h2 { font-size: 32px; line-height: 1.2; overflow-wrap: anywhere; }
  dialog p { font-size: 15px; line-height: 1.65; }
  dialog .small { font-size: 13px; }
  .contact-option { min-height: 60px; padding: 14px; gap: 12px; font-size: 16px; overflow-wrap: anywhere; }
  .contact-option small { font-size: 13px; }
  .confirmation { padding: 26px 18px; border-radius: 8px; overflow-wrap: anywhere; }
  .confirmation h2 { font-size: 32px; }
  .confirmation > p, .confirmation .res-detail p { font-size: 15px; line-height: 1.6; }
  .confirmation > .small { font-size: 13px; }
  .confirmation .res-detail { padding: 18px 12px; }
  .confirmation .res-detail strong { font-size: 16px; }
  .confirmation .countdown { font-size: 25px; }
  .confirmation .controls { gap: 12px; }
  .confirmation .controls > .primary, .confirmation .controls > .secondary { width: 100%; justify-content: center; }
  .booking-entry { padding: 16px 12px; }
  .booking-entry p { font-size: 14px; line-height: 1.6; }
  .status-tag { font-size: 12px; }
  .booking-entry .primary, .booking-entry .secondary { font-size: 14px; min-height: 48px; padding: 12px; width: 100%; justify-content: center; }
  .admin-toolbar { gap: 12px; font-size: 14px; }
  .settings-detail .fields { grid-template-columns: minmax(0, 1fr); }
  .settings-detail .fields label { grid-column: auto; }
  #admin-login > label { font-size: 15px; }
  .error, .success-note { font-size: 14px; overflow-wrap: anywhere; }
  .action-buttons { flex-wrap: wrap; }
  .action-buttons button { flex: 1; }
  .mobile-booking-bar { position: fixed; z-index: 20; left: 0; bottom: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #FFFFFFF5; border-top: 1px solid var(--line); box-shadow: 0 -5px 24px #393F4D10; padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right)); }
  .mobile-booking-bar > div { min-width: 0; }
  .mobile-booking-bar strong { display: block; font-size: 15px; line-height: 1.3; }
  .mobile-booking-bar > div > span { display: block; font-size: 12px; line-height: 1.4; margin-top: 3px; }
  .mobile-booking-bar .primary { padding: 12px 14px; gap: 8px; min-height: 48px; font-size: 14px; flex-shrink: 0; }
}

@media (max-width: 480px) {
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-top { font-size: 15px; }
  .slot-legend .text-button { flex-basis: 100%; }
}

@media (max-width: 360px) {
  header { padding-inline: 16px; }
  .hero { padding-inline: 16px; }
  .booking-section { padding-inline: 12px; }
  .booking-panel { padding-inline: 14px; }
  .primary, .secondary { font-size: 14px; }
  .mobile-booking-bar > div > span { max-width: 104px; font-size: 11px; }
  .mobile-booking-bar .primary { padding-inline: 12px; font-size: 13px; }
  .photo-note { font-size: 15px; }
  .step-heading h3 { font-size: 22px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
}
