@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #FF6B6B;
  border-radius: 3px;
  transition: width 0.3s ease;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #c3c3c3; /* Sfondo leggermente più scuro per aumentare il contrasto */
}
h1 {
  text-align: center;
  margin-bottom: 20px;
}
form {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: 8px;
}

/* Stile per il form multi-step */
#multiStepForm {
  padding: 10px;
  margin: 0 auto; /* Centrare il form nella colonna */
}

/* Stile per il titolo dello step */
.step-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0px;
  color: #333;
  font-size: 24px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
  display: none;
}

.step-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #007bff;
  border-radius: 3px;
}

/* Stile per la barra di progresso */
#progressBar {
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 5px;
}

.progress-container {
  margin: 0 auto 5px;
  max-width: 400px;
}

.step-instruction{
  display: none;
}

.progress-bar {
  height: 6px;
  background-color: #cbcbcb;
  border-radius: 3px;
  position: relative;
  margin: 0 30px 20px;
}

.progress-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #FF6B6B;
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 25%; /* Inizia con il 25% (1/4 di progresso) */
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 0 15px;
}

.progress-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  z-index: 2;
}

.progress-step.active {
  background-color: #FF6B6B;
  color: white;
}

.progress-step.completed {
  background-color: #28a745;
  color: white;
}

/* Stile per i singoli step */
.form-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.5s ease;
}

/* Stile per il riepilogo */
.riepilogo-container {
  width: 100%;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.riepilogo-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-bottom: 10px;
}

.riepilogo-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.riepilogo-item i {
  color: #007bff;
  font-size: 18px;
  margin-right: 10px;
  min-width: 24px;
  text-align: center;
}

.riepilogo-item strong {
  margin-right: 8px;
  color: #495057;
}

.riepilogo-item span {
  color: #212529;
  flex: 1;
}

/* Stile per il pulsante di invio */
.submit-button {
  background-color: #28a745;
  min-width: 180px;
}

.submit-button:hover {
  background-color: #218838;
}

/* Stile specifico per il form di login */
.login-form {
  max-width: 400px;
  margin: 10px auto;
  padding: 30px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}

.login-form.visible {
  opacity: 1;
  transform: translateY(0);
}

.login-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
input[type="text"],
input[type="password"],
input[type="file"],
textarea,
select {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #141414;
  border-radius: 6px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* Stile per il campo targa */
.targa-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  width: 100%;
  max-width: 550px;
}

.targa-blue-rect {
  background-color: #0c68d5; /* Blu europeo */
  width: 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  /* Il border-radius sarà specificato separatamente per ogni rettangolo */
}

.targa-left-rect {
  margin-right: -2px;
  border-radius: 5px 0 0 5px; /* Solo lato sinistro arrotondato */
}

.targa-right-rect {
  margin-left: -2px;
  border-radius: 0 5px 5px 0; /* Solo lato destro arrotondato */
}

input[name="targa"] {
  width: calc(100% - 80px); /* Sottrarre la larghezza dei due rettangoli */
  margin-bottom: 0;
  text-align: center;
  font-size: 40px!important;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid #003399; /* Stesso colore dei rettangoli */
  padding: 12px 15px;
  border-radius: 0!important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  height: 68px;
}

/* Stile per i gruppi di input */
.input-group {
  width: 100%;
  margin-bottom: 20px;
  max-width: 550px; /* Limitiamo la larghezza massima dei campi di input */
  margin-left: auto;
  margin-right: auto;
}

.input-group label {
  display: none;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

.input-group label i {
  margin-right: 8px;
  color: #007bff;
}

.input-group input[type="text"],
.input-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #141414;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input[type="text"]:focus,
.input-group textarea:focus {
  border-color: #FF6B6B;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.15);
  outline: none;
}

/* Stile specifico per i campi dello step 1 */
/* Gli stili per input[name="targa"] sono stati spostati e migliorati sopra */

input[name="modello"] {
  font-style: italic;
}

textarea[name="note"] {
  resize: vertical;
  min-height: 80px;
  font-size: 15px;
}

/* Stile specifico per il campo di input del PIN */
.pin-input-container {
  position: relative;
  margin-bottom: 20px;
}

.pin-input-container input {
  padding: 15px 15px 15px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.pin-input-container input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  outline: none;
}

.pin-input-container .pin-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 18px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
button {
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}
button:hover {
  background-color: #0056b3;
}

/* Stile specifico per il pulsante login */
.login-button {
  padding: 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-button:hover {
  background-color: #0069d9;
  transform: translateY(-2px);
}

.login-button:active {
  transform: translateY(0);
}
.error {
  color: #d9534f;
  text-align: center;
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f8d7da;
  border-radius: 5px;
  border: 1px solid #f5c6cb;
  font-size: 14px;
  font-weight: 500;
}

/* Titolo della pagina di login */
.login-title {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 28px;
}

/* Sottotitolo o descrizione */
.login-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 25px;
  font-size: 16px;
}
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0c68d5;
  color: white;
  padding: 0 20px;
  height: 60px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
}

.brand {
  font-size: 1.2em;
  font-weight: bold;
}
.form-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 10px;
  width: 100%;
}

