/* ============================================================
   OSTERIA DEL FUOCO — Contatti Page Styles
   ============================================================ */

/* ============================================================
   CONTACT GRID
   ============================================================ */
.contatti-section {
  padding: 5rem 0 6rem;
  background: var(--bg-cream);
}

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contatti-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

/* ============================================================
   RESERVATION FORM
   ============================================================ */
.form-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(212,160,23,0.1);
}

.form-card__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(212,160,23,0.15);
}

.form-card__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.form-card__subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 480px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-main);
}

.form-label span {
  color: var(--primary);
  font-size: 0.85em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(212,160,23,0.2);
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--secondary);
  background: white;
  box-shadow: 0 0 0 4px rgba(212,160,23,0.12);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-input.valid,
.form-select.valid,
.form-textarea.valid {
  border-color: #22c55e;
}

.form-error {
  font-size: 0.76rem;
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.2em;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%237A5C40' d='M5 8l5 5 5-5H5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 240px;
  line-height: 1.6;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid rgba(212,160,23,0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-cream);
  transition: border-color var(--transition);
}

.stepper:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(212,160,23,0.12);
}

.stepper__btn {
  width: 44px;
  height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}

.stepper__btn:hover { background: rgba(139,46,0,0.08); }
.stepper__btn:focus-visible { outline: 2px solid var(--secondary); }
.stepper__btn:disabled { opacity: 0.3; cursor: not-allowed; }

.stepper__value {
  flex: 1;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  background: transparent;
  border: none;
  outline: none;
  min-width: 48px;
}

/* Checkbox */
.form-checkbox-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox {
  width: 20px; height: 20px;
  border: 2px solid rgba(212,160,23,0.3);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-cream);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--transition);
  position: relative;
}

.form-checkbox:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.form-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 6px; height: 10px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.form-checkbox:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

.form-checkbox-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.form-submit {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.form-success.show { display: block; }

.success-checkmark {
  margin: 0 auto 1.5rem;
}

.checkmark-circle {
  fill: none;
  stroke: #22c55e;
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-miterlimit: 10;
  animation: checkmarkCircle 0.6s ease forwards;
}

.checkmark-check {
  fill: none;
  stroke: #22c55e;
  stroke-width: 2;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkmarkDraw 0.4s 0.6s ease forwards;
}

@keyframes checkmarkCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes checkmarkDraw {
  to { stroke-dashoffset: 0; }
}

.form-success__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-success__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   INFO PANEL
   ============================================================ */
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212,160,23,0.1);
}

.info-card__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.info-card__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139,46,0,0.1), rgba(212,160,23,0.1));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  border: 1px solid rgba(212,160,23,0.2);
}

.info-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.info-card__content {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-card__content a {
  color: var(--primary);
  font-weight: 700;
  transition: color var(--transition);
}

.info-card__content a:hover { color: var(--primary-light); }

/* Hours table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid rgba(212,160,23,0.1);
  transition: background var(--transition);
}

.hours-table tr:last-child { border-bottom: none; }

.hours-table tr.today {
  background: rgba(212,160,23,0.08);
  border-radius: var(--radius-sm);
}

.hours-table td {
  padding: 0.5rem 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hours-table td:first-child {
  font-weight: 700;
  color: var(--text-main);
  width: 40%;
}

.hours-table tr.today td {
  color: var(--text-main);
}

.hours-table tr.today td:first-child {
  color: var(--primary);
}

.hours-table .closed {
  color: #ef4444;
  font-weight: 700;
}

/* Map */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(212,160,23,0.2);
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: none;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-section {
  padding: 5rem 0;
  background: var(--bg-cream-dark);
}

.faq-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212,160,23,0.15);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item.open {
  border-color: rgba(212,160,23,0.35);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  transition: background var(--transition), color var(--transition);
}

.faq-question:hover { background: rgba(212,160,23,0.04); }
.faq-item.open .faq-question { color: var(--primary); }
.faq-question:focus-visible { outline: 2px solid var(--secondary); outline-offset: -2px; }

.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(212,160,23,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary);
  transition: transform var(--transition), background var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}

.faq-answer__inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid rgba(212,160,23,0.1);
  padding-top: 1rem;
}
