﻿/* Control. Each booking scene has its own portrait and panoramic crop. */
:root {
  color-scheme: light;
  --ps-bg: #c5c5c2;
  --ps-panel: #d4d4d1;
  --ps-ink: #191a19;
  --ps-muted: #464744;
  --ps-line: #888984;
  --ps-field: #686965;
  --ps-accent: #901315;
  --ps-emerald: var(--ps-accent); /* Public theme token retained for existing consumers. */
  --ps-focus: #700b0e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ps-ink); background: var(--ps-bg); font: 16px/1.45 Arial, "Segoe UI", sans-serif; }
button, input, select, textarea { border-radius: 0; color: inherit; font: inherit; }
button, select, label:has(input[type=radio]), label:has(input[type=checkbox]) { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ps-focus); outline-offset: 3px; }
h2:focus { outline: none; }
::selection { color: white; background: var(--ps-accent); }
.ps { --photo: url("/format-mobile.png"); --portrait: url("/format-wide.png"); }
.ps[data-scene=time] { --photo: url("/time-mobile.png"); --portrait: url("/time-wide.png"); }
.ps[data-scene=contact] { --photo: url("/contact-mobile.png"); --portrait: url("/contact-wide.png"); }
.ps[data-scene=payment] { --photo: url("/payment-mobile.png"); --portrait: url("/payment-wide.png"); }
.ps[data-scene=contract] { --photo: url("/contract-mobile.png"); --portrait: url("/contract-wide.png"); }
.ps-bar { padding: 0 20px; }
.ps-head { display: flex; align-items: center; gap: 14px; min-height: 48px; padding-block: 8px; border-bottom: 1px solid var(--ps-line); }
.ps-brand { margin: 0; padding-right: 14px; border-right: 1px solid var(--ps-line); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.ps-brand:empty { display: none; }
.ps-head h1 { margin: 0; font-size: 14px; font-weight: 400; }
.ps-steps { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ps-steps li { position: relative; padding: 10px 0 8px; border-bottom: 3px solid transparent; font-size: .82rem; color: var(--ps-muted); }
.ps-steps li + li::before { content: "·"; position: absolute; left: -14px; color: var(--ps-field); }
.ps-steps .is-current { color: var(--ps-accent); border-color: currentColor; font-weight: 700; }
.ps-steps .is-done { color: var(--ps-ink); }
.ps-scene { background: #62615c var(--photo) center / cover no-repeat; height: clamp(104px, 33.33vw, 176px); }
.ps-card { min-width: 0; overflow-wrap: anywhere; padding: 20px 20px 44px; }
.ps-card h2 { margin: 0 0 16px; font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.14; letter-spacing: -.028em; }
.ps-muted, .ps-tz, .ps-note { color: var(--ps-muted); margin: 0 0 12px; font-size: .9rem; }
.ps-note { margin: 8px 0 0; }
.ps-err, .ps-ok, .ps-conn { padding: 10px 12px; background: var(--ps-panel); border-left: 3px solid var(--ps-ink); margin: 0 0 14px; }
.ps-err { border-color: var(--ps-accent); color: #741013; background: #e5d4d1; }
.ps-formats { display: grid; gap: 12px; }
.ps-format, .ps-time, .ps-btn, .ps-date { border: 1px solid var(--ps-field); background: transparent; }
.ps-format { position: relative; display: grid; align-content: center; min-height: 82px; padding: 12px 32px 12px 78px; text-align: left; }
.ps-format::before { content: ""; position: absolute; inset: 15px auto 15px 0; width: 60px; border-right: 1px solid var(--ps-line); background: url("/person.svg") center / 27px no-repeat; }
.ps-format[data-type=couple]::before { background-image: url("/couple.svg"); }
.ps-format strong { font-size: 1.1rem; }
.ps-format span { color: var(--ps-muted); font-size: .9rem; }
.ps-format::after, .ps-time::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); position: absolute; right: 16px; top: calc(50% - 4px); }
.ps-summary { background: var(--ps-panel); padding: 12px 16px; border-left: 3px solid var(--ps-accent); margin: 0 0 16px; }
.ps-summary p { margin: 0; }
.ps-summary p:first-child { font-weight: 700; margin-bottom: 4px; }
.ps-when { font-variant-numeric: tabular-nums; }
.ps-dates { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--ps-line); font-size: .9rem; }
.ps-date { min-height: 44px; max-width: 100%; padding: 7px 12px; background: var(--ps-panel); }
.ps-day { margin: 12px 0 18px; }
.ps-day h3, .ps-sub { margin: 0 0 8px; font-size: 1rem; }
.ps-day h3::first-letter { text-transform: uppercase; }
.ps-times { display: grid; gap: 6px; }
.ps-time { position: relative; min-height: 44px; padding: 7px 32px 7px 14px; text-align: left; font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-field { min-width: 0; display: flex; flex-direction: column; padding: 0; border: 0; gap: 4px; margin: 0 0 14px; font-size: .95rem; font-weight: 600; }
.ps-field legend { padding: 0; margin: 0 0 4px; }
.ps-field small { font-size: .875rem; font-weight: 400; color: var(--ps-muted); }
.ps-field > input, .ps-field textarea, .ps-copy-input { width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid var(--ps-field); background: var(--ps-panel); font-weight: 400; font-size: 1rem; }
.ps-field textarea { min-height: 74px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #575854; opacity: 1; }
.ps-choice { display: flex; }
.ps-choice label { position: relative; flex: 1; display: grid; place-items: center; min-height: 44px; border: 1px solid var(--ps-field); }
.ps-choice label + label { border-left: 0; }
.ps-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ps-choice label:has(:checked) { color: white; background: #383936; }
.ps-choice label:has(:focus-visible) { outline: 3px solid var(--ps-focus); outline-offset: 2px; z-index: 1; }
.ps-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ps-actions { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.ps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 0; padding: 9px 14px; text-decoration: none; text-align: center; font-weight: 600; }
.ps-primary { background: var(--ps-accent); color: #fff; border-color: var(--ps-accent); }
.ps-back { align-self: flex-start; padding-inline: 0; border: 0; font-weight: 400; }
.ps-btn:disabled { background: #b1b2ae; color: #41423f; border-color: #83847e; cursor: default; }
@media (hover:hover) {
  .ps-btn:not(:disabled):hover, .ps-format:hover, .ps-time:hover { background-color: #dcdcda; }
  .ps-primary:not(:disabled):hover { background-color: #701012; }
}
.ps-req { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); margin: 12px 0 18px; }
.ps-req dt, .ps-req dd { padding: 7px 0; border-bottom: 1px solid var(--ps-line); align-content: center; }
.ps-req dt { font-size: .9rem; }
.ps-req dd { min-width: 0; margin: 0; font-weight: 600; }
.ps-req dd:first-of-type { font-size: 1.25rem; }
.ps-copy { display: flex; flex-wrap: wrap; gap: 4px; }
.ps-copy-input { flex: 1 1 9rem; }
.ps-copy-btn { flex: 1 1 auto; font-size: .9rem; }
.ps-save { margin-top: 24px; padding: 14px 0 0; border-top: 2px solid var(--ps-ink); }
.ps-save-title { margin: 0; font-weight: 700; }
.ps-save .ps-note { margin: 4px 0 10px; }
.ps-save .ps-copy-input { flex-basis: 50%; }
.ps-check { display: flex; align-items: center; min-height: 44px; gap: 12px; margin-bottom: 4px; cursor: pointer; }
.ps-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--ps-accent); }
.ps-sign .ps-field { margin-top: 14px; }
.ps-sub { margin-top: 22px; }
.ps-pdf .ps-btn:first-child { background: #434440; color: white; }
.ps-sign-hint { margin: 6px 0; }
.ps-card [aria-invalid=true] { border-color: var(--ps-accent); }
.ps[data-view=confirmed] .ps-when { font-size: 1.22rem; font-weight: 600; }
@media (min-width: 800px) {
  .ps { display: grid; grid-template-columns: 43% minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; align-items: start; }
  .ps-bar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 0 clamp(24px, 3vw, 54px); border-bottom: 1px solid var(--ps-line); }
  .ps-head { min-width: 0; min-height: 68px; border: 0; }
  .ps-brand { font-size: 1.35rem; }
  .ps-steps { gap: clamp(24px, 3vw, 54px); }
  .ps-scene { position: sticky; top: 0; height: calc(100vh - 68px); height: calc(100svh - 68px); background-image: var(--portrait); }
  .ps-card { width: 100%; max-width: 860px; padding: clamp(26px, 3.1vw, 60px); }
  .ps-format { min-height: 94px; }
  .ps-times { grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); }
  .ps-time { text-align: center; padding: 10px; }
  .ps-time::after { display: none; }
  .ps-day + .ps-day { display: none; }
  .ps-actions { flex-direction: row; flex-wrap: wrap; }
  .ps-actions .ps-primary { flex: 1; }
  .ps-pdf .ps-btn { flex: 1; }
  .ps-bar + .ps-scene + .ps-card h2 { border-bottom: 1px solid var(--ps-line); padding-bottom: 14px; }
}
@media (max-width: 359px) {
  .ps-card, .ps-bar { padding-inline: 14px; }
  .ps-format { padding-left: 64px; }
  .ps-format::before { width: 50px; }
  .ps-steps li + li::before { display: none; }
}
@media (forced-colors: active) {
  .ps-choice label:has(:checked), .ps-steps .is-current { outline: 2px solid Highlight; }
}
.ps-date-strip { display: none; }
.ps-summary .ps-amount { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ps-line); font-size: 1.24rem; font-weight: 700; }
.ps-doc { margin: 16px 0 8px; padding: 12px 14px; border-block: 1px solid var(--ps-line); background: var(--ps-panel); font-weight: 600; }
@media (min-width: 800px) {
  .ps-dates { display: none; }
  .ps-date-strip { display: flex; gap: 6px; overflow-x: auto; padding: 5px 4px 10px; }
  .ps-date-chip { display: grid; flex: 0 0 56px; padding: 8px; line-height: 1.2; border: 1px solid var(--ps-field); background: var(--ps-panel); }
  .ps-date-chip span { text-transform: capitalize; font-size: .8rem; }
  .ps-date-chip[aria-pressed=true] { color: white; background: var(--ps-accent); border-color: var(--ps-accent); }
}
@media (min-width: 1200px) {
  .ps[data-view=payment] .ps-card { display: grid; grid-template-columns: minmax(150px, .72fr) minmax(0, 1.6fr); gap: 0 18px; }
  .ps[data-view=payment] .ps-card > * { grid-column: 2; }
  .ps[data-view=payment] .ps-card > :is(h2, .ps-save, .ps-conn) { grid-column: 1 / -1; }
  .ps[data-view=payment] .ps-card > .ps-summary { grid-column: 1; grid-row: span 5; align-self: start; }
}
a.ps-btn { color: var(--ps-ink); }
a.ps-primary { color: #fff; }
.ps-req dd:last-child .ps-copy-input { border-left: 3px solid var(--ps-accent); font-weight: 700; }
