.contact-section {
  padding: 64px 20px 96px;
}

.contact-wrap {
  padding: 0 var(--pad3);
  margin: 0 auto;

}

.contact-head h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--heading);
}

.contact-head p {
  margin: 0 0 36px;
  max-width: 620px;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.98rem;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--outline);
  border-color: var(--primary);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.booking {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.booking-label {
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--heading);
}

.slots-day {
  color: var(--text-muted);
  font-weight: 400;
}

.calendar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-month {
  font-weight: 600;
  color: var(--heading);
  text-transform: capitalize;
}

.cal-nav {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.cal-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-weekdays {
  margin-bottom: 6px;
}

.cal-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cal-day {
  aspect-ratio: 1 / 1;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
}

.cal-day.is-empty {
  background: transparent;
  cursor: default;
}

.cal-day:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: transparent;
}

.cal-day.is-selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cal-hint {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.slot {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 9px;
  padding: 11px 0;
  cursor: pointer;
  font-size: 0.95rem;
}

.slot:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slot.is-selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.slots-empty {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.slots-empty.is-hidden {
  display: none;
}

/* --- Honeypot (nascosto agli utenti reali) --- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Widget Cloudflare Turnstile (partial views/partials/turnstile.hbs). */
.form-guard {
  margin: 4px 0 18px;
}

.form-guard .cf-turnstile {
  display: inline-block;
  min-height: 65px;
}

.contact-actions {
  margin-top: 28px;
}

.contact-actions .button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-feedback {
  margin-top: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-feedback.is-error {
  color: #ff8497;
}

.contact-feedback.is-success {
  color: #6ee7a8;
}

.contact-feedback a {
  color: var(--primary);
  word-break: break-all;
}

@media (max-width: 760px) {
  .contact-grid,
  .booking {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 22px;
  }
}
