/* =====================================================================
   WHEELWORX – FEATURES
   - Date & time picker (Book Now + accepted quote page)
   - Quote response page
   - Form status messages (contact form)
   - Floating WhatsApp button
   Uses the same colours as the rest of the site (main.css variables).
   ===================================================================== */

/* ---------- Date & time picker ---------- */
.slot-picker{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.sp-calendar,
.sp-times{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
}

.sp-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sp-title{
  color: #fff;
  font-size: 16px;
}

.sp-nav{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}

.sp-nav:hover:not(:disabled){ border-color: var(--red); color: var(--red); }
.sp-nav:disabled{ opacity: .3; cursor: default; }

.sp-weekdays,
.sp-grid{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.sp-weekdays span{
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding-bottom: 4px;
}

.sp-day{
  aspect-ratio: 1;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,0.3);
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
}

.sp-day.is-open{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  color: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.sp-day.is-open:hover{ border-color: var(--red); }

.sp-day.is-full{
  color: rgba(255,255,255,0.35);
  text-decoration: line-through;
  background: rgba(196,30,58,0.08);
}

.sp-day.is-blocked,
.sp-day.is-closed{ color: rgba(255,255,255,0.2); }

.sp-day.is-selected{
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(196,30,58,0.35);
}

.sp-legend{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.sp-legend span{ display: inline-flex; align-items: center; gap: 6px; }
.sp-dot{ width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sp-dot-open{ background: rgba(255,255,255,0.25); }
.sp-dot-full{ background: rgba(196,30,58,0.45); }
.sp-dot-closed{ background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }

.sp-times-title{
  margin: 0 0 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 800;
  font-size: 14px;
}

.sp-slots{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sp-slot{
  padding: 11px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.sp-slot:hover:not(:disabled){ border-color: var(--red); }

.sp-slot:disabled{
  color: rgba(255,255,255,0.25);
  text-decoration: line-through;
  cursor: not-allowed;
  background: transparent;
}

.sp-slot.is-selected{
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 10px 24px rgba(196,30,58,0.35);
}

.sp-muted,
.sp-error{
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}

.sp-error{ color: #fca5a5; }

.sp-summary{
  grid-column: 1 / -1;
  margin: 0;
  min-height: 0;
}

.slot-picker.has-selection .sp-summary{
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.30);
  color: #86efac;
}

.sp-summary span{ color: rgba(255,255,255,0.7); }

/* the picker sits inside the booking form's fieldset */
.booking-form .form-group.picker-group{
  display: block !important;
}

.picker-error{
  margin: 10px 0 0;
  color: #fca5a5;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 820px){
  .slot-picker{ grid-template-columns: 1fr; }
}

@media (max-width: 420px){
  .sp-calendar, .sp-times{ padding: 12px; }
  .sp-weekdays, .sp-grid{ gap: 4px; }
  .sp-day{ font-size: 13px; border-radius: 8px; }
}


/* ---------- Quote response page ---------- */
.qr-section{
  padding: 70px 0 100px;
  background:
    radial-gradient(520px 520px at 0% 30%, rgba(196,30,58,0.10), transparent 70%),
    var(--ww-dots, none) 0 0 / 22px 22px,
    radial-gradient(circle at top, #15181c 0%, #0f1114 45%, #0b0d10 100%);
  min-height: 60vh;
}

.qr-card{
  width: min(860px, 100%);
  margin: 0 auto;
  background: rgba(5,5,5,0.80);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  box-shadow: 0 22px 80px rgba(0,0,0,0.55);
  padding: 32px;
}

.qr-card h2{
  color: #fff;
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0 0 8px;
}

.qr-card > p{ color: rgba(255,255,255,0.7); }

.qr-summary{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 22px 0 26px;
}

.qr-summary div{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 16px;
}

.qr-summary small{
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.qr-summary strong{ color: #fff; font-size: 16px; }
.qr-summary .qr-price strong{ color: var(--red); font-size: 22px; }

.qr-note{
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 26px;
  color: rgba(255,255,255,0.85);
  white-space: pre-line;
}

.qr-step-title{
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 14px;
}

.qr-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.qr-actions .btn-primary{ border: 0; cursor: pointer; padding: 14px 22px; font-size: 15px; }
.qr-actions .btn-primary:disabled{ opacity: .45; cursor: not-allowed; }

.qr-link-btn{
  background: none;
  border: 0;
  color: rgba(255,255,255,0.7);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 14px 4px;
}

.qr-link-btn:hover{ color: #fff; }

.qr-decline-btn{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 12px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.qr-decline-btn:hover{ border-color: var(--red); color: var(--red); }

.qr-result{
  text-align: center;
  padding: 10px 0;
}

.qr-result .qr-icon{
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.4);
}

.qr-result.is-warn .qr-icon{ background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.4); }
.qr-result.is-error .qr-icon{ background: rgba(196,30,58,0.15); border-color: rgba(196,30,58,0.4); }

.qr-result h2{ margin-bottom: 10px; }
.qr-result p{ color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 10px; }

.qr-booked{
  display: inline-grid;
  gap: 4px;
  margin: 14px auto 6px;
  padding: 16px 22px;
  border-radius: 12px;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.30);
  color: #86efac;
  font-weight: 800;
}

@media (max-width: 600px){
  .qr-card{ padding: 22px 16px; }
  .qr-actions .btn-primary, .qr-decline-btn{ flex: 1 1 100%; }
}


/* ---------- Form status messages (contact form) ---------- */
.form-status{
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.6;
}

.form-status.is-success{
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  color: #86efac;
}

.form-status.is-error{
  background: rgba(196,30,58,0.12);
  border: 1px solid rgba(196,30,58,0.35);
  color: #fca5a5;
}


/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;

  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;

  background: #25d366;
  color: #062b16;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

.whatsapp-float svg{ width: 26px; height: 26px; flex: 0 0 26px; }

@media (max-width: 600px){
  .whatsapp-float{ right: 14px; bottom: 14px; padding: 13px; }
  .whatsapp-float span{ display: none; }   /* icon only on phones */
}

/* dark dropdown list for the service selector on Book Now */
.booking-form select option{
  background: #1a1a1a;
  color: #f3f3f3;
}


/* grouped service dropdown (Quote + Book Now) */
.quote-form select optgroup,
.booking-form select optgroup{
  background: #111;
  color: rgba(255,255,255,0.55);
  font-style: normal;
  font-weight: 800;
}