form {
  display: grid;
  gap: 0.9rem;
}

label,
legend {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
}

.checkbox-item input {
  width: auto;
  margin-top: 0;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
  background: #22a6de;
  color: #FFFFFF;
}

.btn-primary {
  background: #22a6de;
  color: #FFFFFF;
}

.btn-secondary {
  background: #22a6de;
  color: #FFFFFF;
}

.btn-demo {
  background: #0f3e57;
  color: #ffffff;
}

.btn-access {
  border: 1px solid rgba(34, 166, 222, 0.45);
  background: #ffffff;
  color: #0f3e57;
}

.btn-danger {
  background: #22a6de;
  color: #FFFFFF;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-cta-row .btn {
  text-align: center;
}

.feedback {
  min-height: 1.25rem;
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
}

.list-meta {
  margin: 0;
  color: #5b6770;
  font-size: 0.92rem;
}

.step-panel {
  display: grid;
  gap: 0.9rem;
}

.step-panel[hidden] {
  display: none;
}

.step-panel.is-active {
  animation: stepFadeIn 0.2s ease;
}

.stage-option[aria-pressed="true"],
.timeline-option[aria-pressed="true"] {
  outline: 2px solid rgba(34, 166, 222, 0.4);
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 10px;
  padding: 1.1rem;
}

.booking-demo-card {
  display: grid;
  gap: 1rem;
}

.booking-demo-page {
  width: min(1100px, 92%);
}

#sales-book-demo-content,
#admin-book-demo-content {
  max-width: 1100px;
  margin-inline: auto;
}

.booking-step-indicator {
  display: grid;
  gap: 0.15rem;
  border-left: 3px solid #22a6de;
  background: #f1f9fd;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.booking-step-indicator span {
  color: #5b6770;
  font-size: 0.82rem;
  font-weight: 700;
}

.booking-step-indicator strong {
  color: #0f3e57;
  font-size: 1.05rem;
}

.internal-client-type-panel {
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(34, 166, 222, 0.16);
  border-radius: 12px;
  padding: 1rem;
  background: #ffffff;
}

.internal-client-type-panel[hidden] {
  display: none;
}

.internal-client-type-panel h3 {
  margin: 0;
  color: #0f3e57;
  font-size: 1.05rem;
}

.client-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.existing-client-search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  border-top: 1px solid #eef2f7;
  padding-top: 0.85rem;
}

.existing-client-search-panel[hidden] {
  display: none;
}

.existing-client-search-panel label {
  display: grid;
  gap: 0.35rem;
}

.existing-client-results {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.55rem;
}

.existing-client-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  gap: 0.75rem;
  width: 100%;
  border: 1px solid #dbe7ee;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  cursor: pointer;
  font: inherit;
  padding: 0.75rem;
  text-align: left;
}

.existing-client-result:hover,
.existing-client-result.is-selected {
  border-color: #22a6de;
  background: #f1f9fd;
}

.existing-client-result span {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.existing-client-result strong {
  color: #111827;
}

.existing-client-result small {
  color: #64748b;
  overflow-wrap: anywhere;
}

.selected-existing-client-summary {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.2rem;
  border: 1px solid rgba(34, 166, 222, 0.22);
  border-left: 4px solid #22a6de;
  border-radius: 8px;
  background: #f1f9fd;
  color: #244f66;
  padding: 0.75rem 0.85rem;
}

.selected-existing-client-summary[hidden] {
  display: none;
}

.selected-existing-client-summary strong {
  color: #0f3e57;
}

.selected-existing-client-summary span {
  color: #111827;
  font-weight: 700;
}

.selected-existing-client-summary small {
  color: #526371;
  overflow-wrap: anywhere;
}

.booking-step {
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(34, 166, 222, 0.14);
  border-radius: 12px;
  padding: 1rem;
  background: #fbfdff;
}

.booking-step[hidden] {
  display: none;
}

.booking-step h2 {
  margin-bottom: 0;
  color: #0f3e57;
  font-size: 1.15rem;
}

.booking-step-label {
  display: none;
}

.booking-date-options {
  display: grid;
  gap: 0.8rem;
}

.booking-time-options {
  display: grid;
  gap: 0.75rem;
}

.booking-calendar {
  display: grid;
  gap: 0.55rem;
  margin-inline: auto;
  width: 100%;
}

.booking-calendar-header {
  display: grid;
  grid-template-columns: 40px max-content 40px;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
}

.booking-calendar-header h3 {
  margin: 0;
  color: #0f3e57;
  font-size: 1.16rem;
  text-align: center;
}

.calendar-nav-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(34, 166, 222, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: #0f3e57;
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 800;
}

.booking-calendar-weekdays,
.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.28rem;
}

