/* ═══════════════════════════════════════════════════════
   bookings.css — Skyline Drone Solutions
   Page-specific styles for bookings.html
   ═══════════════════════════════════════════════════════ */

/* ───────── BTN GHOST ───────── */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; background: transparent;
  color: rgba(255,255,255,0.45); font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 0.875rem; padding: 0.58rem 1rem; border-radius: 8px;
  border: none; cursor: pointer; transition: color 0.2s, background 0.2s;
}
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* ───────── BTN PRIMARY — disabled state for booking ───────── */
.btn-primary:disabled { opacity: 0.38; cursor: not-allowed; transform: none; box-shadow: none; }

/* ───────── BOOKING SECTION ───────── */
.booking-section { padding: 4rem 0 7rem; background: #070f1e; }

/* ───────── PROGRESS BAR ───────── */
.booking-progress {
  display: flex; align-items: flex-start; justify-content: center;
  margin-bottom: 4rem;
}

.prog-step { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; position: relative; z-index: 1; }
.prog-step .dot {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.25);
  transition: border-color 0.3s, background 0.3s, color 0.3s, box-shadow 0.3s;
}
.prog-step.active .dot { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 0 0 4px rgba(47,107,255,0.18); }
.prog-step.done .dot { border-color: var(--blue); background: rgba(47,107,255,0.1); color: var(--blue-light); }
.prog-step .lbl { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.22); transition: color 0.3s; }
.prog-step.active .lbl { color: rgba(255,255,255,0.75); }
.prog-step.done .lbl { color: rgba(255,255,255,0.4); }

.prog-line {
  flex: 1; max-width: 110px; height: 2px; background: rgba(255,255,255,0.07);
  margin: 0 8px; align-self: flex-start; margin-top: 17px; position: relative; overflow: hidden;
}
.prog-line::after {
  content: ''; position: absolute; inset: 0; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.prog-line.done::after { transform: scaleX(1); }

/* ───────── LAYOUT ───────── */
.booking-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }

/* ───────── PANEL ───────── */
.booking-panel { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; overflow: hidden; }
.booking-step { display: none; }
.booking-step.active { display: block; }

