/*
 * EZ Appointments customer theme layer
 * Scoped to #ez-appt-app so the staff/admin appointment dashboard is untouched.
 */
#ez-appt-app.ez-appt {
  --ez-site-navy: #071a33;
  --ez-site-blue: #0d315d;
  --ez-site-blue-2: #174a7c;
  --ez-site-orange: #f59a23;
  --ez-site-orange-dark: #d97900;
  --ez-site-ink: #16263a;
  --ez-site-muted: #627085;
  --ez-site-line: #dfe6ee;
  --ez-site-soft: #f5f7fa;
  --ez-site-soft-blue: #eef4fa;
  --ez-site-white: #ffffff;
  --ez-site-green: #18754a;
  --ez-site-red: #b42318;
  --ez-site-yellow: #9a6400;
  --ez-site-radius: 22px;
  --ez-site-shadow: 0 18px 50px rgba(7, 26, 51, .10);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--ez-site-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

#ez-appt-app *,
#ez-appt-app *::before,
#ez-appt-app *::after { box-sizing: border-box; }

#ez-appt-app button,
#ez-appt-app input,
#ez-appt-app textarea,
#ez-appt-app select { font: inherit; }

#ez-appt-app a { color: inherit; }

#ez-appt-app .ez-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(245,154,35,.23), transparent 28%),
    linear-gradient(135deg, var(--ez-site-navy), var(--ez-site-blue));
  color: #fff;
  box-shadow: var(--ez-site-shadow);
}

#ez-appt-app .ez-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
}

#ez-appt-app .ez-hero-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #ffd29a;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#ez-appt-app .ez-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 760px;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

#ez-appt-app .ez-hero p {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 14px 0 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(.98rem, 1.7vw, 1.08rem);
}

#ez-appt-app .ez-hero p strong { color: #fff; }

#ez-appt-app .ez-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

#ez-appt-app .ez-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: #fff !important;
  text-decoration: none !important;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

#ez-appt-app .ez-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.16);
}

#ez-appt-app .ez-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 9px;
  border: 1px solid var(--ez-site-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(7,26,51,.06);
}

#ez-appt-app .ez-steps span {
  min-width: 0;
  padding: 9px 8px;
  border-radius: 12px;
  color: #7b8797;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .02em;
  text-align: center;
  white-space: nowrap;
}

#ez-appt-app .ez-steps span.active {
  background: var(--ez-site-soft-blue);
  color: var(--ez-site-blue);
}

#ez-appt-app .ez-steps span[aria-current="step"] {
  background: var(--ez-site-orange);
  color: #251402;
  box-shadow: inset 0 0 0 1px rgba(136,77,0,.14);
}

#ez-appt-app #ez-main {
  outline: none;
  scroll-margin-top: 110px;
}

#ez-appt-app .ez-card {
  margin-bottom: 16px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--ez-site-line);
  border-radius: var(--ez-site-radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(7,26,51,.07);
}

#ez-appt-app .ez-card h2,
#ez-appt-app .ez-card h3,
#ez-appt-app .ez-choice h3 {
  color: var(--ez-site-navy);
  letter-spacing: -.025em;
}

#ez-appt-app .ez-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.12;
}

#ez-appt-app .ez-question { margin-bottom: 6px !important; }
#ez-appt-app .ez-sub,
#ez-appt-app .ez-muted { color: var(--ez-site-muted); }
#ez-appt-app .ez-sub { margin: 0 0 18px; }

#ez-appt-app .ez-grid,
#ez-appt-app .ez-loc-grid,
#ez-appt-app .ez-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#ez-appt-app .ez-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--ez-site-line);
  border-radius: 18px;
  background: #fff;
  color: var(--ez-site-ink);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(7,26,51,.05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

#ez-appt-app .ez-choice:hover {
  transform: translateY(-2px);
  border-color: #adc2d7;
  background: #fbfdff;
  box-shadow: 0 14px 30px rgba(7,26,51,.10);
}

