/* ============================================================================
 * Good Dogz KC — Calendar PWA
 * Simplified brand foundation matching gooddogzkc.com landing pages:
 *   - Cera Round Black (display) + Inter (body)
 *   - Dark #0A091A background, teal #07EDBE primary
 *   - Pill-shaped gradient-border CTA (.btn-pill)
 * Keep this file small. Layout lives in consult.css / app.css.
 * ============================================================================ */

@font-face {
  font-family: "Cera Round";
  src: url("/fonts/Cera-Round-Black-Web.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  /* GDKC brand colors (HSL aligned to landing-page globals.css) */
  --bg:            #0A091A;
  --bg-elev:       #14122A;
  --navy:          #2C2977;

  --teal:          #07EDBE;
  --pink:          #FF7EC0;
  --light-purple:  #A08CFF;
  --electric:      #9945FF;
  --mid-purple:    #C77DFF;
  --blue:          #477ED6;
  --light-blue:    #A0C7FF;
  --lilac:         #F1E0FF;

  --text:          #F8F8F8;
  --text-muted:    rgba(248, 248, 248, 0.60);
  --text-dim:      rgba(248, 248, 248, 0.35);

  --border:        rgba(248, 248, 248, 0.10);
  --border-strong: rgba(248, 248, 248, 0.22);

  --radius-sm:  10px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-pill: 9999px;

  --font-display: "Cera Round", system-ui, sans-serif;
  --font-body:    "Nunito", system-ui, sans-serif;
}

/* ---------------------------------------------------------------------------
 * Base
 * ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html { background: var(--bg); }
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Squiggly BG — pulled verbatim from Paper artboard "Booking — Phone
 * Consultation" node O86-0. 480x480 tile with 10 intersecting S-curves
 * in #A08CFF @ 18% opacity, stroke-width 5, rounded caps/joins. Hosted
 * as a standalone SVG in /squiggly-bg.svg so the file stays editable. */
body {
  background-image: url("/squiggly-bg.svg?v=64");
  background-repeat: repeat;
  background-size: 480px 480px;
  background-attachment: fixed;
}

body { min-height: 100vh; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
/* Matches Paper hero at 52px/58px — scales down on mobile */
h1 { font-size: clamp(2rem, 6.2vw, 3.25rem); line-height: 1.12; }
h2 { font-size: clamp(1.25rem, 3.5vw, 1.5rem); line-height: 1.2; }
h3 { font-size: 1.05rem; line-height: 1.3; }

p { margin: 0 0 0.75rem; color: var(--text-muted); }

.hero .hello {
  font-size: clamp(0.95rem, 1.8vw, 1.0625rem);
  line-height: 1.5;
  color: rgba(248, 248, 248, 0.55);
}

.muted  { color: var(--text-muted); }
.dim    { color: var(--text-dim); }

/* Hero accent — same animated purple→teal→pink gradient as the Book button.
 * Reuses the @keyframes gdkc-book-shift defined in calendar.css. */
.gradient-text {
  background: linear-gradient(90deg, #A08CFF 0%, #07EDBE 35%, #FF7EC0 65%, #07EDBE 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gdkc-hero-shift 12s ease infinite;
}
@keyframes gdkc-hero-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------------------------------------------------------------------------
 * Surfaces (cards)
 * ------------------------------------------------------------------------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
 * Forms (pill inputs on dark)
 * ------------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}
.field > span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.field em {
  color: var(--teal);
  font-style: normal;
  margin-left: 2px;
}
.field .optional {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.78rem;
  margin-left: 0.25rem;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  /* White inside + brand-gradient EDGE (Andrew 2026-07-13, matches the old
   * site's form): white paint clipped to the padding box, gradient paint on
   * the border box showing through the 2px transparent border. */
  border: 2px solid transparent;
  background:
    linear-gradient(#FFFFFF, #FFFFFF) padding-box,
    linear-gradient(135deg, #07EDBE 0%, #9945FF 50%, #FF7EC0 100%) border-box;
  color: var(--navy);
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 1rem;
  transition: box-shadow 120ms ease;
  outline: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.20);
}
.field textarea {
  border-radius: var(--radius-md);
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.4;
}
.field input:focus,
.field textarea:focus {
  /* The gradient border stays; focus is the glow ring. */
  box-shadow: 0 0 0 3px rgba(7, 237, 190, 0.35);
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(44, 41, 119, 0.45);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------------------------------------------------------------------------
 * Buttons — pill with rotating gradient border (landing-page signature)
 * ------------------------------------------------------------------------- */
.btn-pill,
.btn-mesh /* legacy class kept so old markup still styles */ {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  overflow: hidden;
  transition: color 200ms ease, box-shadow 200ms ease, transform 120ms ease;
  box-shadow:
    0 0 20px rgba(7, 237, 190, 0.25),
    0 0 10px rgba(160, 140, 255, 0.18);
  -webkit-tap-highlight-color: transparent;
}
.btn-pill::before,
.btn-mesh::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 300%;
  aspect-ratio: 1;
  background: conic-gradient(from 0deg, #07EDBE, #A08CFF, #FF7EC0, #477ED6, #07EDBE);
  animation: gdkc-pill-spin 6s linear infinite;
  transform: translate(-50%, -50%) translateZ(0);
  z-index: 0;
  border-radius: var(--radius-pill);
  will-change: transform;
  backface-visibility: hidden;
}
.btn-pill::after,
.btn-mesh::after {
  content: "";
  position: absolute;
  inset: 3px; /* border thickness */
  background: var(--bg);
  border-radius: var(--radius-pill);
  z-index: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 0 20px rgba(7, 237, 190, 0.10);
}
.btn-pill > *,
.btn-mesh > * {
  position: relative;
  z-index: 2;
}
.btn-pill:hover,
.btn-mesh:hover {
  color: #fff;
  box-shadow:
    0 0 30px rgba(7, 237, 190, 0.40),
    0 0 12px rgba(160, 140, 255, 0.30);
}
.btn-pill:hover::before,
.btn-mesh:hover::before {
  animation-duration: 3s;
  filter: blur(2px);
}
.btn-pill:active,
.btn-mesh:active { transform: translateY(1px); }
.btn-pill[disabled],
.btn-mesh[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}
.btn-pill[disabled]::before,
.btn-mesh[disabled]::before { animation-play-state: paused; filter: grayscale(1); }

/* Secondary pill — outlined, no spinning border */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font: 600 0.95rem/1 var(--font-body);
  cursor: pointer;
  transition: border-color 150ms, background 150ms, color 150ms;
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(7, 237, 190, 0.06);
}

@keyframes gdkc-pill-spin {
  from { transform: translate(-50%, -50%) rotate(0deg) translateZ(0); }
  to   { transform: translate(-50%, -50%) rotate(360deg) translateZ(0); }
}

/* Inline spinner used inside buttons while submitting */
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(248, 248, 248, 0.25);
  border-top-color: var(--teal);
  display: inline-block;
  margin-right: 8px;
  animation: gdkc-spin 800ms linear infinite;
}
@keyframes gdkc-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------------
 * Page shell
 * ------------------------------------------------------------------------- */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
/* Intake step stays narrow so the form doesn't sprawl */
body[data-step="intake"] .page,
.page[data-mode="rebooking"]:not(:has(.calendar-split)) {
  max-width: 640px;
}

.hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
  position: relative;
}
.hero h1 { margin-bottom: 0.5rem; }
.hero .hello {
  max-width: 42ch;
  margin: 0 auto;
}

/* Success wrap — no background, just a layout container so the card
 * and sticker are stacked siblings. Card keeps its purple border;
 * sticker floats freely on the dark squiggly bg below. */
.success-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}
.success-wrap .success-card { width: 100%; }

