:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  user-select: none;
}

html:has(body.is-device-preview-request) {
  scrollbar-width: none;
}

html:has(body.is-device-preview-request)::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.device-preview-toolbar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 900;
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.device-preview-trigger,
.device-preview-close {
  border: 0;
  color: #111;
  cursor: pointer;
  font: inherit;
}

.device-preview-trigger {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

.device-preview-trigger:hover,
.device-preview-trigger:focus-visible {
  outline: none;
  filter: brightness(0.94);
}

.device-preview-icon {
  display: block;
  position: relative;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.device-preview-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.device-preview-icon--mobile {
  width: 15px;
  height: 24px;
  border-radius: 5px;
}

.device-preview-icon--tablet {
  width: 21px;
  height: 28px;
  border-radius: 4px;
}

.device-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(8px);
}

.device-preview-overlay.is-hidden {
  display: none;
}

.has-device-preview-open {
  overflow: hidden;
}

.device-preview-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.device-preview-stage {
  --screen-width: 390px;
  --screen-height: 844px;
  --frame-size: 14px;
  --device-radius: 52px;
  --screen-radius: 39px;
  --device-scale: 0.82;
  --device-total-width: calc(var(--screen-width) + (var(--frame-size) * 2));
  --device-total-height: calc(var(--screen-height) + (var(--frame-size) * 2));
  position: relative;
  width: 343px;
  height: 715px;
}

.device-preview-stage.is-tablet {
  --screen-width: 768px;
  --screen-height: 1024px;
  --frame-size: 20px;
  --device-radius: 36px;
  --screen-radius: 20px;
  --device-scale: 0.72;
}

.device-preview-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--device-total-width);
  height: var(--device-total-height);
  padding: var(--frame-size);
  border-radius: var(--device-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 24%), #181818;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.28),
    inset 0 0 0 2px rgba(255, 255, 255, 0.07),
    inset 0 0 0 5px rgba(0, 0, 0, 0.18);
  transform: scale(var(--device-scale));
  transform-origin: top left;
}

.device-preview-stage.is-mobile .device-preview-frame::before,
.device-preview-stage.is-tablet .device-preview-frame::after {
  content: '';
  position: absolute;
  top: calc(var(--frame-size) / 2 - 2px);
  left: 50%;
  z-index: 3;
  width: 74px;
  height: 6px;
  border-radius: 999px;
  background: #3b3b3b;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
}

.device-preview-stage.is-mobile .device-preview-frame::after,
.device-preview-stage.is-tablet .device-preview-frame::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #242424;
  box-shadow:
    inset 0 0 0 2px #454545,
    0 0 5px rgba(70, 115, 255, 0.22);
  transform: translateX(-50%);
}

.device-preview-stage.is-tablet .device-preview-frame::before {
  left: calc(50% + 50px);
  transform: none;
}

.device-preview-stage.is-tablet .device-preview-frame::after {
  width: 74px;
  height: 6px;
}

.device-preview-stage.is-mobile .device-preview-frame::after {
  top: calc(var(--frame-size) / 2 - 2px);
  left: calc(50% + 48px);
  transform: none;
}

.device-preview-frame__screen {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--screen-radius);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.is-device-preview-request {
  padding: 0;
  gap: 0;
  align-items: stretch;
  overflow-y: auto;
  scrollbar-gutter: auto;
  scrollbar-width: none;
}

.is-device-preview-request::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.is-device-preview-request * {
  scrollbar-width: none;
}

