/* LegalNow — inline afspraak boeken */
.booking-section {
  padding: 48px 0 72px;
  background: var(--bg-muted, #f4f5f7);
}

.appt-booking {
  background: #1c1c1e;
  border-radius: 16px;
  overflow: hidden;
  color: #f4f4f5;
  box-shadow: 0 20px 50px rgba(14, 17, 17, 0.12);
}

.appt-booking__progress {
  height: 4px;
  background: #2e2e32;
}
.appt-booking__progress-fill {
  height: 100%;
  width: 33%;
  background: var(--orange, #ff6b00);
  transition: width 0.35s ease;
}

.appt-booking__panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 420px;
}

.appt-panel {
  padding: 28px 28px 32px;
}
.appt-panel--calendar {
  border-right: 1px solid #2e2e32;
}
.appt-panel.is-hidden {
  display: none;
}

.appt-panel__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.appt-panel__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 107, 0, 0.15);
  color: var(--orange, #ff6b00);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.appt-panel__firm {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.appt-panel__sub {
  font-size: 0.8rem;
  color: #a1a1aa;
  margin-top: 2px;
}

.appt-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.appt-cal-month {
  font-size: 1rem;
  font-weight: 700;
  text-transform: capitalize;
}
.appt-cal-arrows { display: flex; gap: 8px; }
.appt-cal-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid #3f3f46;
  background: #262629;
  color: #e4e4e7;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s;
}
.appt-cal-arrow:hover {
  background: #333338;
  border-color: #52525b;
}

.appt-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #71717a;
  text-align: center;
}
.appt-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.appt-day {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  color: #a1a1aa;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: default;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.appt-day--empty { visibility: hidden; pointer-events: none; }
.appt-day--available {
  color: #e4e4e7;
  cursor: pointer;
}
.appt-day--available:hover {
  background: #2a2a2e;
}
.appt-day--selected {
  background: rgba(255, 107, 0, 0.2);
  color: #fff;
  box-shadow: inset 0 0 0 2px var(--orange, #ff6b00);
}
.appt-day--today:not(.appt-day--selected) {
  background: #262629;
}
.appt-day__dot {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange, #ff6b00);
}

.appt-times-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.appt-times-sub {
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-bottom: 24px;
}
.appt-times-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.appt-times-grid.is-empty::after {
  content: 'Geen tijden op deze datum';
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: #71717a;
  padding: 24px 0;
}
.appt-time {
  padding: 14px 12px;
  border: 1px solid #3f3f46;
  background: #262629;
  border-radius: 10px;
  color: #f4f4f5;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.appt-time:hover {
  border-color: var(--orange, #ff6b00);
  background: #2e2e32;
}
.appt-time--selected {
  border-color: var(--orange, #ff6b00);
  background: rgba(255, 107, 0, 0.15);
  color: #fff;
}

.appt-panel--form,
.appt-panel--done {
  grid-column: 1 / -1;
  border-top: 1px solid #2e2e32;
}
.appt-form-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.appt-form-sub {
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-bottom: 24px;
}
.appt-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.appt-field { display: flex; flex-direction: column; gap: 6px; }
.appt-field--full { grid-column: 1 / -1; }
.appt-field span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.appt-field input,
.appt-field textarea {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 12px 14px;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  background: #262629;
  color: #fff;
  outline: none;
}
.appt-field input:focus,
.appt-field textarea:focus {
  border-color: var(--orange, #ff6b00);
}
.appt-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}
.appt-btn {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.appt-btn--primary {
  background: var(--orange, #ff6b00);
  color: #fff;
}
.appt-btn--primary:hover { background: #e85f00; }
.appt-btn--ghost {
  background: transparent;
  color: #e4e4e7;
  border: 1px solid #3f3f46;
}
.appt-btn--ghost:hover { background: #2a2a2e; }

.appt-done {
  text-align: center;
  padding: 32px 20px;
}
.appt-done__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.15);
  color: var(--orange, #ff6b00);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.appt-done h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.appt-done p {
  color: #a1a1aa;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .appt-booking__panels {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .appt-panel--calendar {
    border-right: none;
    border-bottom: 1px solid #2e2e32;
  }
}
@media (max-width: 600px) {
  .appt-form__grid { grid-template-columns: 1fr; }
  .appt-field--full { grid-column: auto; }
}