.form-buttons button {
  min-width: 120px;
  padding: 14px 20px;
  font-weight: bold;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.form-buttons button:active {
  transform: translateY(0);
}

.logout-button {
  background: white;
  color: black;
  padding: 2px 4px;
  border-radius: 50%;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  transition: all 0.3s ease;
}

.logout-button:hover {
  background: #f8f9fa;
  transform: rotate(360deg);
}

.main-footer {
  background-color: #fff;
  padding: 20px;
  text-align: center;
  margin-top: auto;
}
.footer-logo {
  max-width: 200px;
  height: auto;
}

.tipo-wrapper {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}
.tipo-wrapper input[type="radio"] {
  display: none;
}
.tipo-btn {
  padding: 16px 25px;
  border: 1px solid #FF6B6B;
  border-radius: 8px;
  background-color: white;
  color: #FF6B6B;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 160px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.tipo-btn:hover {
  background-color: #fff5f5;
  color: #FF6B6B;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.tipo-wrapper input[type="radio"]:checked + .tipo-btn {
  background-color: #FF6B6B;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255,107,107,0.3);
}

/* Stile specifico per il wrapper della qualità con 3 opzioni */
.qualita-wrapper {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  
}

.container.fullwidth {
  flex: 1;
  max-width: 1600px;
  
  padding: 0 15px;
}

/* Layout a tre colonne */
.three-column-layout {
  display: flex;
  flex-wrap: wrap;
  margin: 20px 0;
  width: 100%;
  justify-content: space-between;
}

.promo-column {
  flex: 1;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin: 0 10px;
  order:2;
}

.form-column {
  flex: 2;
  max-width: 900px;
  min-width: 65%;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin: 0 10px;
  order:1;
}

.history-column {
  flex: 1;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin: 0 10px;
  display: none;
}

/* Stile per la colonna promozionale */
.promo-container {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 250px; /* Larghezza minima per il contenuto della colonna promozionale */
  max-width: 350px; /* Larghezza massima per il contenuto della colonna promozionale */
  margin: 0 auto; /* Centrata nella sua colonna */
}

.promo-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 150px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.promo-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.promo-content h3 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 12px;
}

.promo-content p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.promo-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.promo-features li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  font-size: 15px;
  color: #555;
}

.promo-features li i {
  color: #FF6B6B;
  margin-right: 10px;
  position: absolute;
  left: 0;
  font-size: 16px;
}

.promo-contact {
  margin-top: auto;
  padding-top: 20px;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
}

.promo-contact p {
  margin: 8px 0;
  color: #555;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.promo-contact i {
  width: 20px;
  color: #FF6B6B;
  margin-right: 8px;
  text-align: center;
}

/* Stile per la cronologia delle richieste */
.history-container {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-width: 250px; /* Larghezza minima per il contenuto della colonna della cronologia */
  max-width: 350px; /* Larghezza massima per il contenuto della colonna della cronologia */
  margin: 0 auto; /* Centrata nella sua colonna */
}

.history-container h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 20px;
  color: #2c3e50;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding-bottom: 12px;
}

.history-container h3 i {
  margin-right: 8px;
  color: #FF6B6B;
}

.request-item {
  margin-bottom: 15px;
  padding: 12px;
  background-color: #f9f9f9;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.request-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.request-item .date {
  font-size: 12px;
  color: #777;
  margin-bottom: 5px;
}

.request-item .plate {
  font-weight: 600;
  margin-bottom: 5px;
}

.request-item .type {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.request-item .type.preventivo {
  background-color: #e3f2fd;
  color: #1976d2;
}

.request-item .type.ordine {
  background-color: #e8f5e9;
  color: #388e3c;
}

.request-item .status {
  margin-top: 8px;
  display: flex;
  align-items: center;
  font-size: 13px;
}

.request-item .status i {
  margin-right: 5px;
}

.request-item .status-new {
  color: #757575;
}

.request-item .status-processing {
  color: #fb8c00;
}

.request-item .status-completed {
  color: #43a047;
}

.request-item .status-sent {
  color: #1976d2;
}

.no-history {
  text-align: center;
  padding: 20px 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
  color: #757575;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.no-history i {
  font-size: 18px;
  margin-right: 10px;
  color: #FF6B6B;
}

.view-all-history {
  text-align: center;
  margin-top: 20px;
}

.view-all-history .btn {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.view-all-history .btn-outline {
  background-color: transparent;
  border: none;
  color: #FF6B6B;
}

.view-all-history .btn-outline:hover {
  text-decoration: underline;
  transform: translateY(-2px);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.history-item {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  border-left: 3px solid #007bff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.history-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.history-item-targa {
  font-weight: bold;
  color: #333;
}

.history-item-date {
  color: #888;
  font-size: 0.9em;
}

.history-item-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-item-type {
  background-color: #e9ecef;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.85em;
  color: #495057;
}

.history-item-status {
  font-size: 0.85em;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Rimossi selettori .status-* duplicati che causavano conflitti */

/* Rimossa seconda definizione di .no-history per evitare conflitti */

/* Responsività */
@media screen and (max-width: 1200px) {
  .three-column-layout {
    flex-direction: column;
    align-items: center;
  }
  
  .promo-column, .form-column, .history-column {
    width: 100%;
    max-width: 650px; /* Manteniamo la larghezza massima anche in modalità responsive */
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
  }
}

@media screen and (max-width: 768px) {
  .promo-column, .form-column, .history-column {
    max-width: 100%; /* Su schermi molto piccoli usiamo tutta la larghezza */
  }
}

/* Stile per il titolo di benvenuto con il nome dell'officina */
.welcome-header {
  display: none;
  align-items: center;
  justify-content: center;
  margin: 10px 0 10px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.welcome-header i {
  font-size: 24px;
  color: #007bff;
  margin-right: 12px;
}

.welcome-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
}