.is-device-preview-request *::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.is-device-preview-request .page-header,
.is-device-preview-request .contact-shell {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

.is-device-preview-request .contact-shell {
  grid-template-columns: 1fr;
  padding: 1.5rem;
}

.is-device-preview-request .copy-card,
.is-device-preview-request .contact-card {
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

@media (max-width: 520px) {
  .device-preview-overlay {
    padding: 1rem;
  }
}

.page-header,
.contact-shell,
.contact-meta {
  width: min(1200px, 100%);
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.service-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 20px;
  min-width: 280px;
  min-height: 220px;
  padding: 1.5rem;
  isolation: isolate;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0.4rem 0.6rem 0.8rem 0.4rem;
  border-radius: 1.6rem;
  /*background: linear-gradient(135deg, #7b8796, #5b6675); */
  background: var(--accent);
  transform: rotate(4deg);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
  z-index: 0;
}

.service-card__badge {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 1.4rem;
  padding: 1.6rem;
  transform: rotate(-5deg);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  z-index: 1;
}

.service-card__label {
  margin: 0 0 1.2rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.75);
}

.service-card__primary {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  position: relative;
}

.service-card__primary::after {
  content: attr(data-logo-hint);
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 8px);
  background: #0f172a;
  color: #fff;
  padding: 0.5rem 0.7rem;
  border-radius: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.3;
  white-space: normal;
  width: max-content;
  max-width: 220px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.service-card__primary:hover::after {
  opacity: 1;
  transform: translate(-50%, 12px);
}

.service-card__dots {
  display: inline-flex;
  gap: 0.3rem;
}

.service-card__dots span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.25);
}

.service-card__dots span:nth-child(2) {
  background: rgba(15, 23, 42, 0.4);
}

.service-card__dots span:nth-child(3) {
  background: var(--accent);
}

.service-card__customer {
  margin: 0;
  text-transform: uppercase;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: #0c2744;
}

.service-card__partner {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.service-card__logo {
  max-width: 320px;
  max-height: 40px;
  width: 100%;
  object-fit: contain;
}

.service-card__partner-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.65);
}

.service-card__partner-logo {
  max-width: 180px;
  width: 100%;
  max-height: 38px;
  object-fit: contain;
  filter: saturate(0.65);
  /* align-items: end; */
}

.contact-shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.copy-card,
.contact-card,
.contact-meta {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.contact-card {
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-size: 1.8rem;
}

.header-text .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.header-text h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.header-text .lead {
  margin: 0.75rem 0 2rem;
  color: rgba(15, 23, 42, 0.75);
}

.editable-text {
  cursor: text;
  user-select: text;
}

.editable-text:hover {
  background: rgba(15, 23, 42, 0.06);
}

.editable-text:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
  background: rgba(15, 23, 42, 0.08);
}

.editable-text.is-saving {
  opacity: 0.7;
}

.editable-text.is-error {
  outline: 2px solid #ef4444;
  outline-offset: 4px;
  background: rgba(239, 68, 68, 0.12);
}

.copy-card h2 {
  margin: 0 0 1rem;
  font-size: 1.8rem;
}

.copy-card__backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

.copy-card__backlink:hover {
  text-decoration: underline;
}

.copy-card p {
  margin: 0 0 0.9rem;
  color: rgba(15, 23, 42, 0.8);
}

.copy-cta {
  font-weight: 600;
  color: var(--accent);
}

.demo-editor {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}

.demo-editor h2 {
  margin: 0 0 0.6rem;
}

.demo-editor__hint {
  margin: 0 0 1.2rem;
  color: rgba(15, 23, 42, 0.7);
}

.demo-editor__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.demo-editor__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
}

.demo-editor label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.demo-editor input[type='text'],
.demo-editor input[type='color'],
.demo-editor select,
.demo-editor textarea {
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: rgba(15, 23, 42, 0.02);
  user-select: text;
}

.demo-editor input[type='color'] {
  padding: 0.3rem;
  height: 44px;
}

.demo-editor__group {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 0.6rem;
}

.demo-editor__group > p {
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.demo-editor__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.demo-editor__options--plain {
  gap: 0.8rem;
}

.option-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.option-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-weight: 600;
}

.option-chip[hidden] {
  display: none !important;
}

.demo-editor button {
  align-self: flex-start;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.demo-editor button.secondary {
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.9);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field.is-hidden {
  display: none;
}

.range-display {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.7);
}

.label-with-info {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.info-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.75);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: help;
  border: none;
  padding: 0;
}