#ez-appt-app .ez-choice:focus-visible,
#ez-appt-app .ez-btn:focus-visible,
#ez-appt-app .ez-pill:focus-visible,
#ez-appt-app .ez-input:focus-visible,
#ez-appt-app .ez-day:focus-visible,
#ez-appt-app .ez-time:focus-visible {
  outline: 3px solid rgba(245,154,35,.38);
  outline-offset: 3px;
}

#ez-appt-app .ez-choice img,
#ez-appt-app .ez-service-thumb {
  width: 92px;
  height: 72px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 14px;
  background: var(--ez-site-soft);
}

#ez-appt-app .ez-choice h3 { margin: 0 0 4px; font-size: 1.04rem; }
#ez-appt-app .ez-choice p { margin: 0; color: var(--ez-site-muted); font-size: .92rem; }
#ez-appt-app .ez-icon { font-size: 2rem; line-height: 1; }
#ez-appt-app .ez-distance {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--ez-site-soft-blue);
  color: var(--ez-site-blue);
  font-size: .75rem;
  font-weight: 850;
}

#ez-appt-app .ez-service-card { align-items: flex-start; }
#ez-appt-app .ez-service-copy { min-width: 0; }
#ez-appt-app .ez-price {
  margin-top: 10px;
  color: var(--ez-site-navy);
  font-size: 1.18rem;
  font-weight: 900;
}
#ez-appt-app .ez-service-copy small { display: block; margin-top: 2px; color: var(--ez-site-muted); }

#ez-appt-app .ez-badge {
  display: inline-flex;
  align-items: center;
  margin: 9px 6px 0 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--ez-site-soft-blue);
  color: var(--ez-site-blue);
  font-size: .74rem;
  font-weight: 850;
}
#ez-appt-app .ez-badge.green { background: #e9f6ef; color: var(--ez-site-green); }
#ez-appt-app .ez-badge.red { background: #fff0ed; color: var(--ez-site-red); }
#ez-appt-app .ez-badge.yellow { background: #fff6dc; color: var(--ez-site-yellow); }
#ez-appt-app .ez-badge.blue { background: var(--ez-site-soft-blue); color: var(--ez-site-blue); }

#ez-appt-app .ez-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
#ez-appt-app .ez-grow { flex: 1 1 0; min-width: 0; }

#ez-appt-app .ez-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--ez-site-navy);
  border-radius: 13px;
  background: var(--ez-site-navy);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(7,26,51,.12);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

#ez-appt-app .ez-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--ez-site-blue);
  border-color: var(--ez-site-blue);
  box-shadow: 0 12px 22px rgba(7,26,51,.16);
}

#ez-appt-app .ez-btn.secondary {
  border-color: var(--ez-site-line);
  background: #fff;
  color: var(--ez-site-navy) !important;
  box-shadow: none;
}
#ez-appt-app .ez-btn.secondary:hover:not(:disabled) {
  border-color: #bdcad8;
  background: var(--ez-site-soft);
}
#ez-appt-app .ez-btn.full { width: 100%; margin-top: 12px; }
#ez-appt-app .ez-btn.small { min-height: 38px; padding: 8px 12px; font-size: .84rem; }
#ez-appt-app .ez-btn:disabled { opacity: .52; cursor: not-allowed; transform: none; }
#ez-appt-app .ez-whatsapp-btn { background: #18754a; border-color: #18754a; }

#ez-appt-app .ez-label {
  display: block;
  margin: 14px 0 6px;
  color: var(--ez-site-navy);
  font-size: .84rem;
  font-weight: 850;
}

#ez-appt-app .ez-input,
#ez-appt-app input.ez-input,
#ez-appt-app textarea.ez-input,
#ez-appt-app select.ez-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cfd9e5;
  border-radius: 13px;
  background: #fff;
  color: var(--ez-site-ink);
  box-shadow: inset 0 1px 2px rgba(7,26,51,.03);
}
#ez-appt-app .ez-input:focus {
  border-color: #6e92b8;
  outline: 3px solid rgba(23,74,124,.12);
}

