/* Larger text and touch targets throughout -- accessibility for older
   customers is a functional requirement here, not just later polish, so
   this doesn't wait for the full brand pass. Colors sampled directly from
   the SDC logo (SDC_Tools/static/logo.png) and the real site's header
   banner (superdogsandcats.com/brands): navy #005696 for the accent, the
   logo's lighter ring blue lightened way down for the page wash, and the
   same light orange #F8A25D used on their own site's header. Body font,
   heading treatment (Bebas Neue, navy, letter-spaced), and page/content
   alignment match shop-dev.superdogsandcats.com (Shop for Pickup) -- same
   underlying brand, one look across both customer-facing sites. Font
   *sizes* are the other way around: Shop/static/style.css was matched up
   to Appointments' original (larger) sizing per Tim 2026-09-27, not the
   reverse -- keep the two in sync if either changes. */

:root {
  --ink: #2b2b2b;
  --border: #dcdcdc;
  --accent: #005696;
  --bg-blue: #dce9f5;
  --header-orange: #f8a25d;
  --card-bg: #ffffff;
  --red: #b0392f;
  --green: #2f8a4e;
}

* { box-sizing: border-box; }

html {
  background: var(--bg-blue);
}

body {
  margin: 0;
  font-family: 'Barlow', system-ui, sans-serif;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.6;
  background: var(--bg-blue);
  overflow-x: hidden;
}

.customer-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 28px;
  background: var(--header-orange);
  border-bottom: 4px solid var(--accent);
}
.customer-brand { display: flex; align-items: center; gap: 14px; }
.customer-brand a { color: inherit; text-decoration: none; }
.customer-logo { height: 52px; width: 52px; display: block; }
.customer-header h1 {
  margin: 0;
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  /* h1 is bold by browser default, and Bebas Neue only ships one true
     weight -- without this the browser fakes a bold by thickening the
     strokes, which looks off on a display font like this. */
  font-weight: normal;
  font-size: 28px;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.customer-nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.customer-nav a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 18px;
  background: var(--card-bg);
  padding: 8px 16px;
  border-radius: 999px;
}
.customer-nav a:hover { opacity: 0.85; }

/* Centered column, same max-width as shop-dev's .shop-main -- margin:
   0 auto is what actually matches shop-dev here (confirmed against its
   own computed styles at a wide viewport: its main is centered too, it
   only *looks* flush-left at typical/narrow widths because the auto
   margins collapse to 0 once the viewport is under ~1080px+padding). */
.customer-main { max-width: 1080px; margin: 0 auto; padding: 24px 20px 80px; }

h2, h3 {
  margin: 0 0 0.4em;
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-weight: normal;
  letter-spacing: 0.02em;
  color: var(--accent);
}
h2 { font-size: 28px; }
h3 { font-size: 22px; }