.info-popover {
  position: absolute;
  top: 140%;
  left: 0;
  z-index: 10;
  min-width: 220px;
  max-width: 320px;
  padding: 0.65rem 0.8rem;
  border-radius: 0.75rem;
  background: #fff;
  color: rgba(15, 23, 42, 0.85);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: none;
}

.info-popover.is-open {
  display: block;
}

.form-field label {
  font-weight: 600;
}

.field-label {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

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

.radio-group {
  border: none;
  padding: 0;
  margin: 0 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.radio-group legend {
  width: 100%;
  margin-bottom: 0.2rem;
}

.checkbox-group {
  border: none;
  padding: 0;
  margin: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-group legend {
  margin-bottom: 0.2rem;
}

.availability-grid {
  border: none;
  padding: 0;
  margin: 0 0 0.5rem;
}

.availability-grid legend {
  margin-bottom: 0.55rem;
}

.availability-grid__scroller {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.02);
}

.availability-grid__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.availability-grid__table th,
.availability-grid__table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.availability-grid__table th:last-child,
.availability-grid__table td:last-child {
  border-right: none;
}

.availability-grid__table tbody tr:last-child th,
.availability-grid__table tbody tr:last-child td {
  border-bottom: none;
}

.availability-grid__table thead th {
  background: rgba(15, 23, 42, 0.05);
  color: rgba(15, 23, 42, 0.72);
  font-weight: 700;
  white-space: nowrap;
}

.availability-grid__corner,
.availability-grid__table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
}

.availability-grid__corner {
  z-index: 3;
}

.availability-grid__table tbody th {
  font-weight: 700;
  background: #fff;
}

.availability-cell {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  cursor: pointer;
}

.availability-day-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 28px;
  cursor: pointer;
}

.availability-day-heading__short {
  display: none;
}

.availability-cell input[type='checkbox'],
.availability-day-heading input[type='checkbox'] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.35);
  background: #fff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.availability-cell input[type='checkbox']::before,
.availability-day-heading input[type='checkbox']::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 44% 100%, 100% 20%, 80% 0, 40% 62%);
  transform: scale(0);
  transition: transform 0.12s ease;
}

.availability-cell input[type='checkbox']:checked,
.availability-cell input[type='checkbox']:indeterminate,
.availability-day-heading input[type='checkbox']:checked,
.availability-day-heading input[type='checkbox']:indeterminate {
  background: var(--accent);
  border-color: var(--accent);
}

.availability-cell input[type='checkbox']:checked::before,
.availability-cell input[type='checkbox']:indeterminate::before,
.availability-day-heading input[type='checkbox']:checked::before,
.availability-day-heading input[type='checkbox']:indeterminate::before {
  transform: scale(1);
}

.availability-cell input[type='checkbox']:focus-visible,
.availability-day-heading input[type='checkbox']:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(19, 97, 255, 0.2);
}

.radio-option,
.checkbox-option {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-weight: 500;
}

.radio-option {
  font-size: 0.95rem;
}

.checkbox-option {
  font-size: 0.85rem;
  margin-top: 1.2rem;
}

.checkbox-option span {
  line-height: 1.4;
}

.form-field input[type='radio'] {
  accent-color: var(--accent);
}

.checkbox-option input[type='checkbox'] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.35);
  background: #fff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  margin-top: 0.1rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkbox-option input[type='checkbox']::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 44% 100%, 100% 20%, 80% 0, 40% 62%);
  transform: scale(0);
  transition: transform 0.12s ease;
}

.checkbox-option input[type='checkbox']:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-option input[type='checkbox']:checked::before {
  transform: scale(1);
}

.checkbox-option input[type='checkbox']:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(19, 97, 255, 0.2);
}


.form-field input[type='text'],
.form-field input[type='email'],
.form-field input[type='tel'],
.form-field input[type='number'],
.form-field input[type='range'],
.form-field input[type='date'],
.form-field textarea,
.form-field select {
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  font: inherit;
  background: rgba(15, 23, 42, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field select {
  /* hide native arrow so we can shift a custom one */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
  padding-right: 2.6rem;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(19, 97, 255, 0.15);
}

/* Range slider styling */
.form-field input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  padding: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
}

.form-field input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.form-field input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.form-field input[type='range']::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
}

