/* -------------------------
   RESET & FONT
------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------------------------
   VARIABILI
------------------------- */
:root {
  --primary-color: #004f65; /* teal scuro */
  --accent-color: #ffc107;  /* giallo senape */
  --accent-hover: #e0a700;
  --light-gray: #e0e0e0;
  --bg-color: #f8f9fa;
  --border-radius: 8px;
}

/* -------------------------
   STEP INDICATOR
------------------------- */
.step-indicator-container {
  position: relative;
  width: 90%;
  max-width: 500px;
  margin: 20px auto;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.step-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--light-gray);
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 2px;
}
.step-line-filled {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: var(--primary-color);
  transform: translateY(-50%);
  z-index: 2;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.step-circle {
  position: relative;
  width: 32px;
  height: 32px;
  background-color: var(--light-gray);
  border-radius: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  user-select: none;
}
.step-circle.active-circle {
  background-color: var(--primary-color);
}

/* -------------------------
   WIZARD CONTAINER & STEP
------------------------- */
.wizard-container {
  width: 90%;
  max-width: 500px;
  margin: 20px auto;
  text-align: center;
  background-color: var(--bg-color);
  padding: 0px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.step {
  display: none;
  margin-bottom: 20px;
}
.step.active {
  display: block;
}
.step h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* -------------------------
   OPZIONI STEP 1
------------------------- */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.option-btn {
  background-color: #fff;
  border: 2px solid var(--light-gray);
  padding: 15px;
  border-radius: var(--border-radius);
  color: #333;
  transition: background-color 0.3s, border-color 0.3s;
  cursor: pointer;
}
.option-btn:hover {
  background-color: #f9f9f9;
}
.option-btn.selected {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* -------------------------
   BOTTONI
------------------------- */
.btn-app {
  display: inline-block;
  background-color: var(--accent-color);
  color: #333;
  border: none;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
}
.btn-app:hover {
  background-color: var(--accent-hover);
}
.btn-secondary {
  background-color: var(--primary-color);
  color: #fff;
}
.btn-secondary:hover {
  background-color: #00394b;
}
.mt-3 {
  margin-top: 16px;
}

/* -------------------------
   OUTLINED INPUTS
------------------------- */
.outlined-group {
  margin-bottom: 16px;
  text-align: left;
}
.outlined-label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: var(--primary-color);
}
.outlined-input {
  width: 100%;
  border: 2px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
  background-color: #fff;
}
.outlined-input:focus {
  border-color: var(--primary-color);
}

/* Per campi affiancati (altezza/peso) */
.outlined-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
@media (max-width: 480px) {
  .outlined-row {
    flex-direction: column;
  }
}

/* Range */
.outlined-group-range {
  margin-bottom: 16px;
  text-align: left;
}
.outlined-group-range label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: var(--primary-color);
}
.outlined-group-range input[type="range"] {
  width: 100%;
  margin-top: 4px;
}

/* Radio & Checkbox (quando usati in "outlined-group") */
.outlined-group input[type="radio"],
.outlined-group input[type="checkbox"] {
  margin-right: 6px;
  accent-color: var(--primary-color);
  transform: scale(1.1);
}

/* -------------------------
   CARD RISTORANTI (STEP 7)
------------------------- */
.title-center {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.subtitle-center {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
}
.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}
.card-dieta {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  width: 250px;
  padding: 16px;
  text-align: center;
}
.card-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}
.card-dieta h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 6px;
}
.card-desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

/* -------------------------
   WEEK PLANNER (STEP 8)
------------------------- */
.week-planner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.day-block {
  background-color: #fff;
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  padding: 14px;
  margin-bottom: 10px;
  text-align: left;
}
.day-block h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}
.meal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
}
.meal-label {
  width: 100px;
  font-weight: 500;
  color: var(--primary-color);
}
.meal-input {
  flex: 1;
  display: flex;
  gap: 8px;
}

/* -------------------------
   MODAL
------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* -------------------------
   RESPONSIVE
------------------------- */
@media (max-width: 600px) {
  .cards-container, .week-planner {
    flex-direction: column;
    align-items: center;
  }
  .card-dieta, .day-block {
    width: 90%;
    max-width: 300px;
  }
}
