:root {
  --rav-bg: #0d1117;
  --rav-bg-accent: #161b22;
  --rav-panel: #ffffff;
  --rav-text: #f7fafc;
  --rav-text-dark: #111827;
  --rav-muted: #64748b;
  --rav-red: #d62839;
  --rav-red-dark: #9f1d2a;
  --rav-border: rgba(15, 23, 42, 0.08);
  --rav-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  --rav-radius: 24px;
  --rav-font: "Bahnschrift", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--rav-font);
  color: var(--rav-text);
  background:
    radial-gradient(circle at top left, rgba(214, 40, 57, 0.25), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.06), transparent 24%),
    linear-gradient(135deg, #090b10 0%, #121723 48%, #191f2b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.45;
}

a {
  color: inherit;
}

.rav-shell {
  position: relative;
  z-index: 1;
  padding: 32px 18px 56px;
}

.rav-shell--narrow {
  max-width: 760px;
  margin: 0 auto;
}

.rav-hero {
  display: grid;
  gap: 28px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
}

.rav-hero__content {
  max-width: 760px;
  padding: 24px 10px 0;
}

.rav-eyebrow {
  margin: 0 0 12px;
  color: #ff9fa9;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rav-hero h1,
.rav-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.rav-card h2 {
  margin: 0 0 8px;
  color: var(--rav-text-dark);
  font-size: 1.55rem;
}

.rav-lead {
  max-width: 60ch;
  margin: 0 0 20px;
  color: rgba(247, 250, 252, 0.86);
  font-size: 1.05rem;
  line-height: 1.7;
}

.rav-feature-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.rav-feature-list li {
  position: relative;
  padding-left: 24px;
  color: rgba(247, 250, 252, 0.9);
}

.rav-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rav-red);
  box-shadow: 0 0 0 6px rgba(214, 40, 57, 0.15);
}