.contact-form button {
  border: none;
  border-radius: 10px;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.submit-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form .submit-button:disabled {
  background: rgba(15, 23, 42, 0.35);
  color: rgba(255, 255, 255, 0.85);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.submission-status {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.7);
}

.contact-form.is-submitting .submission-status {
  display: flex;
}

.submission-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.submission-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-120%);
  animation: submission-flow 1.1s linear infinite;
}

@keyframes submission-flow {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

.thankyou-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.thankyou-body {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(15, 23, 42, 0.8);
}

.thankyou-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.thankyou-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 0.8rem;
  padding: 0.85rem 1.3rem;
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thankyou-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.18);
}

.response {
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}

.form-errors {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: #7f1d1d;
}

.form-errors li {
  margin: 0.1rem 0;
}

.response-success {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.3);
}

.response-error {
  background: rgba(239, 68, 68, 0.12);
  color: #7f1d1d;
  border-color: rgba(239, 68, 68, 0.3);
}

.field-helper {
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.6);
}

.form-alert {
  background: rgba(249, 115, 22, 0.12);
  border-left: 4px solid rgba(249, 115, 22, 0.8);
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  color: #7c2d12;
  font-weight: 600;
}

.form-note {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  color: rgba(15, 23, 42, 0.9);
  margin: 0;
}

.form-disclaimer {
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.8);
  margin: 0.6rem 0 0;
}

.form-disclaimer a {
  color: var(--accent);
  font-weight: 600;
}

.form-disclaimer a:hover {
  text-decoration: underline;
}

.form-picker-intro h2 {
  margin: 0 0 0.8rem;
}

.form-picker-intro p {
  margin: 0;
  color: rgba(15, 23, 42, 0.75);
}

.form-picker-content {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 1.5rem;
}

.form-picker {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-picker-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
}

.form-picker-button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  width: fit-content;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease,
    color 0.2s ease;
  align-self: flex-start;
  text-align: left;
}

.form-picker-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.form-picker--thrown .form-picker-buttons {
  gap: 0.4rem;
  position: relative;
  padding: 0.5rem 0;
}

