/* Mistowax Booking – Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Inter:wght@400;500&display=swap');

#mistowax-wrap {
  --mw-bg: #0a0a0f;
  --mw-card: #111118;
  --mw-card-border: #1a1a2e;
  --mw-accent: #2563eb;
  --mw-accent-hover: #3b82f6;
  --mw-text: #e8e8f0;
  --mw-muted: #6b7280;
  --mw-success: #16a34a;
  background: var(--mw-bg);
  color: var(--mw-text);
  font-family: 'Inter', sans-serif;
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  box-sizing: border-box;
}

/* PROGRESS */
.mw-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  gap: 0;
}
.mw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: default;
}
.mw-step.done,
.mw-step.active { cursor: pointer; }
.mw-step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid #2a2a3a;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--mw-muted);
  background: var(--mw-card);
  transition: all .3s;
}
.mw-step span {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--mw-muted);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}
.mw-step.active .mw-step-num {
  border-color: var(--mw-accent);
  color: var(--mw-accent);
  background: rgba(37,99,235,.12);
}
.mw-step.active span { color: var(--mw-accent); }
.mw-step.done .mw-step-num {
  border-color: var(--mw-accent);
  background: var(--mw-accent);
  color: #fff;
  font-size: 0px;
}
.mw-step.done .mw-step-num::before { content: '✓'; font-size: 14px; }
.mw-connector {
  flex: 1;
  height: 2px;
  background: #1e1e2e;
  margin-bottom: 18px;
  max-width: 80px;
  transition: background .3s;
}
.mw-connector.done { background: var(--mw-accent); }

/* FORM BOX */
.mw-form-box {
  background: var(--mw-card);
  border: 1px solid var(--mw-card-border);
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

/* STEPS */
.mw-step-content { display: none; }
.mw-step-content.active { display: block; }

/* SECTION LABEL */
.mw-section-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--mw-accent);
  font-weight: 700;
  margin-bottom: 18px;
}

/* SERVICE GRID */
.mw-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}
.mw-service-card {
  background: #0e0e18;
  border: 1.5px solid #1e1e30;
  border-radius: 8px;
  padding: 16px 14px;
  cursor: pointer;
  text-align: left;
  transition: all .2s;
  color: var(--mw-text);
}
.mw-service-card:hover { border-color: #2a4a8f; }
.mw-service-card.selected { border-color: var(--mw-accent); background: rgba(37,99,235,.1); }
.mw-service-name { font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 600; }
.mw-service-price { font-size: 13px; color: var(--mw-accent); margin-top: 2px; }

/* LEVEL GRID */
.mw-level-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mw-level-card {
  background: #0e0e18;
  border: 1.5px solid #1e1e30;
  border-radius: 8px;
  padding: 16px 14px;
  cursor: pointer;
  text-align: left;
  color: var(--mw-text);
  transition: all .2s;
}
.mw-level-card:hover { border-color: #2a4a8f; }
.mw-level-card.selected { border-color: var(--mw-accent); background: rgba(37,99,235,.1); }
.mw-level-name { font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 600; }
.mw-level-desc { font-size: 12px; color: var(--mw-muted); margin-top: 2px; }

/* VEHICLE GRID */
.mw-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.mw-vehicle-card {
  background: #0e0e18;
  border: 1.5px solid #1e1e30;
  border-radius: 8px;
  padding: 18px 10px;
  cursor: pointer;
  text-align: center;
  color: var(--mw-text);
  transition: all .2s;
}
.mw-vehicle-card:hover { border-color: #2a4a8f; }
.mw-vehicle-card.selected { border-color: var(--mw-accent); background: rgba(37,99,235,.1); }
.mw-vehicle-icon { font-size: 28px; margin-bottom: 8px; }
.mw-vehicle-name { font-family: 'Rajdhani', sans-serif; font-size: 12px; letter-spacing: 1.5px; font-weight: 600; color: var(--mw-muted); }
.mw-vehicle-card.selected .mw-vehicle-name { color: var(--mw-text); }

/* PRICE PREVIEW */
.mw-price-preview {
  background: #0e0e18;
  border: 1px solid #1e1e30;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}
.mw-price-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid #1a1a28;
}
.mw-price-line:last-child { border-bottom: none; }
.mw-price-line .price { color: var(--mw-accent); font-weight: 600; }
.mw-price-note { font-size: 12px; color: var(--mw-muted); margin-top: 10px; font-style: italic; }

/* DATE & TIMES */
.mw-field-group { margin-bottom: 18px; }
.mw-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.mw-field-row .mw-field-group { margin-bottom: 0; }
@media (max-width: 480px) {
  .mw-field-row { grid-template-columns: 1fr; }
}
.mw-label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--mw-muted);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
}
.mw-input {
  width: 100%;
  background: #0e0e18;
  border: 1.5px solid #1e1e30;
  border-radius: 8px;
  color: var(--mw-text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  box-sizing: border-box;
  outline: none;
  transition: border .2s;
}
.mw-input:focus { border-color: var(--mw-accent); }
.mw-textarea { min-height: 100px; resize: vertical; }
input[type="date"].mw-input::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.4); }

