/* ============================================
   booking.css — Securofy Booking Page
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: black;
  color: white;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── HERO ── */
.booking-hero {
  text-align: center;
  padding: 6rem 2rem 3rem;
}
.booking-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 4px;
  color: #00ff9c;
  margin-bottom: 1.2rem;
}
.booking-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.grad {
  background: linear-gradient(90deg, #00ff9c, lightgreen);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.booking-hero p {
  color: #888;
  font-family: Cambria, Georgia, serif;
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── PROGRESS BAR ── */
.progress-bar-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}
.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
}
.pstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.35;
  transition: opacity 0.4s;
}
.pstep.active, .pstep.done { opacity: 1; }
.pstep-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: #050505;
  transition: all 0.4s;
}
.pstep.active .pstep-dot {
  border-color: #00ff9c;
  background: rgba(0,255,156,0.1);
  color: #00ff9c;
  box-shadow: 0 0 18px rgba(0,255,156,0.3);
}
.pstep.done .pstep-dot {
  background: #00ff9c;
  border-color: #00ff9c;
  color: black;
}
.pstep span {
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
}
.pstep.active span { color: #00ff9c; }
.pstep.done span { color: #aaa; }
.pstep-line {
  width: 80px;
  height: 2px;
  background: #1a1a1a;
  margin-bottom: 1.2rem;
}

/* ── BOOKING CONTAINER ── */
.booking-container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto 5rem;
}

/* ── STEP PANELS ── */
.step-panel {
  display: none;
  animation: fadeInUp 0.45s cubic-bezier(0.22,1,0.36,1) both;
}
.step-panel.active { display: block; }

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

.step-panel h2 {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 0.4rem;
}
.step-sub {
  color: #666;
  font-family: Cambria, Georgia, serif;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* ── STEP 1: FORM ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 2rem;
}
.full-width { grid-column: 1 / -1; }

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.input-group label {
  font-size: 0.85rem;
  color: #00ff9c;
  letter-spacing: 1px;
}
.req { color: #ff4444; }
.input-group input,
.input-group textarea,
.input-group select {
  background: #050505;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 0.85rem 1.2rem;
  color: white;
  font-family: 'Franklin Gothic Medium', Arial, sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.input-group textarea {
  resize: none;
}
.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  outline: none;
  border-color: #00ff9c;
  box-shadow: 0 0 16px rgba(0,255,156,0.1);
}

/* ── STEP NAV BUTTONS ── */
.step-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.book-btn {
  position: relative;
  overflow: hidden;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(0,255,156,0.4);
  background: #00ff9c;
  color: black;
  font-family: 'Franklin Gothic Medium', Arial, sans-serif;
  letter-spacing: 0.5px;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.book-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.15);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.book-btn:hover::before { transform: scaleX(1); }
.book-btn:hover {
  box-shadow: 0 0 30px rgba(0,255,156,0.4);
}
.book-btn.secondary {
  background: transparent;
  color: white;
  border-color: #333;
}
.book-btn.secondary:hover {
  border-color: rgba(0,255,156,0.4);
  box-shadow: none;
}

/* ── STEP 2: PLAN CARDS ── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin: 0 auto 1.5rem;
  max-width: 800px;
}

.b-plan-card {
  background: #050505;
  border: 2px solid #1a1a1a;
  border-radius: 20px;
  padding: 2rem 1.6rem;
  cursor: pointer;
  position: relative;
  transition: border-color 0.35s, transform 0.35s, background 0.35s, box-shadow 0.35s;
}
.b-plan-card:hover {
  border-color: rgba(0,255,156,0.4);
  transform: translateY(-8px);
  background: #041a0c;
  box-shadow: 0 12px 40px rgba(0,255,156,0.1);
}
.b-plan-card.featured {
  border-color: rgba(0,255,156,0.45);
  background: #030f07;
}
.b-plan-card.selected {
  border-color: #00ff9c;
  background: #041a0c;
  box-shadow: 0 0 0 2px rgba(0,255,156,0.5), 0 16px 50px rgba(0,255,156,0.2);
  transform: translateY(-10px);
}

.popular-tag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 99px;
  background: #00ff9c;
  color: black;
  white-space: nowrap;
}
.plan-name-tag {
  font-size: 0.78rem;
  letter-spacing: 3px;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.b-price {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(90deg, #00ff9c, lightgreen);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.2rem;
}
.b-price span {
  font-size: 0.8rem;
  color: #555;
  -webkit-text-fill-color: #555;
}
.b-orig {
  font-size: 0.85rem;
  color: #444;
  text-decoration: line-through;
  margin-bottom: 1.4rem;
}
.b-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #aaa;
  font-family: Cambria, Georgia, serif;
}
.b-features li.muted { color: #444; }
.select-badge {
  text-align: center;
  padding: 0.55rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(0,255,156,0.25);
  color: #00ff9c;
  background: rgba(0,255,156,0.05);
  transition: 0.3s;
}
.b-plan-card.selected .select-badge {
  background: #00ff9c;
  color: black;
  border-color: #00ff9c;
}

/* ── STEP 3: CALENDAR ── */
.cal-container {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.calendar {
  background: #050505;
  border: 1px solid #1a1a1a;
  border-radius: 20px;
  padding: 1.8rem;
  min-width: 320px;
  flex: 1;
}
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.cal-nav {
  background: none;
  border: 1px solid #222;
  color: white;
  cursor: pointer;
  width: 34px; height: 34px;
  border-radius: 8px;
  font-size: 1.2rem;
  transition: 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.cal-nav:hover { border-color: #00ff9c; color: #00ff9c; }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 0.6rem;
}
.cal-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  color: #555;
  padding: 0.4rem 0;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.2s;
}
.cal-day:not(.disabled):not(.empty):hover {
  border-color: rgba(0,255,156,0.4);
  background: rgba(0,255,156,0.08);
  color: #00ff9c;
}
.cal-day.active {
  background: #00ff9c;
  color: black;
  font-weight: 700;
  border-color: #00ff9c;
}
.cal-day.disabled { color: #333; cursor: not-allowed; }
.cal-day.empty { cursor: default; }

/* Time Slots Panel */
.timeslots-panel {
  flex: 1;
  min-width: 260px;
}
.timeslots-panel h3 {
  font-size: 1.1rem;
  color: #00ff9c;
  margin-bottom: 1.4rem;
}
.timeslots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.slot-hint {
  color: #555;
  font-family: Cambria, Georgia, serif;
  font-size: 0.9rem;
  grid-column: 1 / -1;
}
.slot-btn {
  padding: 0.6rem 0.4rem;
  border-radius: 8px;
  border: 1px solid #222;
  background: #050505;
  color: #aaa;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.25s;
  font-family: 'Franklin Gothic Medium', Arial, sans-serif;
}
.slot-btn:hover {
  border-color: rgba(0,255,156,0.4);
  color: #00ff9c;
  background: rgba(0,255,156,0.05);
}
.slot-btn.active {
  background: #00ff9c;
  color: black;
  border-color: #00ff9c;
  font-weight: 700;
}

/* ── STEP 4: CONFIRMATION ── */
.confirm-wrap {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 580px;
  margin: 0 auto;
}
.confirm-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: #00ff9c;
  color: black;
  font-size: 2.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 0 50px rgba(0,255,156,0.4);
  animation: popIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes popIn {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.confirm-wrap h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.confirm-details {
  background: #050505;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: left;
}
.conf-row {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid #111;
  font-size: 0.9rem;
}
.conf-row:last-child { border-bottom: none; }
.conf-row span { color: #555; }
.conf-row strong { color: #00ff9c; }
.confirm-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
.footer-divider {
  width: 91%;
  margin: 0 auto 2rem;
  background-color: lightgreen;
  border: none;
  height: 2px;
}
footer {
  width: 91%;
  padding: 0 0 2rem 0;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #555;
  flex-wrap: wrap;
  gap: 1rem;
}
footer a { color: #555; text-decoration: none; transition: color 0.3s; }
footer a:hover { color: #00ff9c; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .booking-hero { padding-top: 6rem; }
  .plan-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: 1; }
  .cal-container { flex-direction: column; align-items: stretch; }
  .pstep-line { width: 40px; }
  .calendar { min-width: 100%; }
  .timeslots { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .progress-steps { gap: 0.5rem; }
  .pstep-line { width: 20px; }
  .pstep span { font-size: 0.65rem; }
  .booking-hero h1 { font-size: 2rem; }
}