.c-flash { padding: 16px 20px; border-radius: 8px; margin-bottom: 20px; font-weight: 700; font-size: 18px; }
.c-flash.success { background: #e6f4ea; color: var(--green); }
.c-flash.error { background: #fbe9e7; color: var(--red); }
.c-flash.c-sms-prompt {
  background: #fff4e5; color: #7a4a00; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

.c-field { margin-bottom: 18px; }
.c-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.c-field input, .c-field select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 20px;
  font-family: inherit;
  background: #fff;
}
/* Matches shop-dev's .field input exactly -- a plain text/email/tel field
   doesn't need to stretch across a wide page just because its container
   can. Selects are left full-width: several (Coat Type, etc.) hold long
   option text that a 380px cap would clip. */
.c-field input:not([type=file]) { max-width: 380px; }
.c-field input:focus, .c-field select:focus { outline: none; border-color: var(--accent); }
.c-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 20px;
  font-family: inherit;
  background: #fff;
  resize: vertical;
}
.c-field textarea:focus { outline: none; border-color: var(--accent); }
.c-field input:disabled { background: #f0f0f0; color: #777; cursor: not-allowed; }
.c-field input[type=file] {
  padding: 10px 12px;
  font-size: 16px;
  background: var(--card-bg);
}
.c-field-checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.c-field-checkbox input[type=checkbox] { width: 20px; height: 20px; flex: none; }
.c-checkbox-list .c-field-checkbox { margin-bottom: 10px; }
.c-field-checkbox.c-checkbox-disabled label { color: #aaa; cursor: not-allowed; }
.c-field-checkbox.c-checkbox-disabled input[type=checkbox] { cursor: not-allowed; }
.c-field-checkbox-inline { margin-top: 10px; }
.c-field-checkbox-inline label { font-weight: 400; font-size: 15px; }
.c-sms-disclaimer { font-size: 13px; color: #777; margin: 8px 0 0; line-height: 1.5; }
.c-inline-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.c-inline-fields select { flex: 1; min-width: 120px; }

.c-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: #e07a1f;
  color: white;
  font-family: inherit;
  font-weight: 700;
  font-size: 20px;
  cursor: pointer;
  text-decoration: none;
}
.c-button:hover { opacity: 0.9; }
.c-button.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.c-button.secondary:hover { background: var(--accent); color: white; }
.c-button:disabled { opacity: 0.6; cursor: default; }

/* Indeterminate "still working" bar -- there's no real percent-done to
   report (we don't know if the wait is the Erply lookup or the text
   actually sending), so this loops a sliding highlight rather than
   filling to a number that would be a guess. */
.c-progress-bar {
  margin-top: 14px;
  height: 10px;
  border-radius: 6px;
  background: var(--border);
  overflow: hidden;
}
.c-progress-bar-fill {
  height: 100%;
  width: 40%;
  border-radius: 6px;
  background: #e07a1f;
  animation: c-progress-slide 1.1s ease-in-out infinite;
}
@keyframes c-progress-slide {
  0% { margin-left: -40%; }
  100% { margin-left: 100%; }
}

.c-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.c-list { list-style: none; padding: 0; margin: 0; }
.c-list li { padding: 16px 0; border-bottom: 2px solid var(--border); }
.c-list li:last-child { border-bottom: none; }

.c-appt-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.c-page-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.c-page-header h2 { margin: 0; }
.c-button-row { display: flex; gap: 12px; flex-wrap: wrap; }

.c-info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.c-info-row:last-child { border-bottom: none; }
.c-info-label { color: #666; }
.c-info-value { font-weight: 700; text-align: right; }

.c-service-cards { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.c-service-card {
  flex: 1 1 200px;
  padding: 20px 24px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}
.c-service-card:hover { border-color: var(--accent); }
.c-service-card.active { border-color: var(--accent); background: var(--bg-blue); }

.c-empty { color: #777; font-style: italic; font-size: 18px; }

.c-date-nav { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.c-date-nav a { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 18px; }
.c-date-nav strong { font-size: 20px; }

/* The customer-facing booking calendar (month view) -- a simpler cousin
   of the staff month grid (style.css's .month-grid): a day either has at
   least one open slot (clickable, marked with a dot) or it doesn't
   (shown but not clickable), no booked-count/rabies-flag detail since
   customers don't need that. */
.c-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 24px; }
.c-cal-weekday-label { text-align: center; font-weight: 700; color: #777; font-size: 13px; padding-bottom: 2px; }
.c-cal-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  text-decoration: none;
  color: var(--ink);
}
.c-cal-cell-date { font-weight: 700; font-size: 16px; }
.c-cal-cell-note { font-size: 11px; color: #777; }
.c-cal-cell.dim { opacity: 0.4; }
.c-cal-cell.has-openings { border-color: var(--green); cursor: pointer; }
.c-cal-cell.has-openings:hover { background: #e6f4ea; }
.c-cal-cell.has-openings.selected { border-width: 3px; border-color: var(--accent); background: var(--bg-blue); }
.c-cal-open-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

@media (max-width: 500px) {
  .c-cal-cell { min-height: 44px; }
  .c-cal-cell-date { font-size: 14px; }
}

form.c-inline { display: inline; }

.agreement-text {
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 17px;
}

.c-agreement-note {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 20px;
  font-size: 17px;
}
.c-agreement-note a { color: var(--accent); font-weight: 700; }

@media (max-width: 500px) {
  .customer-header { padding: 16px 18px; }
  .customer-main { padding: 20px 14px 60px; }
  .c-button { width: 100%; text-align: center; }
  /* .c-button above goes full-width on mobile, which overlaps its
     sibling text in a same-row layout like .c-info-row (e.g. a
     bookable time slot's "10:00 AM - 10:20 AM" next to "Book This
     Time") unless the row itself also stacks. */
  .c-info-row { flex-direction: column; align-items: stretch; gap: 8px; }
}

/* Mirrors the footer on superdogsandcats.com (address/phone/hours, social
   links, legal links, copyright) minus its Contact and Mailing List forms
   and its (currently broken) Twitter link -- dark navy instead of their
   black, using the same brand blue sampled above, and Barlow as a close
   open-license stand-in for their licensed DIN Neuzeit Grotesk. Layout
   matches shop-dev's .site-footer exactly (left-aligned, 1080px, no
   uppercase/letter-spacing overrides on the column headings) -- kept in
   sync with Shop/static/style.css's same-named rules. */
.site-footer { background: var(--accent); color: #e8e8e8; margin-top: 60px; }
.site-footer-grid { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px; padding: 36px 20px; }
.site-footer-col h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.site-footer-col p { margin: 0; color: #e8e8e8; }
.site-footer-bottom {
  max-width: 1080px; margin: 0 auto; padding: 16px 20px 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.site-footer-social a { color: #fff; display: inline-flex; margin-right: 12px; }
.site-footer-social a:hover { color: var(--header-orange); }
.site-footer-links a { color: #e8e8e8; font-size: 14px; text-decoration: underline; margin-right: 16px; }
.site-footer-links a:hover { color: #fff; }
.site-footer-copyright { margin: 0; font-size: 13px; color: #cfd8dc; }

/* Dev/test site banner (APP_ENV=development only) -- loud on purpose, so
   this is never mistaken for production. */
.dev-banner {
  background: #b0392f;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 16px;
  letter-spacing: 0.3px;
}
.dev-banner a { color: #fff; text-decoration: underline; }