.step-head { padding: 2rem 2.5rem 1.75rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.step-head h2 { font-size: 1.45rem; font-weight: 800; color: #fff; margin-bottom: 0.35rem; }
.step-head p { font-size: 0.875rem; color: rgba(255,255,255,0.38); line-height: 1.6; }

.step-body { padding: 2rem 2.5rem; }
.step-foot {
  padding: 1.5rem 2.5rem; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
}

/* ───────── SERVICE CARDS ───────── */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.svc-card {
  background: rgba(255,255,255,0.02); border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 1.4rem; cursor: pointer;
  transition: border-color 0.22s, background 0.22s, transform 0.18s;
  outline: none; text-align: left; position: relative;
}
.svc-card:hover { border-color: rgba(47,107,255,0.38); background: rgba(47,107,255,0.04); transform: translateY(-2px); }
.svc-card:focus-visible { border-color: var(--blue); }
.svc-card.sel { border-color: var(--blue); background: rgba(47,107,255,0.08); }
.svc-card.sel::after {
  content: ''; position: absolute; top: 12px; right: 12px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

.svc-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(47,107,255,0.1); border: 1px solid rgba(47,107,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-light); margin-bottom: 0.875rem;
}
.svc-card.sel .svc-icon { background: rgba(47,107,255,0.18); border-color: rgba(47,107,255,0.35); }

.svc-name { font-size: 0.92rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.svc-desc { font-size: 0.78rem; color: rgba(255,255,255,0.35); line-height: 1.5; margin-bottom: 0.85rem; }
.svc-meta { display: flex; align-items: baseline; gap: 0.4rem; }
.svc-price { font-size: 0.78rem; font-weight: 700; color: var(--blue-light); }
.svc-dur { font-size: 0.72rem; color: rgba(255,255,255,0.25); }

/* ───────── CALENDAR ───────── */
.dt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.cal {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; overflow: hidden;
}
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cal-title { font-size: 0.875rem; font-weight: 700; color: #fff; }
.cal-btn {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1);
  background: transparent; color: rgba(255,255,255,0.45); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cal-btn:hover { border-color: rgba(255,255,255,0.28); color: #fff; background: rgba(255,255,255,0.06); }

.cal-wdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  padding: 0.65rem 0.65rem 0.2rem; gap: 2px;
}
.cal-wd { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.22); text-align: center; }

.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0.2rem 0.65rem 0.65rem; gap: 2px; }
.cal-d {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 500; border-radius: 7px;
  cursor: pointer; border: none; background: transparent; color: rgba(255,255,255,0.6);
  transition: background 0.15s, color 0.15s; outline: none;
}
.cal-d:hover:not([disabled]):not(.past) { background: rgba(47,107,255,0.14); color: #fff; }
.cal-d:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.cal-d.past { color: rgba(255,255,255,0.13); cursor: default; }
.cal-d.today { color: var(--blue-light); font-weight: 700; }
.cal-d.sel { background: var(--blue); color: #fff; font-weight: 700; }
.cal-d.empty, .cal-d.unavail { cursor: default; }
.cal-d.unavail { color: rgba(255,255,255,0.13); text-decoration: line-through; }

/* ───────── TIME SLOTS ───────── */
.ts-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 0.875rem; }
.ts-empty { font-size: 0.84rem; color: rgba(255,255,255,0.25); padding: 2rem 0; text-align: center; line-height: 1.6; }
.ts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.45rem; }
.ts-btn {
  padding: 0.55rem 0.6rem; border-radius: 8px; border: 1.5px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02); color: rgba(255,255,255,0.6);
  font-size: 0.8rem; font-weight: 500; cursor: pointer; text-align: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s; outline: none;
}
.ts-btn:hover:not([disabled]) { border-color: rgba(47,107,255,0.4); background: rgba(47,107,255,0.06); color: #fff; }
.ts-btn.sel { border-color: var(--blue); background: rgba(47,107,255,0.1); color: #fff; font-weight: 700; }
.ts-btn:disabled { opacity: 0.22; cursor: default; }

/* ───────── FORM FIELDS ───────── */
.fields { display: flex; flex-direction: column; gap: 1.4rem; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-group { display: flex; flex-direction: column; gap: 0.45rem; }
.f-label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); }
.f-label span { color: var(--blue-light); margin-left: 2px; }

.f-input, .f-select, .f-textarea {
  background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 0.68rem 1rem; color: #fff;
  font-family: 'Inter', sans-serif; font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none; width: 100%;
}
.f-input::placeholder, .f-textarea::placeholder { color: rgba(255,255,255,0.18); }
.f-input:focus, .f-select:focus, .f-textarea:focus {
  border-color: var(--blue); background: rgba(47,107,255,0.05);
  box-shadow: 0 0 0 3px rgba(47,107,255,0.12);
}
.f-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 6 5-6' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.f-select option { background: #0B1F3A; }
.f-textarea { resize: vertical; min-height: 96px; }
.f-hint { font-size: 0.71rem; color: rgba(255,255,255,0.22); margin-top: 0.2rem; }

/* ───────── ADDONS ───────── */
.addon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.addon {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.85rem 1rem; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.addon:hover { border-color: rgba(47,107,255,0.28); background: rgba(47,107,255,0.04); }
.addon.chk { border-color: rgba(47,107,255,0.32); background: rgba(47,107,255,0.06); }
.addon input { display: none; }

.chk-box {
  width: 17px; height: 17px; flex-shrink: 0; border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.18); background: transparent; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.addon.chk .chk-box { border-color: var(--blue); background: var(--blue); }
.chk-box svg { display: none; }
.addon.chk .chk-box svg { display: block; }

.addon-name { font-size: 0.82rem; font-weight: 600; color: #fff; margin-bottom: 0.2rem; }
.addon-desc { font-size: 0.74rem; color: rgba(255,255,255,0.32); line-height: 1.45; }
.addon-price { font-size: 0.74rem; font-weight: 700; color: var(--blue-light); margin-top: 0.3rem; }

/* ───────── SIDEBAR ───────── */
.booking-sidebar { position: sticky; top: 88px; }
.sidebar-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; overflow: hidden; }

.sb-head { padding: 1.2rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(47,107,255,0.05); }
.sb-head h3 { font-size: 0.875rem; font-weight: 700; color: #fff; }
.sb-head p { font-size: 0.7rem; color: rgba(255,255,255,0.35); margin-top: 0.2rem; }

.sb-body { padding: 1.25rem 1.5rem; }
.sb-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.sb-row:last-child { border-bottom: none; }
.sb-lbl { font-size: 0.72rem; font-weight: 500; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.05em; }
.sb-val { font-size: 0.84rem; font-weight: 600; color: rgba(255,255,255,0.7); text-align: right; max-width: 160px; line-height: 1.4; }
.sb-val.empty { color: rgba(255,255,255,0.2); font-weight: 400; font-style: italic; font-size: 0.8rem; }

.sb-price {
  padding: 1.1rem 1.5rem; background: rgba(47,107,255,0.05);
  border-top: 1px solid rgba(47,107,255,0.14);
  display: flex; justify-content: space-between; align-items: center;
}
.sb-price-lbl { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.sb-price-note { font-size: 0.68rem; color: rgba(255,255,255,0.2); margin-top: 3px; }
.sb-price-val { font-family: 'Bebas Neue', sans-serif; font-size: 2.1rem; color: #fff; line-height: 1; }

.sb-trust { padding: 1.1rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; gap: 0.55rem; }
.trust-row { display: flex; align-items: center; gap: 0.55rem; font-size: 0.76rem; color: rgba(255,255,255,0.35); }
.trust-row svg { color: var(--blue-light); flex-shrink: 0; }

/* ───────── SUCCESS STATE ───────── */
.booking-success { display: none; text-align: center; padding: 4rem 2.5rem; }
.booking-success.show { display: block; }

.success-icon {
  width: 68px; height: 68px; border-radius: 50%; background: rgba(47,107,255,0.1);
  border: 2px solid var(--blue); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.75rem;
}
.success-ref { font-family: 'Bebas Neue', sans-serif; font-size: 1.7rem; letter-spacing: 0.12em; color: var(--blue-light); margin-bottom: 0.5rem; }
.success-title { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.success-sub { font-size: 0.9rem; color: rgba(255,255,255,0.42); line-height: 1.7; max-width: 360px; margin: 0 auto 2rem; }

.success-details {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 1.5rem; display: inline-flex; flex-direction: column;
  gap: 0.65rem; text-align: left; min-width: 280px;
}
.suc-row { display: flex; justify-content: space-between; gap: 2rem; }
.suc-lbl { font-size: 0.72rem; color: rgba(255,255,255,0.32); text-transform: uppercase; letter-spacing: 0.05em; }
.suc-val { font-size: 0.84rem; font-weight: 600; color: rgba(255,255,255,0.78); }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 1024px) {
  .booking-layout { grid-template-columns: 1fr; }
  .booking-sidebar { position: static; order: -1; }
}

@media (max-width: 768px) {
  .svc-grid { grid-template-columns: 1fr; }
  .dt-grid { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .booking-progress { gap: 0; }
  .prog-line { max-width: 36px; }
  .prog-step .lbl { display: none; }
  .step-head, .step-body { padding: 1.5rem; }
  .step-foot { padding: 1rem 1.5rem; }
}
