.rh-fcb-page {
  position: relative;
  box-sizing: border-box;
  --fcb-copper: #002848;
  --fcb-copper-dark: #163e5c;
  --fcb-gold: #f3ab39;
  --fcb-ink: #10293e;
  --fcb-canvas: #f6f8fa;
  --fcb-paper: #ffffff;
  --fcb-line: #b9c6d2;
  background: var(--fcb-canvas);
  color: var(--fcb-ink);
  min-height: calc(100vh - 150px);
  padding: clamp(28px, 5vw, 64px) 20px;
}

.rh-fcb-shell {
  margin: 0 auto;
  max-width: 1180px;
}

.rh-fcb-heading {
  margin: 0 auto 28px;
  max-width: 760px;
  text-align: center;
}

.rh-fcb-kicker {
  color: var(--fcb-copper-dark);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.rh-fcb-heading h2 {
  color: var(--fcb-ink);
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0 0 12px;
}

.rh-fcb-heading > p:last-child {
  font-size: 1.15rem;
  line-height: 1.65;
  margin: 0;
}

.rh-fcb-calendar {
  align-items: stretch;
  background: var(--fcb-paper);
  border: 1px solid rgba(113, 48, 23, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(75, 42, 28, 0.12);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  overflow: hidden;
}

.rh-fcb-picker,
.rh-fcb-form {
  padding: clamp(24px, 4vw, 44px);
}

.rh-fcb-picker {
  border-inline-end: 1px solid rgba(113, 48, 23, 0.16);
}

.rh-fcb-picker h2,
.rh-fcb-form h2 {
  color: var(--fcb-copper-dark);
  font-size: 1.35rem;
  margin: 0 0 16px;
}

.rh-fcb-picker h2:not(:first-child) {
  margin-top: 30px;
}

.rh-fcb-date-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 178px;
  overflow: auto;
  padding: 2px;
}

.rh-fcb-page button.rh-fcb-date,
.rh-fcb-slot span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--fcb-line);
  border-radius: 6px;
  color: var(--fcb-ink);
  display: flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 9px 10px;
  text-align: center;
}

.rh-fcb-date {
  cursor: pointer;
}

.rh-fcb-page button.rh-fcb-date:hover,
.rh-fcb-page button.rh-fcb-date.is-selected,
.rh-fcb-page button.rh-fcb-date[aria-pressed="true"] {
  background: var(--fcb-copper-dark);
  border-color: var(--fcb-copper-dark);
  color: #fff;
}

.rh-fcb-slots {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 104px;
}

.rh-fcb-slot {
  cursor: pointer;
  display: block;
  margin: 0;
  position: relative;
}

.rh-fcb-slot input {
  inset: 50% auto auto 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.rh-fcb-slot input:checked + span {
  background: var(--fcb-copper);
  border-color: var(--fcb-copper);
  color: #fff;
}

.rh-fcb-date:focus-visible,
.rh-fcb-slot input:focus-visible + span,
.rh-fcb-field input:focus-visible,
.rh-fcb-consent input:focus-visible,
.rh-fcb-submit:focus-visible {
  outline: 3px solid #1f5f78;
  outline-offset: 3px;
}

.rh-fcb-form {
  background: #e9f0f6;
  display: flex;
  flex-direction: column;
}

.rh-fcb-field {
  display: grid;
  font-weight: 700;
  gap: 6px;
  margin-bottom: 14px;
}

.rh-fcb-field small {
  font-size: 0.8rem;
  font-weight: 500;
}

.rh-fcb-field input {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #708498;
  border-radius: 5px;
  color: var(--fcb-ink);
  font: inherit;
  min-height: 48px;
  padding: 9px 12px;
  width: 100%;
}

.rh-fcb-consent {
  align-items: flex-start;
  display: grid;
  gap: 9px;
  grid-template-columns: 20px minmax(0, 1fr);
  line-height: 1.5;
  margin: 6px 0 18px;
}

.rh-fcb-consent input {
  height: 19px;
  margin-top: 3px;
  width: 19px;
}

.rh-fcb-consent a {
  color: var(--fcb-copper-dark);
  font-weight: 800;
  text-decoration: underline;
}

.rh-fcb-page button.rh-fcb-submit {
  background: var(--fcb-copper-dark);
  border: 2px solid var(--fcb-copper-dark);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  min-height: 52px;
  padding: 10px 18px;
  width: 100%;
}

.rh-fcb-page button.rh-fcb-submit:hover {
  background: var(--fcb-copper);
  border-color: var(--fcb-copper);
}

.rh-fcb-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.rh-fcb-form-status {
  font-weight: 700;
  line-height: 1.5;
  margin: 14px 0 0;
  min-height: 24px;
}

.rh-fcb-form-status[data-status="error"] {
  color: #8a1919;
}

.rh-fcb-form-status[data-status="success"] {
  color: #1e6337;
}

.rh-fcb-empty,
.rh-fcb-no-slots {
  background: var(--fcb-paper);
  border: 1px solid var(--fcb-line);
  border-radius: 6px;
  margin: 0;
  padding: 20px;
  text-align: center;
}

.rh-fcb-honeypot {
  height: 1px;
  inset-inline-start: 0;
  clip-path: inset(50%);
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

@media (max-width: 900px) {
  .rh-fcb-calendar {
    grid-template-columns: 1fr;
  }

  .rh-fcb-picker {
    border-block-end: 1px solid rgba(113, 48, 23, 0.16);
    border-inline-end: 0;
  }

  .rh-fcb-date-list {
    grid-template-columns: repeat(4, minmax(132px, 1fr));
    max-height: none;
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .rh-fcb-page {
    min-height: 0;
    padding: 24px 12px 36px;
  }

  .rh-fcb-heading {
    margin-bottom: 20px;
  }

  .rh-fcb-heading h2 {
    font-size: 1.75rem;
  }

  .rh-fcb-picker,
  .rh-fcb-form {
    padding: 22px 16px;
  }

  .rh-fcb-date-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 178px;
    overflow-y: auto;
  }

  .rh-fcb-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rh-fcb-page * { letter-spacing: 0; }
.rh-fcb-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rh-fcb-field input::placeholder { color: #54677c; opacity: 1; text-align: right; }
.rh-fcb-slot input:checked + span { background: var(--fcb-copper-dark); }

@media (prefers-reduced-motion: reduce) {
  .rh-fcb-page *,
  .rh-fcb-page *::before,
  .rh-fcb-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


.rh-fcb-field > span { display: block; font-weight: 700; margin-block-end: 5px; }
.rh-fcb-page :is(button, input):focus-visible { outline: 3px solid #163e5c; outline-offset: 3px; }
.rh-fcb-date, .rh-fcb-submit, .rh-fcb-slot-label { min-height: 44px; }
