/* Prenotazione Page */
.booking-wrapper { align-items: stretch; }

.booking-form-shell { background-color: var(--bs-white); border-radius: 18px; box-shadow: 0 12px 40px rgba(0,0,0,0.08); padding: 2.75rem; position: relative; overflow: visible; }

.booking-stepper { margin-bottom: 2rem; }

.booking-step-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }

.booking-step-item { display: flex; align-items: center; gap: 0.75rem; color: #a0a4ab; font-weight: 600; transition: color 0.3s ease; }

.booking-step-item .step-index { width: 36px; height: 36px; border-radius: 50%; background: #e9edf5; display: flex; align-items: center; justify-content: center; font-weight: 700; }

.booking-step-item.is-active { color: var(--bs-accent); }
.booking-step-item.is-active .step-index { background: linear-gradient(135deg, var(--bs-accent), #0a6dc2); color: var(--bs-white); box-shadow: 0 6px 15px rgba(10, 109, 194, 0.25); }

.booking-form { display: flex; flex-direction: column; gap: 2.5rem; }
.booking-form .form-label { font-weight: 600; color: #1f2933; }
.booking-form .form-control { border: 1px solid #d9dce3; padding: 0.85rem 1.1rem; border-radius: 12px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.booking-form .form-control:focus { border-color: var(--bs-accent); box-shadow: 0 0 0 0.25rem rgba(var(--bs-accent-rgb), 0.20); }

.form-step { display: none; animation: fadeInUp 0.35s ease; }
.form-step.is-active { display: block; }

.form-step-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.25rem; }
.form-step-subtitle { color: #6c757d; margin-bottom: 1.75rem; }

.step-actions { display: flex; gap: 1rem; margin-top: 2rem; }
.step-actions .btn { min-height: 52px; font-weight: 600; }

.appointment-type-options.card-style {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}
.appointment-type-options .form-check {
  padding: 0;
}
.appointment-type-options .form-check-input { display: none; }
.appointment-type-options .form-check-label {
  border: 1px solid #d9dce3;
  border-radius: 18px;
  padding: 0.95rem 1.1rem;
  text-align: center;
  font-weight: 600;
  background: #fff;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 60px;
  color: #1f2933;
  box-shadow: inset 0 -3px 0 rgba(15, 23, 42, 0.05);
}
.appointment-type-options .form-check-label:hover,
.appointment-type-options .form-check-label:focus-visible {
  border-color: var(--bs-accent);
  box-shadow: 0 12px 24px rgba(13, 191, 116, 0.18);
  transform: translateY(-1px);
}
.appointment-type-options .form-check-input:checked + .form-check-label {
  background: linear-gradient(135deg, #0dbf74, #0a6dc2);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 32px rgba(13, 191, 116, 0.28);
}
.appointment-type-options .form-check-input:focus-visible + .form-check-label {
  outline: 3px solid rgba(13, 191, 116, 0.4);
  outline-offset: 2px;
}

.time-slot-grid { display: none; }

.booking-summary-card { background: linear-gradient(180deg, #f8fbff 0%, #ffffff 70%); border-radius: 20px; padding: 2.25rem; box-shadow: 0 15px 45px rgba(15, 23, 42, 0.08); position: sticky; top: 120px; display: flex; flex-direction: column; gap: 1.75rem; }

.summary-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.summary-section { border-top: 1px solid rgba(15, 23, 42, 0.08); padding-top: 1.25rem; }
.summary-section:first-of-type { border-top: 0; padding-top: 0; }
.summary-heading { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bs-accent); margin-bottom: 0.85rem; }
.summary-list { margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.summary-item { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.95rem; }
.summary-item dt { color: #6c7682; font-weight: 600; }
.summary-item dd { margin: 0; font-weight: 600; color: #1f2933; text-align: right; }
.summary-tip { background: rgba(0, 123, 255, 0.08); border-radius: 14px; padding: 1rem 1.25rem; font-size: 0.9rem; color: #0a4883; }

.service-summary { display: grid; gap: 0.75rem; }
.service-summary .service-placeholder { margin: 0; color: #8091a7; font-weight: 500; }
.service-summary .service-name { font-size: 1.05rem; font-weight: 700; }
.service-summary .service-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.85rem; color: #52616f; }
.service-summary .service-meta span { display: inline-flex; align-items: center; gap: 0.3rem; background: rgba(0, 123, 255, 0.08); border-radius: 999px; padding: 0.35rem 0.75rem; }
.service-summary .service-description { margin: 0; color: #48505a; font-size: 0.92rem; line-height: 1.5; }

.confirmation-summary { display: grid; gap: 0.9rem; font-size: 0.95rem; }
.confirmation-summary h6 { font-weight: 700; margin: 0; }
.confirmation-summary p { margin: 0; color: #4a5568; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1199px) {
  .booking-summary-card { position: static; }
}

@media (max-width: 992px) {
  .booking-form-shell { padding: 2rem; }
  .booking-step-list { gap: 1rem; }
  .summary-item { font-size: 0.9rem; }
}

@media (max-width: 768px) {
  .booking-form-shell { padding: 1.75rem; }
  .booking-form { gap: 2rem; }
  .form-step-title { font-size: 1.2rem; }
  .summary-title { font-size: 1.25rem; }
  .booking-summary-card { padding: 1.75rem; margin-top: 1rem; }
  .appointment-type-options.card-style { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; }
}

@media (max-width: 576px) {
  .booking-form-shell { padding: 1.5rem; border-radius: 16px; }
  .booking-step-list { flex-direction: column; gap: 0.75rem; }
  .booking-step-item .step-index { width: 32px; height: 32px; font-size: 0.95rem; }
  .step-actions { flex-direction: column; }
  .time-slot-grid { gap: 0.5rem; }
  .time-slot-grid .time-slot { flex: 1 0 calc(50% - 0.5rem); text-align: center; }
  .booking-summary-card { border-radius: 16px; }
  .appointment-type-options.card-style { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.6rem; }
}