#ez-appt-app .ez-tip,
#ez-appt-app .ez-receipt,
#ez-appt-app .ez-check-panel,
#ez-appt-app .ez-contract-read-note {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid #d7e2ec;
  border-radius: 14px;
  background: var(--ez-site-soft-blue);
  color: #29445f;
}
#ez-appt-app .ez-tip.green { border-color: #c9ead8; background: #edf8f2; color: #155b3b; }
#ez-appt-app .ez-tip.red { border-color: #f2cbc6; background: #fff3f1; color: #8f261d; }
#ez-appt-app .ez-tip.yellow { border-color: #f0ddb0; background: #fff9e8; color: #75500c; }
#ez-appt-app .ez-receipt { background: #f8fafc; color: var(--ez-site-ink); }
#ez-appt-app .ez-receipt .ez-row { justify-content: space-between; }
#ez-appt-app .ez-soft-hr { border: 0; border-top: 1px solid var(--ez-site-line); margin: 14px 0; }

#ez-appt-app .ez-check-panel { background: #fbfcfe; color: var(--ez-site-ink); }
#ez-appt-app .ez-check-panel label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  cursor: pointer;
}
#ez-appt-app .ez-check-panel input[type="checkbox"] {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--ez-site-orange-dark);
}

#ez-appt-app .ez-warning-choice { border-color: #edc98d; background: #fffaf0; }
#ez-appt-app .ez-rental-confirm { border-color: #eadfc9; }
#ez-appt-app .ez-walkin-card { border-color: #cce4d8; }

#ez-appt-app .ez-week-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
}
#ez-appt-app #weekLabel { color: var(--ez-site-navy); font-weight: 850; text-align: center; }

#ez-appt-app .ez-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

#ez-appt-app .ez-day,
#ez-appt-app .ez-time {
  user-select: none;
  border: 1px solid var(--ez-site-line);
  border-radius: 14px;
  background: #fff;
  color: var(--ez-site-navy);
  cursor: pointer;
  text-align: center;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
#ez-appt-app .ez-day { min-height: 92px; padding: 12px 6px; }
#ez-appt-app .ez-day:hover:not(.closed),
#ez-appt-app .ez-time:hover { transform: translateY(-1px); border-color: #9bb4cc; background: #fbfdff; }
#ez-appt-app .ez-day.closed { opacity: .42; cursor: not-allowed; background: var(--ez-site-soft); }
#ez-appt-app .ez-day.selected,
#ez-appt-app .ez-time.selected {
  border-color: var(--ez-site-navy);
  background: var(--ez-site-navy);
  color: #fff;
  box-shadow: 0 8px 18px rgba(7,26,51,.16);
}
#ez-appt-app .ez-day-name { font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
#ez-appt-app .ez-day-num { margin: 2px 0; font-size: 1.32rem; font-weight: 900; }
#ez-appt-app .ez-day-status { font-size: .68rem; font-weight: 750; opacity: .72; }

#ez-appt-app .ez-time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 9px;
  margin-top: 16px;
  scroll-margin-top: 110px;
}
#ez-appt-app .ez-time { padding: 12px 10px; font-weight: 850; }

#ez-appt-app .ez-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

#ez-appt-app .ez-pay-field {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cfd9e5;
  border-radius: 13px;
  background: #fff;
}
#ez-appt-app .ez-pay-field iframe { width: 100% !important; min-height: 28px; border: 0 !important; }

#ez-appt-app .ez-contract {
  max-height: 330px;
  overflow: auto;
  margin: 14px 0;
  padding: 16px 18px;
  border: 1px solid var(--ez-site-line);
  border-radius: 14px;
  background: #fbfcfe;
  color: #35465a;
  font-size: .9rem;
}
#ez-appt-app .ez-contract h3,
#ez-appt-app .ez-contract h4 { color: var(--ez-site-navy); }
#ez-appt-app .ez-contract-read-note.ok { border-color: #b9dfcb; background: #edf8f2; color: #155b3b; }

