@import url("https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Barlow+Condensed:wght@400;600;700;800&display=swap");

/* ==================== VARIABILI ==================== */
:root {
  --red: #e63312;
  --red-dark: #c42a0e;
  --red-light: #ff4d2e;
  --black: #111111;
  --dark: #1a1a1a;
  --dark-alt: #222222;
  --mid: #444444;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --border: #e0e0e0;
  --light: #f4f4f4;
  --lighter: #fafafa;
  --white: #ffffff;
  --success: #1b8a4a;
  --error: #c42a0e;
  --warning: #d97706;

  --red-gradient: linear-gradient(135deg, #e63312 0%, #ff4d2e 100%);
  --dark-gradient: linear-gradient(135deg, #111111 0%, #2a2a2a 100%);

  --shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
  --transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 6px;
  --radius-lg: 10px;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Barlow", sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==================== NAVBAR ==================== */
.navbar {
  background: var(--black);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 3px solid var(--red);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  object-fit: contain; /* Mostra tutto il logo */
  background: var(--dark-alt);
}

.brand-info h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-info p {
  font-size: 0.62rem;
  color: #888;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 1px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Socket status */
.socket-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-family: "Barlow", sans-serif;
  letter-spacing: 0.04em;
  font-weight: 500;
  transition: var(--transition);
}

.socket-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.socket-connecting {
  background: rgba(255, 255, 255, 0.06);
  color: #888;
}
.socket-connecting .socket-dot {
  background: #888;
  animation: pulse 1.2s infinite;
}
.socket-connected {
  background: rgba(27, 138, 74, 0.15);
  color: #1b8a4a;
}
.socket-connected .socket-dot {
  background: #1b8a4a;
}
.socket-disconnected {
  background: rgba(196, 42, 14, 0.15);
  color: var(--red);
}
.socket-disconnected .socket-dot {
  background: var(--red);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* ==================== HERO ==================== */
.hero {
  background: var(--dark-gradient);
  color: var(--white);
  padding: 5rem 2rem 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 15% 50%,
      rgba(230, 51, 18, 0.12) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 50% at 85% 50%,
      rgba(230, 51, 18, 0.07) 0%,
      transparent 70%
    );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red-gradient);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
  animation: heroSlideDown 0.55s ease both;
}

.hero-content p {
  font-size: 1rem;
  color: #aaa;
  letter-spacing: 0.04em;
  font-weight: 400;
  animation: heroSlideUp 0.55s ease 0.15s both;
}

@keyframes heroSlideDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==================== LAYOUT ==================== */
.main-content {
  flex: 1;
  padding: 2.5rem 0;
}
.booking-section {
  padding: 0 2rem;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.75rem;
  align-items: start;
}

/* ==================== FORM WRAPPER ==================== */
.form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
  border-top: 4px solid var(--red);
  animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.form-header {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.form-header h2 {
  font-family: "Barlow Condensed", sans-serif;
  color: var(--dark);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.form-header p {
  color: var(--text-light);
  font-size: 0.88rem;
}

/* ==================== STEPS ==================== */
.form-step {
  display: none;
  animation: fadeUp 0.25s ease both;
}
.form-step.active {
  display: block;
}

.form-step h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--red);
  color: var(--white);
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.9rem;
  font-family: "Barlow Condensed", sans-serif;
}

/* ==================== FORM FIELDS ==================== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

label {
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--dark);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.required {
  color: var(--red);
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group i {
  position: absolute;
  left: 0.9rem;
  color: var(--red);
  font-size: 0.88rem;
  pointer-events: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: "Barlow", sans-serif;
  transition: var(--transition);
  background: var(--lighter);
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 51, 18, 0.1);
  background: var(--white);
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e63312' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.error {
  color: var(--error);
  font-size: 0.77rem;
  margin-top: 0.3rem;
  display: block;
  min-height: 16px;
}

/* ==================== MOTORCYCLES GRID & SEARCH ==================== */
.search-container {
  position: relative;
  margin-bottom: 1.25rem;
}

.search-input-group input {
  padding-left: 2.5rem;
  background: var(--lighter);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  transition: var(--transition);
}

.clear-search-btn:hover {
  color: var(--red);
  background: rgba(0, 0, 0, 0.05);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.filter-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-chip {
  padding: 0.3rem 0.9rem;
  border-radius: 30px;
  background: var(--lighter);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}

.category-chip:hover {
  border-color: var(--red);
  background: #fff5f3;
  color: var(--red);
}

.category-chip.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.motorcycles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.25rem 0.25rem 0.25rem 0;
}

.moto-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.moto-card:hover {
  border-color: var(--red);
  background: #fff5f3;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.moto-card.selected {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.moto-card.selected .moto-brand,
.moto-card.selected .moto-model {
  color: white;
}

.moto-info {
  flex: 1;
}

.moto-brand {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 0.2rem;
}

.moto-model {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.moto-category {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.moto-card.selected .moto-category {
  color: rgba(255, 255, 255, 0.8);
}

.moto-badge {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
}

.moto-card.selected .moto-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.loading-placeholder {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

.no-results {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  background: var(--lighter);
  border-radius: var(--radius);
}

/* ==================== MOTO DETAILS ==================== */
.motorcycle-details {
  background: var(--dark);
  color: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  border-left: 4px solid var(--red);
}

.motorcycle-details.show {
  display: block;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.625rem;
}

.detail-item {
  text-align: center;
  padding: 0.625rem 0.4rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
}

.detail-label {
  display: block;
  font-size: 0.65rem;
  opacity: 0.6;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.license-badge {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  animation: fadeUp 0.25s ease both;
}

.license-badge.compatible {
  background: rgba(27, 138, 74, 0.14);
  border: 1.5px solid rgba(27, 138, 74, 0.4);
  color: #1b8a4a;
}

.license-badge.incompatible {
  background: rgba(196, 42, 14, 0.12);
  border: 1.5px solid rgba(196, 42, 14, 0.35);
  color: var(--red-dark);
}

/* ==================== LEGENDA SLOT ==================== */
.legend-row {
  display: inline-flex;
  gap: 0.75rem;
  margin-left: 0.75rem;
  align-items: center;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: none;
  letter-spacing: 0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

.legend-dot.available {
  background: var(--white);
  border: 2px solid var(--red);
}

.legend-dot.booked {
  background: #e0e0e0;
  border: 2px solid #bbb;
}

/* ==================== DATE SLOTS ==================== */
.time-slots-label {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.date-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}

.date-slot {
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  font-weight: 600;
  font-family: "Barlow", sans-serif;
  line-height: 1.35;
  user-select: none;
}

.date-slot .slot-day-name {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.date-slot .slot-date {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.date-slot:hover {
  border-color: var(--red);
  background: #fff5f3;
}

.date-slot:hover .slot-day-name,
.date-slot:hover .slot-date {
  color: var(--red);
}

.date-slot.selected {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 2px 10px rgba(230, 51, 18, 0.3);
}

.date-slot.selected .slot-day-name,
.date-slot.selected .slot-date {
  color: var(--white);
}

/* ==================== TIME SLOTS ==================== */
.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.time-slot {
  padding: 0.6rem 0.4rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  font-weight: 600;
  font-size: 0.83rem;
  font-family: "Barlow", sans-serif;
  user-select: none;
  position: relative;
}

.time-slot:hover {
  border-color: var(--red);
  background: #fff5f3;
  color: var(--red);
}

.time-slot.selected {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 2px 8px rgba(230, 51, 18, 0.3);
}

.time-slot.booked {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: #f0f0f0;
  color: #aaa;
  border-color: #d5d5d5;
  text-decoration: line-through;
}

.time-slot.booked::after {
  content: "✕";
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.55rem;
  color: var(--error);
  line-height: 1;
}

/* ==================== RIEPILOGO ==================== */
.confirmation-summary {
  background: var(--lighter);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.summary-section {
  margin-bottom: 1.25rem;
}

.summary-section:last-child {
  margin-bottom: 0;
}

.summary-section h4 {
  color: var(--red);
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "Barlow", sans-serif;
  font-weight: 700;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item .label {
  font-weight: 700;
  color: var(--dark);
}

.summary-item .value {
  color: var(--text-light);
}

/* ==================== CHECKBOX ==================== */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0 0.25rem;
  padding: 0.875rem;
  background: var(--lighter);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--red);
}

.checkbox-group label {
  margin-bottom: 0;
  flex: 1;
  font-weight: 400;
  font-size: 0.88rem;
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
}

.checkbox-group a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* ==================== BUTTONS ==================== */
.form-navigation {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

button {
  padding: 0.78rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.93rem;
  font-weight: 700;
  font-family: "Barlow", sans-serif;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-next,
.btn-submit,
.btn-primary {
  background: var(--red);
  color: var(--white);
  flex: 1;
  box-shadow: 0 4px 14px rgba(230, 51, 18, 0.28);
}

.btn-next:hover,
.btn-submit:hover,
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 51, 18, 0.38);
}

.btn-next:active,
.btn-submit:active,
.btn-primary:active {
  transform: none;
}

.btn-prev {
  background: var(--white);
  color: var(--text);
  flex: 1;
  border: 2px solid var(--border);
}

.btn-prev:hover {
  background: var(--light);
  border-color: #ccc;
  transform: translateY(-1px);
}

.btn-next:disabled,
.btn-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

/* ==================== PROGRESS BAR ==================== */
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 1.75rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--red-gradient);
  width: 25%;
  transition: width 0.4s ease;
  border-radius: 2px;
}

.step-indicator {
  text-align: center;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==================== INFO CARD ==================== */
.info-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 1.625rem;
  box-shadow: var(--shadow-lg);
  height: fit-content;
  position: sticky;
  top: 84px;
  border-top: 4px solid var(--red);
  color: var(--white);
}

.info-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  color: var(--white);
  margin-bottom: 0.15rem;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-card .info-subtitle {
  color: #777;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #bbb;
  font-size: 0.9rem;
}

.info-item i {
  color: var(--red);
  font-size: 0.9rem;
  min-width: 17px;
}

.info-item a {
  color: #bbb;
  text-decoration: none;
  transition: var(--transition);
}

.info-item a:hover {
  color: var(--white);
}

.info-item span {
  color: #bbb;
}

.info-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 1.125rem 0;
}

.info-highlight {
  background: rgba(230, 51, 18, 0.1);
  border: 1px solid rgba(230, 51, 18, 0.25);
  padding: 0.75rem;
  border-radius: 5px;
  text-align: center;
  font-weight: 700;
  color: #ff7a62;
  font-size: 0.85rem;
  line-height: 1.5;
}

.info-item-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #bbb;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.info-item-link:hover {
  color: var(--white);
}

.info-item-link:hover i {
  color: var(--red-light);
}

.info-item-link i {
  color: var(--red);
  font-size: 0.9rem;
  min-width: 17px;
  margin-top: 2px;
}

.info-link-hint {
  display: block;
  font-size: 0.67rem;
  color: var(--red);
  letter-spacing: 0.05em;
  margin-top: 2px;
  opacity: 0.8;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #25d366;
  color: var(--white);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: "Barlow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  width: 100%;
}

.whatsapp-btn i {
  font-size: 1.1rem;
}

.whatsapp-btn:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38);
  color: var(--white);
}

/* ==================== MODAL ==================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: modalFade 0.2s ease both;
}

@keyframes modalFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlide 0.25s ease both;
  border-top: 4px solid var(--red);
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.625rem;
  border-bottom: 1px solid var(--border);
  background: var(--lighter);
}

.modal-header h2 {
  font-family: "Barlow Condensed", sans-serif;
  color: var(--dark);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.close {
  font-size: 1.4rem;
  color: var(--text-light);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.2rem 0.4rem;
  transition: var(--transition);
  line-height: 1;
  border-radius: 4px;
  flex: none;
}

.close:hover {
  color: var(--red);
  background: rgba(230, 51, 18, 0.08);
}

.modal-body {
  padding: 1.625rem;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.7rem 0.875rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

th {
  background: var(--lighter);
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

tr:hover td {
  background: var(--lighter);
}

.delete-btn {
  background: var(--red);
  color: var(--white);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.delete-btn:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.no-data {
  text-align: center;
  padding: 2.5rem;
  color: var(--text-light);
}

/* ==================== SUCCESS / ERROR MODAL ==================== */
.modal-success,
.modal-error {
  max-width: 460px;
  text-align: center;
  position: relative;
}

.modal-success {
  border-top-color: var(--success);
}

.modal-error {
  border-top-color: var(--error);
}

.modal-success .close,
.modal-error .close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
}

.modal-success .inner-content,
.modal-error .inner-content {
  padding: 2.75rem 2.25rem 2.25rem;
}

.success-icon,
.error-icon {
  font-size: 3.2rem;
  margin-bottom: 0.875rem;
}

.success-icon {
  color: var(--success);
}

.error-icon {
  color: var(--error);
}

.modal-success h2,
.modal-error h2 {
  font-family: "Barlow Condensed", sans-serif;
  color: var(--dark);
  margin-bottom: 0.625rem;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-success p,
.modal-error p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.text-small {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.modal-success .btn-primary {
  margin: 1.5rem auto 0;
  display: inline-flex;
  width: auto;
  min-width: 130px;
  flex: none;
}

/* ==================== LOADER ==================== */
.loader-container {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.875rem;
}

.loader-container.show {
  display: flex;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-text {
  font-family: "Barlow", sans-serif;
  font-size: 0.82rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ==================== TOAST ==================== */
.toast-container {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius);
  font-family: "Barlow", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  max-width: 310px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toastIn 0.3s ease both;
  pointer-events: all;
  text-transform: none;
  letter-spacing: 0;
}

.toast-info {
  background: var(--dark);
  color: #ddd;
  border-left: 4px solid var(--red);
}

.toast-success {
  background: #f0fff6;
  color: #1b6e3a;
  border-left: 4px solid var(--success);
}

.toast-warning {
  background: #fffbf0;
  color: #92550a;
  border-left: 4px solid var(--warning);
}

.toast-error {
  background: #fff5f3;
  color: var(--red-dark);
  border-left: 4px solid var(--error);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateX(28px);
  }
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--black);
  color: #555;
  text-align: center;
  padding: 1.25rem 2rem;
  margin-top: auto;
  font-size: 0.78rem;
  border-top: 3px solid var(--red);
  letter-spacing: 0.04em;
}

footer p + p {
  margin-top: 0.25rem;
}

#footerText,
#footerPiva {
  color: white;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr;
  }

  .info-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
    height: auto;
    flex-direction: column;
    gap: 0.625rem;
  }

  .hero {
    padding: 3rem 1.25rem 4rem;
  }

  .form-wrapper {
    padding: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .booking-section {
    padding: 0 1rem;
  }

  .main-content {
    padding: 1.75rem 0;
  }

  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .time-slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  }

  .confirmation-summary {
    padding: 1.1rem;
  }

  .modal-content {
    max-height: 95vh;
    border-radius: var(--radius);
  }

  .form-navigation {
    flex-direction: column-reverse;
  }

  .btn-prev,
  .btn-next,
  .btn-submit {
    flex: none;
    width: 100%;
  }

  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .toast {
    max-width: 100%;
  }

  .motorcycles-grid {
    grid-template-columns: 1fr;
    max-height: 360px;
  }
}

@media (max-width: 480px) {
  .date-slots-grid {
    flex-direction: column;
  }

  .date-slot {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.625rem;
  }

  .date-slot .slot-day-name {
    margin-bottom: 0;
  }

  .details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content h2 {
    font-size: 2rem;
  }
}

#licenseBadge {
  display: none !important;
}
