/*
 * Primary Self website look for the client booking pages.
 * Loaded after app.css, for the main brand only (see client_theme() in lib/brand.php).
 * Colours and fonts match the website's home page (layout.min.css: --ps-* tokens).
 * html.in-frame = shown inside the website's booking panel (no header, transparent background).
 */
:root {
  --accent: #1a8283;          /* site's --ps-accent-dark: readable on white */
  --accent-bright: #2BB6B7;   /* site's --ps-accent */
  --ink: #16201f;
  --muted: #52605e;
  --line: rgba(22, 32, 31, .12);
  --card: #ffffff;
  --sand: #f1ebe0;
  --radius: 16px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body { font-family: var(--sans); color: var(--ink); line-height: 1.6; }
html:not(.in-frame) body { background: #faf7f2; }
html:not(.in-frame) .ps-app { padding-top: 32px; padding-bottom: 56px; }

/* Headings: serif, like the website */
h2, h3, .pkg h3, .price { font-family: var(--serif); color: var(--ink); }
h2 { font-size: 1.85rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 8px; }
h3 { font-size: 1.2rem; font-weight: 600; }
.price { font-size: 1.3rem; }
.muted { color: var(--muted); }
a { color: var(--accent); text-underline-offset: 3px; }

/* Buttons and time slots: pills */
.btn { border-radius: 999px; padding: 12px 24px; font-weight: 600; letter-spacing: .01em; }
.btn:hover { filter: none; background: #136667; }
.btn.ghost { border: 1.5px solid var(--accent); background: transparent; }
.btn.ghost:hover { background: rgba(43, 182, 183, .08); }
.btn.sm { padding: 7px 16px; }
.slot { border-radius: 999px; border-color: var(--accent); color: var(--accent); padding: 8px 14px; }
.slot:hover, .slot:focus { background: var(--accent); border-color: var(--accent); color: #fff; }
.link { text-underline-offset: 3px; }

/* Panels */
.card, .pkg, .summary, .row, .repeat { border-color: var(--line); border-radius: var(--radius); }
html:not(.in-frame) .card, html:not(.in-frame) .pkg, html:not(.in-frame) .summary, html:not(.in-frame) .row { box-shadow: 0 12px 32px rgba(15, 23, 42, .06); }
.card { padding: 26px; }
.pkg { transition: box-shadow .18s, transform .18s; }
.pkg:hover { box-shadow: 0 14px 34px rgba(15, 23, 42, .09); }
.pkg-foot, .summary .full, .day { border-color: var(--line); }
.notice { background: #e8f6f6; border-left-color: var(--accent-bright); border-radius: 12px; }
.notice.warn { background: #fdf5e6; border-left-color: #d08a00; }
.ps-error { border-radius: 10px; }

/* Forms */
.form input, .form textarea, .form select { border: 1px solid rgba(22, 32, 31, .22); border-radius: 12px; padding: 11px 14px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent-bright); outline-offset: 0; border-color: transparent; }
input[readonly] { background: var(--sand); }
.sigpad { border-radius: 12px; }

/* Checkout progress */
.steps span { background: var(--sand); color: var(--muted); }
.steps .done { background: #e3f3ef; color: #1a6b55; }
.steps .cur { background: var(--accent); color: #fff; }

/* Header on pages opened directly (emails, after payment) */
.ps-site-header { background: #0F1620; color: #fff; }
.ps-site-header-in { max-width: 760px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ps-site-logo img { display: block; width: 56px; height: 56px; }
.ps-site-header nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.ps-site-header nav a { color: #fff; text-decoration: none; font-size: .95rem; font-weight: 500; }
.ps-site-header nav a:hover, .ps-site-header nav a:focus { color: var(--accent-bright); }
html.in-frame .ps-site-header { display: none; }
@media print { .ps-site-header { display: none; } }
@media (max-width: 420px) { .ps-site-header nav { gap: 12px; } .ps-site-header nav a { font-size: .88rem; } }

/* "Need help?" line under the booking pages (pages opened directly only) */
.ps-support { max-width: 760px; margin: 0 auto 40px; padding: 0 16px; }
html.in-frame .ps-support { display: none; }