/* Confirmation-card LANDING (Andrew 2026-07-13): the card drops in and lands
 * with a soft overshoot FIRST (0–560ms), the sticker pop follows (see the
 * animation-delay below), and the embedding marketing page waits for this
 * whole sequence + a breath (~1.8s total) before firing its confetti. */
.success-wrap .success-card {
  animation: success-card-land 560ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes success-card-land {
  0%   { opacity: 0; transform: translateY(-36px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .success-wrap .success-card { animation: none; }
}

/* Pawesome die-cut sticker — sits BELOW the success card, freestanding
 * on the dark bg so the white die-cut outline reads. Larger than when
 * it was stuck inside the card. Slight tilt for the hand-slapped feel. */
.success-sticker {
  display: block;
  width: 240px;
  max-width: 72%;
  height: auto;
  transform: rotate(-7deg);
  pointer-events: none;
  user-select: none;
  /* 480ms delay: the pop now WAITS for the card landing above to finish. */
  animation: sticker-pop 420ms cubic-bezier(0.34, 1.56, 0.64, 1) 480ms both;
}
@media (prefers-reduced-motion: reduce) {
  .success-sticker { animation: none; }
}
@media (min-width: 800px) {
  .success-sticker { width: 300px; }
}
@keyframes sticker-pop {
  0%   { opacity: 0; transform: rotate(-7deg) scale(0.55); }
  100% { opacity: 1; transform: rotate(-7deg) scale(1);    }
}

/* ---------------------------------------------------------------------------
 * Beta banner — top-of-page notice with tap-to-text fallback
 * ------------------------------------------------------------------------- */
.beta-banner {
  display: flex;
  align-items: center;
  max-width: 720px;
  margin: 0 auto 0.85rem;
  padding: 0.7rem 3.25rem 0.7rem 1.1rem;
  /* Double-background trick: solid dark interior + 3-color gradient
   * border (purple → teal → pink, left to right). */
  background:
    linear-gradient(rgba(10, 9, 26, 0.55), rgba(10, 9, 26, 0.55)) padding-box,
    linear-gradient(90deg, #A08CFF 0%, #07EDBE 50%, #FF7EC0 100%) border-box;
  border: 2px solid transparent;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  color: #FFFFFF;
  position: relative;
}
.beta-banner .beta-dot { display: none; }
.beta-banner .beta-body {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}
.beta-banner .beta-msg {
  margin: 0;
  color: #FFFFFF;
}
.beta-banner .beta-cta {
  margin: 0.25rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}
.beta-banner .beta-arrow {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}
.beta-banner a {
  color: #FFFFFF;
  font-weight: 800;
  white-space: nowrap;
  /* Gradient underline — same 3-color stack as the banner border. */
  text-decoration: none;
  padding-bottom: 3px;
  background-image: linear-gradient(90deg, #A08CFF 0%, #07EDBE 50%, #FF7EC0 100%);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}
.beta-banner a:hover { opacity: 0.85; }
.beta-banner .beta-dismiss {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  padding: 0;
}
.beta-banner .beta-dismiss:hover {
  background: rgba(248, 248, 248, 0.10);
}
.beta-banner[hidden] { display: none; }

/* Cadence recommendation — shown under the progress chip on the booking card */
.cadence-rec {
  margin: 12px auto 0;
  max-width: 560px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(160, 199, 255, 0.35);
  background: rgba(160, 199, 255, 0.08);
  color: var(--text-body, #E8E9FF);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