.rav-card {
  background: rgba(255, 255, 255, 0.98);
  color: var(--rav-text-dark);
  border-radius: var(--rav-radius);
  box-shadow: var(--rav-shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.rav-card--form,
.rav-card--message {
  padding: 24px;
}

.rav-card--form {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  justify-self: stretch;
}

.rav-card--error {
  border-top: 6px solid var(--rav-red);
}

.rav-card__header {
  margin-bottom: 24px;
}

.rav-card__header p {
  margin: 0;
  color: var(--rav-muted);
}

.rav-form-kicker {
  margin: 0 0 8px;
  color: var(--rav-red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rav-step-indicator {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}

.rav-step-indicator li {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--rav-text-dark);
  font-weight: 700;
  white-space: nowrap;
}

.rav-step-indicator span,
.rav-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(214, 40, 57, 0.12);
  color: var(--rav-red-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.rav-request-banner,
.rav-request-summary__notice {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(214, 40, 57, 0.08) 0%, rgba(17, 24, 39, 0.03) 100%);
  border: 1px solid rgba(214, 40, 57, 0.16);
}

.rav-request-banner {
  margin-bottom: 20px;
}

.rav-request-banner p,
.rav-request-summary__notice p {
  margin: 0;
  color: var(--rav-muted);
}

.rav-form {
  display: grid;
  gap: 18px;
}

.rav-form-layout {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.rav-form-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.rav-form-section,
.rav-request-summary {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
}

.rav-form-section__header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.rav-form-section__header--compact h3,
.rav-form-section__header h3,
.rav-request-summary__header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.rav-form-section__header p,
.rav-request-summary__header p {
  margin: 4px 0 0;
  color: var(--rav-muted);
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: normal;
}

.rav-step-panels {
  display: grid;
  gap: 16px;
}

.rav-grid {
  display: grid;
  gap: 16px;
}

.rav-field {
  display: grid;
  gap: 8px;
}

.rav-field span,
.rav-checkbox span {
  font-weight: 700;
}

.rav-field-hint {
  color: var(--rav-muted);
  font-size: 0.88rem;
}

.rav-field input,
.rav-field select,
.rav-field textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: #f8fafc;
  padding: 15px 16px;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rav-field input:focus,
.rav-field select:focus,
.rav-field textarea:focus {
  outline: none;
  border-color: rgba(214, 40, 57, 0.55);
  box-shadow: 0 0 0 4px rgba(214, 40, 57, 0.12);
  background: #ffffff;
}

.rav-field--full {
  grid-column: 1 / -1;
}

.rav-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--rav-text-dark);
}

.rav-checkbox input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

.rav-form-note {
  margin: 0;
  color: var(--rav-muted);
  font-size: 0.94rem;
}

.rav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rav-button:hover {
  transform: translateY(-1px);
}

.rav-button--primary {
  background: linear-gradient(135deg, var(--rav-red) 0%, #ff5b69 100%);
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(214, 40, 57, 0.3);
}

.rav-button--secondary {
  background: #111827;
  color: #ffffff;
}

.rav-error {
  color: var(--rav-red-dark);
  font-size: 0.9rem;
}

.rav-summary-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.rav-summary-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.rav-summary-list dt {
  font-size: 0.85rem;
  color: var(--rav-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rav-summary-list dd {
  margin: 0;
  font-weight: 700;
}

.rav-contact-block {
  margin: 26px 0;
  padding: 18px;
  background: #f8fafc;
  border-radius: 18px;
  line-height: 1.7;
}

.rav-flash {
  position: relative;
  z-index: 2;
  padding: 16px 18px 0;
}

.rav-flash__inner {
  max-width: 1240px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 700;
}

.rav-flash--success .rav-flash__inner {
  background: rgba(34, 197, 94, 0.18);
  color: #d1fae5;
}

.rav-flash--error .rav-flash__inner {
  background: rgba(214, 40, 57, 0.18);
  color: #ffe1e4;
}

.rav-availability-section {
  gap: 16px;
}

.rav-form-section--calendar .rav-calendar,
.rav-form-section--time .rav-time-panel {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.rav-calendar {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.rav-calendar__toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.rav-calendar__title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
}

.rav-calendar__nav {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 999px;
  background: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rav-calendar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--rav-muted);
}

.rav-calendar__legend span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.rav-calendar__legend i {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.rav-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(44px, 1fr));
  gap: 8px;
  color: var(--rav-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rav-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(44px, 1fr));
  gap: 8px;
}

.rav-calendar-day {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 72px;
  padding: 10px 8px;
  align-content: start;
  justify-items: start;
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rav-calendar-day strong {
  font-size: 1rem;
  line-height: 1;
}

.rav-calendar-day span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.rav-calendar-day:not(:disabled) {
  cursor: pointer;
}

.rav-calendar-day:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.rav-calendar-day.is-selected {
  border-color: #111827;
  outline: 3px solid #111827;
  outline-offset: 1px;
  box-shadow: 0 0 0 5px rgba(17, 24, 39, 0.16);
}

.rav-calendar-day:disabled,
.rav-calendar-day.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
  filter: saturate(0.75);
  transform: none;
  box-shadow: none;
}

.rav-calendar-day--spacer {
  visibility: hidden;
}

.rav-day-green {
  background: #dcfce7;
  border-color: #16a34a;
  color: #166534;
}

.rav-day-orange {
  background: #ffedd5;
  border-color: #f97316;
  color: #c2410c;
}

.rav-day-red {
  background: #fee2e2;
  border-color: #dc2626;
  color: #b91c1c;
}

.rav-day-grey {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #475569;
}

.rav-time-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.rav-selection-summary {
  font-weight: 800;
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: normal;
}

.rav-selection-summary--error {
  color: var(--rav-red-dark);
}

.rav-calendar-feedback {
  min-height: 1.3em;
  font-size: 0.92rem;
  color: var(--rav-muted);
}

.rav-calendar-feedback span {
  display: block;
}

.rav-calendar-feedback--error {
  color: var(--rav-red-dark);
  font-weight: 700;
}

.rav-time-panel__helper,
.rav-time-blocks__message,
.rav-calendar__loading {
  color: var(--rav-muted);
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: normal;
}

.rav-calendar__loading,
.rav-time-blocks__message {
  grid-column: 1 / -1;
  margin: 0;
}

.rav-time-blocks__message--error,
.rav-calendar__loading--error {
  color: var(--rav-red-dark);
}

.rav-time-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  min-width: 0;
}

.rav-time-block {
  display: grid;
  gap: 6px;
  min-height: 64px;
  min-width: 0;
  padding: 14px;
  border: 2px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  background: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  align-content: start;
  overflow: hidden;
}

.rav-time-block strong {
  font-size: 1rem;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.rav-time-block span {
  font-size: 0.82rem;
  color: var(--rav-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  overflow-wrap: normal;
}

.rav-time-block--available {
  background: #f0fdf4;
}

.rav-time-block--limited {
  background: #fff7ed;
}

.rav-time-block--full,
.rav-time-block--unavailable,
.rav-time-block--legacy {
  background: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.72;
}

.rav-time-block-selected {
  border-color: #111827;
  outline: 2px solid #111827;
  outline-offset: 1px;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.14);
}

.rav-request-summary {
  align-self: start;
  width: 100%;
}

.rav-request-summary__list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.rav-request-summary__list div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.rav-request-summary__list dt {
  color: var(--rav-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rav-request-summary__list dd {
  margin: 0;
  font-weight: 800;
  word-break: normal;
  overflow-wrap: normal;
}

@media (min-width: 760px) {
  .rav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .rav-shell {
    padding: 48px 28px 72px;
  }

  .rav-hero {
    max-width: 1360px;
    gap: 32px;
  }

  .rav-card--form,
  .rav-card--message {
    padding: 36px;
  }

  .rav-form-layout {
    grid-template-columns: minmax(0, 1fr) clamp(280px, 28vw, 336px);
    align-items: start;
    gap: 28px;
  }

  .rav-request-summary {
    position: sticky;
    top: 24px;
    width: clamp(280px, 28vw, 336px);
    justify-self: end;
  }
}

@media (max-width: 639px) {
  .rav-card--form,
  .rav-card--message {
    padding: 20px;
  }

  .rav-form-section,
  .rav-request-summary {
    padding: 16px;
  }

  .rav-step-indicator li {
    width: 100%;
  }

  .rav-calendar {
    gap: 12px;
  }

  .rav-calendar__toolbar {
    gap: 8px;
  }

  .rav-calendar__title {
    font-size: 1rem;
  }

  .rav-calendar__nav {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .rav-calendar__legend {
    gap: 8px 10px;
    font-size: 0.82rem;
  }

  .rav-calendar__weekdays {
    gap: 4px;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
  }

  .rav-calendar-grid {
    gap: 4px;
  }

  .rav-calendar-day {
    min-height: 56px;
    padding: 8px 6px;
    border-radius: 14px;
  }

  .rav-calendar-day strong {
    font-size: 0.88rem;
  }

  .rav-calendar-day span {
    font-size: 0.64rem;
  }

  .rav-time-blocks {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  }
}