/* vehicleads/styles.css */
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #f5f7fa;
  padding: 0;
  margin: 0;
  justify-content: center;
  min-height: 100vh;
  margin: auto;
  text-align: center;
  font-size: 0;
}

.bg {
    height: 100vh;
    position: fixed;
    width: 100vw;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: cover;
}

.main {
    font-size: 16px;
}

.logo {
  margin: 1em 0;
}

.logo img {
  max-width: 50%;
}

.alert {
  padding: 1em;
  margin-bottom: 1em;
  background-color: orange;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 80%;
  gap: 2em;
  margin:auto;
}

.energy { padding: 1em; font-size: 0.8em; color: #999; }

.footer {
  margin: 2em auto;
  padding: 1em;
  font-size: 0.8em;
}

.footer a {
  color: #666;
  text-decoration: none;
}

.footer img {
  max-width: 100%;
}

.vin { padding: 1em; font-size: 0.8em; color: #999; }
.vin a { color: #999; }
.gallery {
  display: grid;
  gap: 0.5em;
  padding: 1em;
  background: #fafafa;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.details {
  list-style: none;
}

.info {
  padding: 1em;
}

.info h1 {
  font-size: 1.75em;
  color: #333;
  max-width: 80%;
  margin: auto;
}

.info p {
  margin: 0.25em 0;
  color: #555;
}

.contact-form {
  grid-column: span 2;
  padding: 1em;
  margin: 2em 0;
  background: #fafafa;
  border-top: 1px solid #eee;
}

.form-group {
  margin-bottom: 1em;
}

.form-group .half,
.form-group .third {
    width: 100%;
    margin-bottom: 0.75em;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.25em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
}

.btn-primary {
  background-color: #013F52;
  color: #fff;
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #005bb5;
}

.no-display, .visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

@media only screen and (min-width: 1280px) {
  .card {
    max-width: 80em;
  }

  .footer.card {
    max-width: 60em;
  }

  .form-group {
    display: flex;
    flex-direction: row;
    column-gap: 0.75em;
  }

  .form-group .half {
    width: 50%;
  }

  .form-group .third {
    width: 33.3333%;
  }

}

    /* Slideshow styling */
    .slideshow-container {
      position: relative;
      max-width: 100%;
      margin: auto;
      overflow: hidden;
      border-radius: 8px;
    }
    .slideshow-container img {
      width: 100%;
      display: block;
    }
    .slideshow-button {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0,0,0,0.5);
      color: #fff;
      border: none;
      padding: 0.5em;
      cursor: pointer;
      border-radius: 50%;
    }
    .prev { left: 10px; }
    .next { right: 10px; }


    <!-- CSS per gli status -->
        .form-status {
            padding: 12px;
            margin-bottom: 20px;
            border-radius: 5px;
            font-weight: 500;
            animation: slideDown 0.3s ease-out;
        }

        .form-status.success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .form-status.error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .form-status.loading {
            background: #e2f3ff;
            color: #0c5460;
            border: 1px solid #b6effb;
        }

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

        .btn-primary:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .form-field-error {
            border: 2px solid #dc3545 !important;
            background-color: #fff5f5 !important;
        }

        .shake {
            animation: shake 0.5s ease-in-out;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }
