/* ===================
   Contenitore principale
=================== */
#appointment-form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  font-family: 'Helvetica Neue', sans-serif;
}

/* ===================
   Step e titoli
=================== */
.step {
  display: none;
}
.step.active {
  display: block;
}
.step-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--button-color);
}

/* ===================
   Griglia di opzioni
=================== */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.option-block {
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.option-block:hover {
  border-color: var(--button-color);
}
.option-block.selected {
  background-color: var(--button-color);
  color: #fff;
  border-color: var(--button-color);
  font-weight: bold;
}
.home-links .option-block{
  background-color: var(--button-color);
  border-color: var(--button-color);
  color: #fff; 
  text-decoration: none !important;
}
.option-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
}
.slot-heading {
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-size: 1.1em;
}
/* ===================
   Textarea per note
=================== */
.step textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  resize: vertical;
  margin-bottom: 1.2rem;
  margin-bottom: 30px;
  margin-top: 10px;
}

/* ===================
   Progress bar
=================== */
#progress-container {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 5px;
  margin-bottom: 2rem;
  overflow: hidden;
}
#progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--button-color);
  transition: width 0.3s ease;
}

/* ===================
   Toast di successo
=================== */
.toast {
  display: none;
  position: fixed;
  top: 30px;
  right: 30px;
  background-color: #4CAF50;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
  max-height: 75px;
  width: 90%;
  left: 5%;
}
.toast.show {
  display: flex;
  align-items: center;
  opacity: 1;
  transform: translate(0, 50%);
}
@media (max-width: 500px) {
  .option-grid {
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    padding: 30px 0;
  }
  #location-options.option-grid,#service-options.option-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
}
/* Container generale */
#i-miei-appointment {
  padding: 1rem;
  font-family: sans-serif;
}
#appuntamento-form .platform-button.fullb{
  float:right;
}
/* Sezioni */
.appointment-main{
  padding: 10px;
}
.appointment-section {
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  column-gap: 20px;
}

.appointment-section h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--button-color);
}

/* Card */
.appointment-card {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: box-shadow 0.5s;
  border: 1px solid var(--light-grey);
  -webkit-box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.08); 
  box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.08); 
}
.app-header .app-left{
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border-radius: 5px;
}
.app-date{
  font-weight: 700;
  font-size: 18px;
  text-align: center;
}
.appointment-title{
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
/* Contenuto card */
.appointment-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.app-location{
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 500 !important;
}
.app-starttime, .app-location span{
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  gap: 6px
}
.app-location span{
  color: var(--light-color) !important;
  font-size: 13px !important;
}
.app-starttime svg, .app-location svg{
  width: 18px;
  height: 18px;
}
.app-time{
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-len{
  background-color: #ccc;
  padding: 5px;
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 5px;
  line-height: 1;
}
.app-header{
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: 15px;
}
.app-footer{
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 15px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--light-grey);
}
.app-footer a{
  padding: 7px 30px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  border: 2px solid;
  text-decoration: none;
  display: block;
  text-align: center;
}
.app-directions a{
  background-color: var(--button-color);
  border-color: var(--button-color);
  color: #fff;
}
.app-phone a{
  background-color: #fff;
  border-color: var(--button-color);
  color: var(--button-color);
}
.appointment-info span {
  font-size: 0.95rem;
  color: #333;
}

.appointment-info .etichetta {
  font-weight: bold;
  color: #444;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  transform: translateX(-50%);
  background-color: var(--button-color);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}
.toast.show {
  opacity: 1;
}
.appointment-section.passed .appointment-card{
  opacity: .7;
}
.appointment-section.passed .app-header .app-left{
  background-color: var(--light-grey);
}
.appointment-section.passed .app-directions a{
  background-color: var(--light-grey);
  border-color: var(--light-grey);
  color: #333;
}
.appointment-section.passed .app-phone a{
  border-color: var(--light-grey);
  color: #333;
  display: none;
}
.user-home-section{
  padding: 10px;
}
.availability-message.error {
    color: #c00;
    margin-top: 8px;
    font-weight: 500;
    background-color: #ffe5e5;
    padding: 10px 12px;
    border: 1px solid #c00;
    border-radius: 4px;
    margin-bottom: 40px;
}