.booking-calendar-weekdays span {
  color: #66727b;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.booking-calendar-day {
  aspect-ratio: 1;
  border: 1px solid rgba(34, 166, 222, 0.26);
  border-radius: 999px;
  background: #ffffff;
  color: #0f3e57;
  cursor: pointer;
  display: grid;
  font: inherit;
  font-weight: 700;
  min-height: 42px;
  place-items: center;
  position: relative;
}

.booking-calendar-day.is-today {
  border-color: #0f3e57;
  box-shadow: inset 0 0 0 1px rgba(15, 62, 87, 0.25);
}

.booking-calendar-day.is-partial i {
  position: absolute;
  bottom: 7px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #22a6de;
}

.booking-calendar-day.is-selected {
  border-color: #22a6de;
  background: #22a6de;
  color: #ffffff;
  box-shadow: 0 10px 22px -16px rgba(7, 89, 124, 0.8);
}

.booking-calendar-day:disabled {
  border-color: #d8e1e7;
  background: #eef3f6;
  color: #9aa5ad;
  cursor: not-allowed;
}

.booking-calendar-day.is-muted {
  opacity: 0.48;
}

.booking-calendar-day.is-unavailable {
  text-decoration: line-through;
}

.booking-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: #5b6770;
  font-size: 0.82rem;
}

.booking-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.legend-dot.is-partial {
  background: #22a6de;
}

.legend-dot.is-selected {
  background: #0f3e57;
}

.selected-date-note,
.selected-time-date {
  margin: 0;
  color: #40515d;
}

.selected-time-date {
  display: grid;
  gap: 0.15rem;
}

.selected-time-date strong {
  color: #0f3e57;
  font-size: 1.05rem;
}

.booking-time-options h3 {
  margin: 0;
  color: #0f3e57;
  font-size: 1rem;
}

.booking-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.booking-time-button {
  border: 1px solid rgba(34, 166, 222, 0.26);
  border-radius: 10px;
  background: #ffffff;
  color: #0f3e57;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 48px;
  padding: 0.75rem;
  text-align: center;
}

.booking-time-button.is-selected {
  border-color: #22a6de;
  background: #f1f9fd;
  box-shadow: 0 0 0 2px rgba(34, 166, 222, 0.15);
}

.meeting-type-options {
  display: grid;
  gap: 0.7rem;
}

.booking-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  min-height: 90px;
  padding: 0.85rem;
}

.booking-choice input {
  width: auto;
  margin-top: 0.2rem;
}

.booking-choice span {
  display: grid;
  gap: 0.2rem;
}

.booking-choice small {
  color: #5b6770;
  font-weight: 500;
}

.booking-submit-button {
  min-width: 210px;
}

.booking-step-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.booking-step-actions .btn {
  flex: 0 0 auto;
  min-height: 48px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.8rem 1.25rem;
}

.booking-prev-btn {
  background: #ffffff;
  border: 1px solid rgba(34, 166, 222, 0.45);
  color: #0f5f83;
}

.booking-prev-btn:hover:not(:disabled) {
  background: #f1f9fd;
  border-color: #22a6de;
}

.booking-prev-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.booking-next-btn {
  box-shadow: 0 12px 24px -18px rgba(7, 89, 124, 0.9);
}

.member-access-modal-card {
  display: grid;
  gap: 0.95rem;
  width: min(500px, 100%);
  border: 1px solid rgba(34, 166, 222, 0.18);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 24px 60px -34px rgba(15, 62, 87, 0.65);
}

.member-access-modal-card h2,
.member-access-modal-card p {
  margin: 0;
}