.form-picker--thrown .form-picker-button {
  --thrown-rot: -6deg;
  transform: rotate(var(--thrown-rot));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.form-picker--thrown .form-picker-button:nth-child(even) {
  align-self: flex-end;
  --thrown-rot: 5deg;
}

.form-picker--thrown .form-picker-button:first-child {
  margin-left: 4rem;
}

.form-picker--thrown .form-picker-button:nth-child(3n) {
  --thrown-rot: -3deg;
}

.form-picker--thrown .form-picker-button:nth-child(4n) {
  --thrown-rot: -7deg;
  margin-right: 3rem;
}

.form-picker--thrown .form-picker-button + .form-picker-button {
  margin-top: -0.8rem;
}

.form-picker--thrown .form-picker-button:hover {
  transform: translateY(-2px) rotate(calc(var(--thrown-rot) + 2deg));
  box-shadow: 0 18px 26px rgba(15, 23, 42, 0.25);
}

.form-picker--stacked .form-picker-buttons {
  gap: 0.75rem;
}

.form-picker--stacked .form-picker-button {
  width: 100%;
  align-self: stretch;
  text-align: center;
  transform: none;
  margin: 0;
}

.form-picker--stacked .form-picker-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.2);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.modal-dialog {
  background: #fff;
  border-radius: 1rem;
  max-width: 75vw;
  width: min(75vw, 100%);
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.modal-overlay[data-hint-popup] {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.modal-overlay[data-hint-popup] .modal-dialog {
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s ease, opacity 0.18s ease;
  opacity: 0;
}

.modal-overlay[data-hint-popup].is-open {
  opacity: 1;
}

.modal-overlay[data-hint-popup].is-open .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-overlay[data-hint-popup].is-closing {
  opacity: 0;
}

.modal-overlay[data-hint-popup].is-closing .modal-dialog {
  transform: translateY(8px) scale(0.98);
  opacity: 0;
}

.modal-overlay.confirm-modal .modal-dialog {
  max-width: 420px;
  width: min(420px, 100%);
}

.modal-overlay[data-hint-popup] .modal-dialog {
  max-width: 680px;
  width: min(680px, 100%);
}

.modal-dialog h3 {
  margin: 0 0 0.5rem;
}

.modal-intro {
  margin: 0 0 1rem;
  color: rgba(15, 23, 42, 0.7);
  white-space: pre-line;
}

.modal-scroll {
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.modal-review {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.5rem;
  margin: 0 0 1.25rem;
}

.modal-review dt {
  font-weight: 600;
}

.modal-review dd {
  margin: 0;
  color: rgba(15, 23, 42, 0.85);
}

.modal-warning {
  margin: 0.5rem 0 0;
  color: var(--accent);
  font-weight: 600;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.modal-button {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.modal-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.modal-button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.modal-button.secondary {
  background: rgba(15, 23, 42, 0.04);
}

.form-picker--grid .form-picker-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1rem;
}

.form-picker--grid .form-picker-button {
  width: 100%;
  align-self: stretch;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: none;
  margin: 0;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.form-picker--grid .form-picker-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
}

.form-picker--grid .form-picker-button:focus-visible {
  outline: 3px solid rgba(15, 23, 42, 0.18);
  outline-offset: 3px;
}

.form-hint {
  margin: 1rem 0 0;
  color: rgba(15, 23, 42, 0.7);
}

.selection-error {
  color: #b91c1c;
  font-weight: 600;
}

.page-bottom {
  width: min(1200px, 100%);
  margin-top: auto;
  padding-bottom: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact-meta,
.page-footer {
  margin: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.contact-meta p,
.page-footer p {
  margin: 0;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.contact-meta .meta-label,
.page-footer .meta-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: rgba(15, 23, 42, 0.6);
}

.contact-meta a,
.page-footer a {
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
}

.contact-meta a.active,
.page-footer a.active {
  text-decoration: underline;
}

.page-footer {
  width: auto;
}

.page-footer .export-button {
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  background: none;
  color: var(--accent);
  cursor: pointer;
}

.page-footer .export-button.gray {
  color: var(--text-color);
}

.page-footer .export-button:hover {
  text-decoration: underline;
}

.modal-overlay.is-hidden {
  display: none;
}

.segment-page {
  min-height: 100vh;
  justify-content: center;
  background: #f6f7f7;
  color: #0f172a;
}

.segment-shell {
  width: min(980px, 100%);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.segment-intro {
  max-width: 680px;
}

.segment-eyebrow {
  margin: 0 0 0.65rem;
  color: #788793;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.segment-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.segment-intro p:last-child {
  margin: 0.9rem 0 0;
  color: rgba(15, 23, 42, 0.7);
  font-size: 1.05rem;
}

.segment-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.segment-tile {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--tile-color);
  color: #fff;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.segment-tile:hover {
  transform: translateY(-4px);
  filter: brightness(0.98);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

.segment-tile:focus-visible {
  outline: 4px solid rgba(15, 23, 42, 0.18);
  outline-offset: 5px;
}

.segment-tile__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.9;
}

.segment-tile strong {
  display: block;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .availability-grid__table {
    font-size: 0.72rem;
  }

  .availability-day-heading {
    flex-direction: column;
    gap: 0.2rem;
  }

  .availability-day-heading__full {
    display: none;
  }

  .availability-day-heading__short {
    display: inline;
  }

  .form-picker--grid .form-picker-buttons {
    grid-template-columns: 1fr;
  }

  .page-header,
  .contact-card,
  .copy-card {
    padding: 1.5rem;
  }

  .service-card {
    min-height: 180px;
    padding: 1rem;
  }

  .service-card__badge {
    padding: 1.3rem;
    transform: rotate(-3deg);
  }

  .page-bottom {
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 0;
  }

  .segment-grid {
    grid-template-columns: 1fr;
  }

  .segment-tile {
    min-height: 230px;
    padding: 1.5rem;
  }
}
