/* === FAST MOTORS BOOKING UI — PRO GARAGE EDITION === */

:root {
  --racing-red: #e51313;
  --red-hover: #ff2a2a;
  --bg-deep: #0a0a0c;
  --bg-panel: #16161a;
  --bg-input: #0f0f12;
  --border-muted: #2a2a30;
  --border-light: #3e3e46;
  --text-main: #f0f0f0;
  --text-muted: #888890;
  --radius: 4px; /* Sharp corners for industrial look */
}

/* === GENERAL LAYOUT === */
.fm-wrap {
  display: flex;
  gap: 20px;
  align-items: stretch;
  flex-wrap: wrap;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--bg-deep);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-muted);
}

/* === SIDEBAR === */
.fm-sidebar {
  width: 260px;
  background: var(--bg-panel);
  border: 1px solid var(--border-muted);
  border-left: 4px solid var(--racing-red);
  padding: 24px 20px;
  color: var(--text-main);
  flex-shrink: 0;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5);
}

.fm-brand {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 1.5px;
  margin-bottom: 30px;
  color: #fff;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 15px;
}

.fm-nav a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: var(--text-muted);
  text-decoration: none;
  background: transparent;
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.fm-nav a.active,
.fm-nav a:hover {
  background: linear-gradient(90deg, rgba(229, 19, 19, 0.1) 0%, transparent 100%);
  color: #fff;
  border-left: 3px solid var(--racing-red);
}

.fm-content {
  flex: 1;
  min-width: 300px;
}

/* === BOOKING BOX === */
.booking-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-muted);
  padding: 35px;
  color: var(--text-main);
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5);
  min-height: 100%;
}

.step { display: none; }
.step.active { display: block; animation: fmFadeIn 0.3s ease; }

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

.step h2 {
  font-size: 24px;
  margin: 0 0 24px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step h2::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background: var(--racing-red);
  transform: skewX(-20deg);
}

/* === INPUTS & SELECTS === */
.input, select, textarea {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-muted);
  background-color: var(--bg-input);
  color: var(--text-main);
  font-size: 15px;
  margin-bottom: 20px;
  outline: none;
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.input:focus, select:focus, textarea:focus {
  border-color: var(--racing-red);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 0 0 1px var(--racing-red);
}

/* Custom Dropdown Arrow */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e51313' d='M1.41.59L6 5.17 10.59.59 12 2l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
}

.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; }

/* === BUTTONS === */
.btn {
  display: inline-block;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  background: var(--racing-red);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover { background: var(--red-hover); }
.btn:active { transform: scale(0.98); }

.btn.secondary {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}
.btn.secondary:hover { background: var(--border-muted); }

/* === CALENDAR === */
.calendar {
  border: 1px solid var(--border-muted);
  background: var(--bg-input);
  margin-bottom: 24px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-muted);
}

.cal-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cal-nav { display: flex; gap: 8px; }

.cal-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 6px 14px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: bold;
}
.cal-btn:hover { border-color: var(--racing-red); color: var(--racing-red); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }

.cal-h, .cal-cell {
  padding: 12px 10px;
  text-align: center;
  border-right: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
}

.cal-h {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  background: var(--bg-panel);
}

.cal-cell { font-weight: 600; font-size: 14px; }
.cal-cell:nth-child(7n) { border-right: none; }

.cal-cell.muted { color: var(--border-light); background: rgba(0,0,0,0.2); }

.cal-cell.selectable { cursor: pointer; transition: 0.2s; }
.cal-cell.selectable:hover { background: var(--border-muted); color: #fff; }

.cal-cell.selected {
  background: var(--racing-red);
  color: #fff;
  font-weight: 900;
  box-shadow: inset 0 0 0 2px var(--bg-panel);
}

/* === TIME SLOTS === */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.slot {
  padding: 14px 10px;
  text-align: center;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 700;
  color: var(--text-muted);
}

.slot:hover {
  border-color: var(--racing-red);
  color: #fff;
}

.slot.selected {
  background: var(--racing-red);
  border-color: var(--racing-red);
  color: #fff;
  box-shadow: 0 4px 15px rgba(229, 19, 19, 0.3);
}

/* === RESPONSIVE === */
@media (max-width: 860px) {
  .fm-wrap { flex-direction: column; padding: 10px; border: none; background: transparent; }
  .fm-sidebar {
    width: 100%;
    border-left: none;
    border-top: 4px solid var(--racing-red);
    padding: 16px;
  }
  .fm-brand { text-align: center; margin-bottom: 16px; border-bottom: none; padding-bottom: 0; }
  .fm-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .fm-nav a { flex: 1 1 auto; text-align: center; border-left: none; border-bottom: 3px solid transparent; justify-content: center; }
  .fm-nav a.active, .fm-nav a:hover { border-left: none; border-bottom: 3px solid var(--racing-red); background: rgba(229, 19, 19, 0.1); }
  .booking-box { padding: 20px; }
}