/* Brand colors taken from breatheeasysolutionsllc.com (Sept 2026):
   logo block black, buttons royal blue #4054B2, header "Book Now" navy #00346F,
   footer headings #027EC3, text #333, footer #3D3D3D / #1B1B1B. Font: Open Sans. */
@font-face {
  font-family: "Open Sans";
  src: local("Open Sans"), url("/book/fonts/OpenSans.ttf") format("truetype");
  font-weight: 300 800;
  font-display: swap;
}
:root {
  --brand: #000000;
  --brand-dark: #1b1b1b;
  --accent: #4054b2;
  --accent-dark: #33449a;
  --accent-soft: #eceefa;
  --navy: #00346f;
  --link: #027ec3;
  --footer: #3d3d3d;
  --bg: #f4f4f4;
  --card: #ffffff;
  --text: #333333;
  --muted: #666666;
  --border: #dcdcdc;
  --error: #D62828;
  --radius: 10px;
  --tap: 52px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  padding-bottom: env(safe-area-inset-bottom);
}
.app-header {
  background: var(--brand);
  color: #fff;
  padding: calc(16px + env(safe-area-inset-top)) 20px 22px;
}
.brand-logo { display: block; width: 180px; max-width: 70%; height: auto; margin: 0 0 10px; }
.brand-name { margin: 0; font-size: 15px; font-weight: 600; color: #fff; opacity: .9; }
.brand h1 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -0.3px; font-weight: 700; }
.brand-sub { margin: 4px 0 0; font-size: 14px; opacity: .8; letter-spacing: .3px; }
.tagline {
  margin: 18px 0 4px;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}
.area { margin: 0; font-size: 14px; opacity: .85; }

main { max-width: 560px; margin: 0 auto; padding: 16px 16px 8px; }
.section-title { font-size: 20px; margin: 6px 4px 2px; }
.hint-top { margin: 0 4px 14px; color: var(--muted); font-size: 15px; }
.req { color: var(--error); }
.optional { color: var(--muted); font-weight: 400; font-size: 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 6px;
  margin: 0 0 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
fieldset.card { min-width: 0; }
legend {
  float: left; width: 100%;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
  color: var(--accent); margin: 0 0 12px; padding: 0;
}
legend + * { clear: both; }

.field { margin-bottom: 16px; }
label, .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 16px; }
input[type=text], input[type=tel], input[type=email], input[type=date], select, textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fbfcfc;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  appearance: none;
  -webkit-appearance: none;
}
textarea { resize: vertical; min-height: 64px; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235d6f78' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
input[type=date] { display: block; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(64,84,178,.2); background: #fff;
}
.invalid input, .invalid textarea, .invalid select, .invalid .choice span { border-color: var(--error) !important; }
.error { color: var(--error); font-size: 14px; margin: 5px 2px 0; min-height: 0; }
.error:empty { display: none; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.counter { color: var(--muted); font-size: 13px; margin-top: 5px; margin-left: auto; white-space: nowrap; }

/* Choice buttons (radio) */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.time-list { display: grid; gap: 10px; }
.choice { margin: 0; font-weight: 500; cursor: pointer; position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 58px; padding: 10px 8px;
  border: 1.5px solid var(--border); border-radius: 12px; background: #fbfcfc;
  font-size: 15px; line-height: 1.25;
  transition: background .15s, border-color .15s;
}
.choice.wide span { justify-content: space-between; padding: 12px 16px; text-align: left; }
.choice.wide strong { font-size: 16px; }
.choice.wide em { font-style: normal; color: var(--muted); font-size: 15px; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(64,84,178,.35); }

/* Upload */
.upload {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 96px; border: 2px dashed var(--border); border-radius: 12px;
  background: #fbfcfc; cursor: pointer; font-weight: 600; text-align: center; padding: 12px;
}
.upload-icon { font-size: 26px; line-height: 1; }
.upload-text { color: var(--accent); margin-top: 4px; }
.upload-sub { font-weight: 400; color: var(--muted); font-size: 13px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.previews:empty { display: none; }
.previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }

.note { font-size: 14px; color: var(--muted); background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; }
.note.center { text-align: center; background: transparent; }

.submit-wrap { padding: 4px 0 8px; }
.form-error { text-align: center; margin-bottom: 10px; }
.btn-primary, .btn-secondary {
  display: block; width: 100%; min-height: 58px; border-radius: 6px; font: inherit;
  font-size: 19px; font-weight: 700; cursor: pointer; border: 0;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 3px 10px rgba(64,84,178,.3); }
.btn-primary:active { background: var(--accent-dark); transform: translateY(1px); }
.btn-secondary { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); font-size: 17px; margin-bottom: 12px; }
.fine { text-align: center; color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.placeholder { background: #fff3cd; color: #7a5b00; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* Confirmation */
#confirm-screen:focus { outline: none; }
.confirm-hero { text-align: center; padding: 12px 8px 18px; }
.check {
  width: 72px; height: 72px; margin: 4px auto 12px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 40px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(64,84,178,.3);
}
.confirm-hero h2 { margin: 0 0 8px; font-size: 26px; }
.confirm-hero p { margin: 0; color: var(--text); }
.summary { padding-bottom: 14px; }
.summary h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); }
.summary dl { margin: 0; }
.summary dt { font-size: 13px; color: var(--muted); margin-top: 10px; }
.summary dt:first-child { margin-top: 0; }
.summary dd { margin: 2px 0 0; font-weight: 600; white-space: pre-wrap; word-break: break-word; }
.summary .previews { margin-top: 12px; }

.app-footer { text-align: center; color: #cfcfcf; background: var(--footer); font-size: 13px; padding: 20px 16px 22px; margin-top: 16px; }
.app-footer p { margin: 0 0 4px; }
.app-footer .f-name { color: var(--link); font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.app-footer a { color: #fff; text-decoration: none; }
.app-footer .f-small { color: #999; font-size: 12px; margin: 8px 0 0; }
.nowrap { white-space: nowrap; }
.summary dd .previews { margin-top: 8px; }

a { color: var(--link); }