.mw-times-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mw-time-slot {
  background: #0e0e18;
  border: 1.5px solid #1e1e30;
  border-radius: 7px;
  padding: 12px 6px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  color: var(--mw-text);
  transition: all .2s;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: .5px;
}
.mw-time-slot:hover:not(.booked) { border-color: var(--mw-accent-hover); }
.mw-time-slot.selected { border-color: var(--mw-accent); background: rgba(37,99,235,.15); color: #fff; }
.mw-time-slot.available { border-color: #10b981; background: rgba(16, 185, 129, 0.05); }
.mw-time-slot.available:hover { border-color: #059669; background: rgba(16, 185, 129, 0.1); }
.mw-time-slot.booked {
  text-decoration: line-through;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.2);
  cursor: not-allowed;
}

/* CUSTOM CALENDAR */
.mw-calendar-container {
  background: #0e0e18;
  border: 1.5px solid #1e1e30;
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
  position: relative;
  z-index: 10;
  overflow: visible;
}
.mw-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.mw-cal-nav {
  background: #1e1e30;
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mw-cal-nav:hover { background: var(--mw-accent); }
.mw-cal-month-year {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.mw-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--mw-muted);
  margin-bottom: 10px;
}
.mw-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  min-height: 300px;
  width: 100%;
}
.mw-cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  border: 1px solid #1e1e30;
  background: #1a1a2e;
  color: #ffffff;
  position: relative;
}
.mw-cal-day:hover:not(.empty):not(.past):not(.closed) {
  background: rgba(255,255,255,0.05);
  border-color: #333;
}
.mw-cal-day.selected {
  background: var(--mw-accent) !important;
  color: #fff !important;
}
.mw-cal-day.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}
.mw-cal-day.past, .mw-cal-day.closed {
  color: #3a3a50;
  cursor: not-allowed;
}
.mw-cal-day.full {
  cursor: not-allowed;
}
.mw-day-num { margin-bottom: 2px; }
.mw-day-label {
  font-size: 8px;
  text-transform: uppercase;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 700;
}
.mw-day-label.available { color: #10b981; }
.mw-day-label.full { color: #ef4444; }
.mw-day-label.closed { color: #6b7280; }
.mw-day-label.past { color: #3a3a50; }
.mw-cal-day.full .mw-day-num { color: #ef4444; }
.mw-cal-day.available .mw-day-num { color: #10b981; }
.mw-cal-day.past .mw-day-num { color: #3a3a50; }
.mw-closed-msg, .mw-loading, .mw-error-msg {
  grid-column: 1 / -1;
  padding: 20px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px;
  text-align: center;
  color: #ef4444;
  font-size: 14px;
}
.mw-loading {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--mw-accent);
}
.mw-times-note { font-size: 12px; color: var(--mw-muted); margin-top: 10px; }

/* SUMMARY */
.mw-summary {
  background: #0e0e18;
  border: 1px solid #1e1e30;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
}
.mw-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px solid #1a1a28;
}
.mw-summary-row:last-child { border-bottom: none; }
.mw-summary-row span:first-child { color: var(--mw-muted); }
.mw-price-highlight { color: var(--mw-accent); font-weight: 700; }

/* DISCLAIMER */
.mw-disclaimer-box {
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.25);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.mw-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #a0a8c0;
  line-height: 1.5;
}
.mw-checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 1px;
  accent-color: var(--mw-accent);
  flex-shrink: 0;
  cursor: pointer;
}

/* BUTTONS */
.mw-btn-continue {
  width: 100%;
  background: var(--mw-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 15px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .2s;
  margin-top: 8px;
}
.mw-btn-continue:hover:not(:disabled) { background: var(--mw-accent-hover); transform: translateY(-1px); }
.mw-btn-continue:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.mw-btn-back {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--mw-muted);
  font-size: 14px;
  padding: 12px;
  cursor: pointer;
  margin-top: 8px;
  transition: color .2s;
  font-family: 'Inter', sans-serif;
}
.mw-btn-back:hover { color: var(--mw-text); }

/* SUCCESS */
.mw-success-box {
  text-align: center;
  padding: 40px 20px;
}
.mw-success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(22,163,74,.15);
  border: 2px solid #16a34a;
  color: #16a34a;
  font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.mw-success-box h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 12px;
}
.mw-success-box p { color: var(--mw-muted); line-height: 1.6; margin: 0 0 8px; }
.mw-success-sub { font-size: 13px; }

/* RESPONSIVE */
@media (max-width: 520px) {
  .mw-vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .mw-service-grid { grid-template-columns: 1fr; }
  .mw-times-grid { grid-template-columns: repeat(2, 1fr); }
  .mw-connector { max-width: 30px; }
  .mw-form-box { padding: 20px 14px; }
}

/* PAYMENT SECTION */
.mw-payment-box {
  background: var(--mw-card);
  border: 1px solid var(--mw-card-border);
  border-radius: 8px;
  padding: 24px;
  margin: 20px 0;
}

.mw-payment-info {
  color: var(--mw-muted);
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.6;
}

.mw-payment-summary {
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
}

.mw-deposit-highlight {
  border-top: 1px solid rgba(37, 99, 235, 0.2);
  padding-top: 12px;
  margin-top: 12px;
  color: #2563eb;
  font-weight: 600;
}

.mw-payment-note {
  font-size: 12px;
  color: var(--mw-muted);
  margin: 12px 0 0;
  line-height: 1.5;
}

.mw-btn-stripe {
  width: 100%;
  background: #2563eb;
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
  margin: 20px 0 12px;
}

.mw-btn-stripe:hover:not(:disabled) {
  background: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.mw-btn-stripe:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.mw-btn-stripe.loading {
  opacity: 0.7;
  pointer-events: none;
}

.mw-payment-secure {
  text-align: center;
  font-size: 12px;
  color: var(--mw-muted);
  margin: 12px 0 0;
}

#sum-deposit-row {
  border-top: 1px solid rgba(37, 99, 235, 0.2);
  padding-top: 12px;
  margin-top: 12px;
  color: #2563eb;
  font-weight: 600;
}

/* Stripe Element Styles */
.StripeElement {
  box-sizing: border-box;
  height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--mw-card-border);
  border-radius: 4px;
  background-color: var(--mw-card);
  box-shadow: 0 1px 3px 0 #e6ebf1;
  -webkit-transition: box-shadow 150ms ease;
  transition: box-shadow 150ms ease;
}

.StripeElement--focus {
  box-shadow: 0 1px 3px 0 #cfd7df;
  border-color: var(--mw-accent);
}

.StripeElement--invalid {
  border-color: #fa755a;
}


/* ── CALENDAR SECTION (Step 6) ── */
.mw-calendar-section {
  margin: 24px 0 16px;
  padding: 18px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 10px;
}

.mw-calendar-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #aaa;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.mw-calendar-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.mw-cal-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.3px;
}

.mw-cal-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  text-decoration: none;
}

.mw-cal-google  { background: #4285f4; color: #fff !important; }
.mw-cal-apple   { background: #1c1c1e; color: #fff !important; border: 1px solid #444; }
.mw-cal-outlook { background: #0078d4; color: #fff !important; }

@media (max-width: 480px) {
  .mw-cal-btn { width: 100%; justify-content: center; }
}
