/* Portale prenotazioni — stile Incifra / laboratorio analisi */
.page-booking {
  min-height: 100vh;
  background: #f4f6f9;
  color: #1a2b3c;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.booking-header {
  background: #fff;
  border-bottom: 3px solid var(--brand, #0066b3);
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.booking-header img {
  max-height: 64px;
  max-width: 280px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.booking-header h1 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1a2b3c;
  margin: 0.25rem 0;
}

.booking-header .subtitle {
  font-size: 0.95rem;
  color: #5a6b7d;
}

.booking-alert {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #664d03;
  padding: 1rem 1.25rem;
  margin: 1rem auto;
  max-width: 720px;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 600;
}

.booking-alert strong {
  display: block;
  margin-bottom: 0.35rem;
}

.booking-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.booking-card {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.booking-card h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--brand, #0066b3);
  border-bottom: 1px solid #eef2f6;
  padding-bottom: 0.5rem;
}

.booking-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5a6b7d;
  margin: 0.75rem 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.booking-card input,
.booking-card select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #c5d0dc;
  border-radius: 4px;
  font-size: 1rem;
}

.booking-card input:focus,
.booking-card select:focus {
  outline: 2px solid var(--brand, #0066b3);
  border-color: var(--brand, #0066b3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Lista prestazioni (P.P.) */
.pp-list {
  list-style: none;
}

.pp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eef2f6;
  gap: 0.75rem;
}

.pp-item:last-child {
  border-bottom: none;
}

.pp-item.pp-disabled {
  opacity: 0.85;
  background: #fafbfc;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.pp-name {
  font-weight: 600;
  font-size: 1rem;
}

.pp-category {
  font-size: 0.8rem;
  color: #5a6b7d;
}

.pp-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-pp {
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  border: 1px solid var(--brand, #0066b3);
  background: #fff;
  color: var(--brand, #0066b3);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-pp:hover {
  background: #eef5fb;
}

.btn-pp-primary {
  background: var(--brand, #0066b3);
  color: #fff;
  border-color: var(--brand, #0066b3);
}

.btn-pp-primary:hover {
  filter: brightness(0.95);
}

.btn-pp:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-booking-main {
  width: 100%;
  padding: 0.85rem;
  margin-top: 1rem;
  background: var(--brand, #0066b3);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-booking-main:hover {
  filter: brightness(0.95);
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.privacy-check input {
  width: auto;
  margin-top: 0.2rem;
}

.privacy-link {
  color: var(--brand, #0066b3);
  cursor: pointer;
  text-decoration: underline;
}

.booking-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: #5a6b7d;
  border-top: 1px solid #dde3ea;
  margin-top: 2rem;
  background: #fff;
}

.booking-footer a {
  color: var(--brand, #0066b3);
  cursor: pointer;
}

/* Modale */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-box {
  background: #fff;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
}

.modal-box h3 {
  margin-bottom: 1rem;
  color: var(--brand, #0066b3);
  padding-right: 2rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #5a6b7d;
}

.modal-body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #333;
  white-space: pre-wrap;
}

.booking-done {
  text-align: center;
  padding: 2rem 1rem;
}

.booking-done .code {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand, #0066b3);
  margin: 1rem 0;
  letter-spacing: 0.05em;
}

.hidden {
  display: none !important;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #5a6b7d;
  margin-bottom: 1rem;
}

.breadcrumb span {
  color: var(--brand, #0066b3);
  cursor: pointer;
}

.operator-notice {
  background: #f8d7da;
  border: 1px solid #f5c2c7;
  color: #842029;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