#ez-appt-app .ez-sign-pad {
  display: block;
  width: 100%;
  height: 180px;
  border: 1px solid #cfd9e5;
  border-radius: 14px;
  background: #fff;
  touch-action: none;
}
#ez-appt-app .ez-sign-locked { opacity: .54; }
#ez-appt-app .ez-sign-locked .ez-sign-pad { background: #f3f5f7; }

#ez-appt-app .ez-errors {
  min-height: 20px;
  margin-top: 10px;
  color: var(--ez-site-red);
  font-size: .9rem;
  font-weight: 800;
}

#ez-appt-app .ez-ok {
  display: inline-grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #e9f6ef;
  color: var(--ez-site-green);
  font-size: 2rem;
  font-weight: 950;
}
#ez-appt-app .ez-center { text-align: center; }
#ez-appt-app .ez-appt-loading { padding: 18px; color: var(--ez-site-muted); text-align: center; font-weight: 750; }

@media (max-width: 820px) {
  #ez-appt-app .ez-grid,
  #ez-appt-app .ez-loc-grid,
  #ez-appt-app .ez-service-grid { grid-template-columns: 1fr; }
  #ez-appt-app .ez-week-grid { overflow-x: auto; grid-template-columns: repeat(7, minmax(74px, 1fr)); padding-bottom: 6px; }
  #ez-appt-app .ez-row { align-items: stretch; }
}

@media (max-width: 620px) {
  #ez-appt-app .ez-hero { border-radius: 22px; padding: 22px 18px; }
  #ez-appt-app .ez-hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #ez-appt-app .ez-pill { width: 100%; min-height: 44px; }
  #ez-appt-app .ez-steps { gap: 4px; padding: 6px; }
  #ez-appt-app .ez-steps span { padding: 8px 3px; font-size: .67rem; }
  #ez-appt-app .ez-card { padding: 19px 16px; border-radius: 18px; }
  #ez-appt-app .ez-choice { padding: 15px; min-height: 0; align-items: flex-start; }
  #ez-appt-app .ez-choice img,
  #ez-appt-app .ez-service-thumb { width: 74px; height: 62px; }
  #ez-appt-app .ez-row { flex-direction: column; }
  #ez-appt-app .ez-week-nav { grid-template-columns: 1fr 1fr; }
  #ez-appt-app #weekLabel { grid-column: 1 / -1; grid-row: 1; }
  #ez-appt-app .ez-contact-grid { grid-template-columns: 1fr; }
  #ez-appt-app .ez-time-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
  #ez-appt-app .ez-hero-actions { grid-template-columns: 1fr; }
  #ez-appt-app .ez-steps span { font-size: .62rem; letter-spacing: 0; }
  #ez-appt-app .ez-choice img,
  #ez-appt-app .ez-service-thumb { width: 64px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  #ez-appt-app *,
  #ez-appt-app *::before,
  #ez-appt-app *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  #ez-appt-app .ez-hero,
  #ez-appt-app .ez-steps,
  #ez-appt-app .ez-btn,
  #ez-appt-app .ez-pill { display: none !important; }
  #ez-appt-app .ez-card { border: 0; box-shadow: none; }
}


/* Confirmation utilities + session-recovery friendly finish screen */
#ez-appt-app .ez-bring-panel {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--ez-site-line);
  border-radius: 16px;
  background: #f8fafc;
  text-align: left;
}
#ez-appt-app .ez-bring-panel h3 { margin: 0 0 9px; color: var(--ez-site-navy); }
#ez-appt-app .ez-bring-list { margin: 0; padding-left: 20px; color: #35465a; }
#ez-appt-app .ez-bring-list li { margin: 7px 0; }
#ez-appt-app .ez-inline-link { display: inline-block; margin-top: 10px; color: var(--ez-site-navy); font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
#ez-appt-app .ez-confirm-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 16px; }
#ez-appt-app .ez-confirm-actions .ez-btn { width: 100%; margin: 0; min-height: 46px; }
@media (max-width: 620px) { #ez-appt-app .ez-confirm-actions { grid-template-columns: 1fr; } }