.member-access-modal-card h2 {
  color: #0f3e57;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: 0;
}

.member-access-modal-card p {
  color: #526371;
  font-size: 0.98rem;
}

.member-access-success-badge {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(34, 166, 222, 0.12);
  border: 1px solid rgba(34, 166, 222, 0.28);
  color: #1083b2;
  font-size: 1.35rem;
  font-weight: 800;
}

.member-access-warning-badge {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.32);
  color: #b45309;
  font-size: 1.35rem;
  font-weight: 800;
}

.member-access-action-line {
  border-left: 3px solid #22a6de;
  border-radius: 8px;
  background: #f1f9fd;
  color: #244f66;
  font-weight: 650;
  padding: 0.85rem 0.95rem;
}

.member-access-modal-card .btn {
  justify-self: end;
  min-width: 190px;
  padding: 0.8rem 1.15rem;
  box-shadow: 0 12px 24px -18px rgba(7, 89, 124, 0.9);
}

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

.member-access-modal-actions .btn {
  min-height: 48px;
}

.modal-close-button {
  justify-self: end;
  border: 0;
  background: transparent;
  color: #526371;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
}

.password-reset-card {
  max-width: 520px;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .booking-demo-card {
    max-width: 1000px;
    margin-inline: auto;
  }

  .booking-step {
    max-width: 900px;
    margin-inline: auto;
    padding: 1rem 1.1rem;
    width: 100%;
  }

  .booking-calendar {
    max-width: 820px;
  }

  .booking-calendar-header {
    margin-bottom: 0.15rem;
  }

  .booking-calendar-weekdays,
  .booking-calendar-grid {
    grid-template-columns: repeat(7, 96px);
    gap: 0.28rem 0.42rem;
    justify-content: center;
  }

  .booking-calendar-day {
    aspect-ratio: auto;
    width: 96px;
    height: 96px;
    min-height: 0;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .booking-demo-page {
    width: min(960px, 92%);
  }

  .booking-step {
    max-width: 780px;
    margin-inline: auto;
    width: 100%;
  }

  .booking-calendar {
    max-width: 680px;
  }

  .booking-calendar-weekdays,
  .booking-calendar-grid {
    grid-template-columns: repeat(7, 78px);
    gap: 0.26rem 0.34rem;
    justify-content: center;
  }

  .booking-calendar-day {
    aspect-ratio: auto;
    width: 78px;
    height: 78px;
    min-height: 0;
  }

  .booking-step-actions .btn {
    flex: 0 1 180px;
    min-height: 52px;
    padding-inline: 1.25rem;
  }
}

@media (max-width: 767px) {
  .grid-two {
    grid-template-columns: 1fr;
  }

  .client-type-options,
  .existing-client-search-panel,
  .existing-client-result {
    grid-template-columns: 1fr;
  }

  .member-access-modal-card .btn {
    width: 100%;
    text-align: center;
  }

  .member-access-modal-actions {
    display: grid;
  }

  .hero-cta-row {
    display: grid;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  #sales-content .cta-row {
    display: grid;
    gap: 0.875rem;
  }

  #sales-content .cta-row .btn {
    width: 100%;
    min-height: 48px;
    text-align: center;
  }

  .booking-step {
    padding: 0.85rem;
  }

  .booking-calendar-header {
    grid-template-columns: 38px 1fr 38px;
  }

  .calendar-nav-button {
    width: 38px;
    height: 38px;
  }

  .booking-calendar-grid,
  .booking-calendar-weekdays {
    gap: 0.25rem;
  }

  .booking-calendar-day {
    min-height: 36px;
  }

  .booking-time-grid {
    grid-template-columns: 1fr;
  }

  .booking-step-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.875rem;
    margin-top: 1.35rem;
  }

  .booking-time-button,
  .booking-submit-button {
    width: 100%;
  }

  .booking-step-actions .btn {
    flex: 1 1 150px;
    width: auto;
  }

  .booking-step-actions .btn,
  .booking-submit-button {
    min-height: 52px;
  }

  .member-access-modal-card {
    border-radius: 16px;
    padding: 1.35rem;
  }

  .member-access-modal-card h2 {
    font-size: 1.35rem;
  }
}
