:root {
  color-scheme: light;
  --fb-green: #1f5b3a;
  --fb-gold: #d4a035;
  --fb-teal: #5fa3ad;
  --fb-charcoal: #333333;
  --fb-white: #ffffff;
  --fb-cream: #fbfaf6;
  --fb-mist: #eef5f3;
  --fb-border: rgb(31 91 58 / 16%);
  --fb-shadow: 0 1.25rem 3.5rem rgb(24 55 43 / 12%);
  --fb-radius-lg: 1.5rem;
  --fb-radius-md: 1rem;
  --fb-content: 72rem;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

html {
  min-height: 100%;
  background: var(--fb-cream);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--fb-charcoal);
  background: var(--fb-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
p {
  margin-top: 0;
}

p {
  line-height: 1.65;
}

.site-shell {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.site-frame {
  width: min(100%, var(--fb-content));
  margin-inline: auto;
}

.brand-mark {
  height: auto;
}

.brand-mark--full {
  width: min(100%, 47rem);
}

.brand-mark--round {
  width: clamp(5.5rem, 12vw, 8rem);
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--fb-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-title {
  margin-bottom: 1rem;
  color: var(--fb-green);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 46rem;
  margin-bottom: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.status-line {
  margin: 0;
  color: rgb(51 51 51 / 72%);
  font-size: 0.9rem;
}

.brand-rule {
  width: 4.5rem;
  height: 0.22rem;
  margin: 1.35rem 0;
  border: 0;
  border-radius: 999px;
  background: var(--fb-gold);
}

.surface-card {
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-lg);
  background: rgb(255 255 255 / 94%);
  box-shadow: var(--fb-shadow);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 40rem) {
  .site-shell {
    align-items: start;
  }
}

/* Shared public-site foundation — v0.2.0-alpha.4 */
a {
  color: var(--fb-green);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.13em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 0.2rem solid var(--fb-teal);
  outline-offset: 0.2rem;
}

.container {
  width: min(100% - 2rem, var(--fb-content));
  margin-inline: auto;
}

.container--narrow {
  max-width: 52rem;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.section--muted {
  background: var(--fb-mist);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  font: inherit;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  border-color: var(--fb-green);
  background: var(--fb-green);
  color: var(--fb-white);
}

.button--primary:hover {
  background: #17472d;
}

.button--secondary {
  border-color: rgb(31 91 58 / 30%);
  background: var(--fb-white);
  color: var(--fb-green);
}

.button--secondary:hover {
  background: var(--fb-mist);
}

.text-link {
  font-weight: 750;
}

.notice {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-md);
  background: var(--fb-white);
}

.notice h2 {
  margin-bottom: 0.5rem;
  color: var(--fb-green);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

.notice p:last-child {
  margin-bottom: 0;
}

/* Shared Family Bridge form controls — moved from public.css in v0.3.0-alpha.11.3 so Public and Admin use the exact same components. */
.field,
.choice-row,
.choice-grid,
.checkbox-row,
.call-timezone {
  margin-top: 1.25rem;
}

.field-grid {
  display: grid;
  gap: 1rem;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--fb-green);
  font-weight: 780;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.78rem 0.85rem;
  border: 1px solid rgb(31 91 58 / 28%);
  border-radius: 0.7rem;
  background: var(--fb-white);
  color: var(--fb-charcoal);
  font: inherit;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--fb-teal);
  outline: 0.18rem solid rgb(95 163 173 / 25%);
  outline-offset: 0;
}

.optional,
.field-help-inline,
.field-help {
  color: rgb(51 51 51 / 65%);
  font-size: 0.88rem;
  font-weight: 500;
}

.field-help {
  margin: 0.5rem 0 0;
}

.choice-row,
.choice-grid {
  display: grid;
  gap: 0.75rem;
}

.choice-card,
.choice-grid label,
.checkbox-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--fb-border);
  border-radius: 0.8rem;
  background: var(--fb-white);
  cursor: pointer;
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card small {
  margin-top: 0.22rem;
  color: rgb(51 51 51 / 68%);
}

.choice-card:has(input:checked),
.choice-grid label:has(input:checked) {
  border-color: var(--fb-green);
  box-shadow: 0 0 0 0.12rem rgb(31 91 58 / 12%);
}

.choice-card input[type="radio"],
.choice-grid input[type="radio"],
.checkbox-row input[type="checkbox"] {
  width: 1.2rem;
  min-width: 1.2rem;
  height: 1.2rem;
  min-height: 0;
  flex: 0 0 1.2rem;
  margin: 0.14rem 0 0;
  padding: 0;
  accent-color: var(--fb-green);
}

.choice-card,
.choice-grid label,
.checkbox-row {
  min-width: 0;
}

.choice-card > span,
.checkbox-row > span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.choice-grid label {
  overflow-wrap: break-word;
}

.service-choice-field {
  max-width: 42rem;
}

.service-choice-trigger {
  display: flex;
  width: 100%;
  min-height: 3.35rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(31 91 58 / 24%);
  border-radius: 0.85rem;
  background: rgb(255 255 255 / 82%);
  color: var(--fb-charcoal);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.service-choice-trigger:hover,
.service-choice-trigger:focus-visible,
.service-choice-trigger.is-selected {
  border-color: var(--fb-green);
  background: var(--fb-white);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgb(31 91 58 / 10%);
}

.service-choice-trigger:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
  filter: saturate(0.7);
}

.service-choice-dialog {
  width: min(44rem, calc(100vw - 2rem));
  max-height: min(85vh, 46rem);
  padding: 0;
  border: 0;
  border-radius: 1.2rem;
  background: transparent;
  color: var(--fb-charcoal);
}

.service-choice-dialog::backdrop {
  background: rgb(20 37 29 / 58%);
  backdrop-filter: blur(2px);
}

.service-choice-dialog__surface {
  max-height: min(85vh, 46rem);
  overflow: auto;
  padding: clamp(1.1rem, 4vw, 2rem);
  border: 1px solid var(--fb-border);
  border-radius: 1.2rem;
  background: var(--fb-cream, #f7f4ed);
  box-shadow: 0 1rem 3rem rgb(20 37 29 / 25%);
}

.service-choice-dialog__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.service-choice-dialog__header h2 {
  margin: 0.15rem 0 0;
  color: var(--fb-green);
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.service-choice-dialog__close {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--fb-border);
  border-radius: 999px;
  background: var(--fb-white);
  color: var(--fb-green);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.service-choice-dialog__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.service-choice-pill {
  min-height: 2.9rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgb(31 91 58 / 24%);
  border-radius: 999px;
  background: var(--fb-white);
  color: var(--fb-green);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.service-choice-pill:hover,
.service-choice-pill:focus-visible,
.service-choice-pill[aria-pressed="true"] {
  border-color: var(--fb-green);
  background: var(--fb-green);
  color: var(--fb-white);
  outline: none;
}

@media (min-width: 44rem) {
  .field-grid,
  .choice-row,
  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 43.99rem) {
  .service-choice-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .service-choice-dialog__surface {
    max-height: calc(100dvh - 1rem);
    border-radius: 1rem;
  }

  .service-choice-dialog__choices {
    display: grid;
    grid-template-columns: 1fr;
  }

  .service-choice-pill {
    width: 100%;
    border-radius: 0.8rem;
    text-align: left;
  }
}

/* Shared select/result hierarchy: primary option name, secondary detail/address. */
.service-choice-pill strong,
.service-choice-pill small {
  display: block;
}

.service-choice-pill small {
  margin-top: 0.28rem;
  font-size: 0.82em;
  font-weight: 600;
  line-height: 1.35;
}

.business-place-selection strong,
.business-place-selection small {
  display: block;
}

.business-place-selection small {
  margin-top: 0.22rem;
}
