/* ==========================================================
   PersianBar — Booking Form
   Phase 27B — 3-step wizard
   ========================================================== */

.booking-page {
  padding: 20px 0 50px;
  background: #F7FAF8;
  min-height: calc(100vh - 72px);
}
.booking-header {
  text-align: center;
  margin-bottom: 20px;
}
.booking-header h1 {
  font-size: 1.3rem;
  color: #0F3D2E;
  margin: 0 0 4px;
  font-weight: 800;
}
.booking-header p {
  color: #5F6B7A;
  font-size: .85rem;
  margin: 0;
}
.booking-errors {
  max-width: 780px;
  margin: 0 auto 14px;
}
.booking-error {
  background: #FEE2E2;
  color: #991B1B;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .82rem;
  margin-bottom: 6px;
  border: 1px solid #FECACA;
}

/* ==================== STEPS ==================== */
.booking-steps {
  display: flex;
  max-width: 720px;
  margin: 0 auto 20px;
  gap: 8px;
}
.booking-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 10px 6px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid #E3EDE7;
  transition: .25s;
}
.booking-step.active {
  border-color: #16A34A;
  background: #F0FDF4;
}
.booking-step.done {
  border-color: #16A34A;
  background: #DCFCE7;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E3EDE7;
  color: #5F6B7A;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .85rem;
  transition: .25s;
}
.booking-step.active .step-num {
  background: #16A34A;
  color: #fff;
  box-shadow: 0 3px 8px rgba(22,163,74,.3);
}
.booking-step.done .step-num {
  background: #16A34A;
  color: #fff;
}
.step-label {
  font-size: .72rem;
  font-weight: 700;
  color: #5F6B7A;
}
.booking-step.active .step-label,
.booking-step.done .step-label {
  color: #166534;
}

/* ==================== FORM ==================== */
.booking-form {
  max-width: 780px;
  margin: 0 auto;
}
.booking-panel {
  display: none;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #E3EDE7;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(15,61,46,.05);
}
.booking-panel.active {
  display: block;
  animation: panelIn .3s ease;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.booking-panel h2 {
  font-size: 1rem;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E3EDE7;
  color: #0F3D2E;
  font-weight: 800;
}

.booking-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.booking-block { min-width: 0; }
.block-title {
  font-size: .85rem;
  margin: 0 0 10px;
  color: #0F3D2E;
  font-weight: 700;
}
.block-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: #1A2332;
  margin-bottom: 5px;
}
.block-label .req { color: #EF4444; }

.booking-form input[type="text"],
.booking-form input[type="tel"],
.booking-form input[type="number"],
.booking-form input[type="date"],
.booking-form select {
  width: 100%;
  padding: 9px 11px;
  border: 1.5px solid #E3EDE7;
  border-radius: 9px;
  font-family: inherit;
  font-size: .85rem;
  background: #F7FAF8;
  color: #1A2332;
  transition: .2s;
  box-sizing: border-box;
}
.booking-form input:focus,
.booking-form select:focus {
  outline: 0;
  border-color: #16A34A;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}
.booking-form input[type="date"] {
  direction: ltr;
  text-align: left;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #F7FAF8;
  border: 1.5px solid #E3EDE7;
  border-radius: 9px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  margin-top: 8px;
  transition: .2s;
}
.check-label:hover {
  background: #F0FDF4;
  border-color: #16A34A;
}
.check-label input {
  width: auto;
  margin: 0;
  accent-color: #16A34A;
  cursor: pointer;
}

/* ==================== CARGO OPTIONS ==================== */
.cargo-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.cargo-card {
  position: relative;
  cursor: pointer;
}
.cargo-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cargo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1.5px solid #E3EDE7;
  border-radius: 10px;
  background: #fff;
  transition: .2s;
  text-align: center;
  min-height: 90px;
}
.cargo-card:hover .cargo-inner {
  border-color: #86EFAC;
  background: #F0FDF4;
}
.cargo-card input:checked + .cargo-inner {
  border-color: #16A34A;
  background: #F0FDF4;
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}
.cargo-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.cargo-title {
  font-size: .75rem;
  font-weight: 700;
  color: #1A2332;
}

/* ==================== PRICE PREVIEW ==================== */
.price-preview {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
  border: 1.5px solid #BBF7D0;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: .85rem;
  color: #166534;
}
.price-row + .price-row {
  border-top: 1px dashed rgba(22,163,74,.2);
  margin-top: 4px;
  padding-top: 10px;
}
.price-big {
  color: #15803D;
  font-size: 1.1rem;
  font-weight: 900;
}
.price-note {
  font-size: .7rem;
  color: #166534;
  margin: 8px 0 0;
  text-align: center;
  opacity: .85;
}

/* ==================== GUEST NOTE ==================== */
.booking-guest-note {
  background: #EFF6FF;
  color: #1E40AF;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .82rem;
  margin: 12px 0;
  border: 1px solid #BFDBFE;
  line-height: 1.7;
}
.booking-guest-note a {
  color: #1E40AF;
  font-weight: 700;
}
.booking-user-note {
  background: #F0FDF4;
  color: #166534;
  border-color: #BBF7D0;
}

/* ==================== SUMMARY ==================== */
.booking-summary {
  margin-top: 16px;
  padding: 14px;
  background: #F7FAF8;
  border-radius: 12px;
  border: 1px solid #E3EDE7;
}
.booking-summary h3 {
  font-size: .9rem;
  margin: 0 0 10px;
  color: #0F3D2E;
  padding-bottom: 8px;
  border-bottom: 1px dashed #E3EDE7;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  font-size: .82rem;
}
.summary-row span {
  color: #5F6B7A;
}
.summary-row strong {
  color: #1A2332;
  text-align: left;
  direction: ltr;
}
.summary-row strong#sumVolume,
.summary-row strong#sumFloors {
  direction: rtl;
}
.summary-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #E3EDE7;
}
.summary-total strong {
  color: #15803D !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
}

/* ==================== ACTIONS ==================== */
.booking-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #E3EDE7;
}
.booking-actions-dual {
  justify-content: space-between;
}
.booking-actions .btn {
  padding: 10px 20px;
  font-size: .88rem;
  font-weight: 700;
  border-radius: 10px;
}
.btn-secondary {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-secondary:hover {
  background: #E2E8F0;
  color: #1E293B;
}

/* ==================== SUCCESS PAGE ==================== */
.booking-success-page {
  padding: 40px 0 60px;
  background: #F7FAF8;
  min-height: calc(100vh - 72px);
}
.success-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 32px 26px 26px;
  box-shadow: 0 12px 32px rgba(15,61,46,.08);
  text-align: center;
  border: 1px solid #E3EDE7;
  position: relative;
  overflow: hidden;
}
.success-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, #16A34A, #10B981, #34D399);
}
.success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  line-height: 1;
}
.success-card h1 {
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: #166534;
  font-weight: 800;
}
.success-subtitle {
  color: #5F6B7A;
  font-size: .82rem;
  margin: 0 0 20px;
  line-height: 1.7;
}
.success-details {
  background: #F7FAF8;
  border-radius: 12px;
  border: 1px solid #E3EDE7;
  padding: 14px;
  text-align: right;
  margin-bottom: 18px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: .82rem;
  border-bottom: 1px dashed #E3EDE7;
}
.detail-row:last-child { border-bottom: 0; }
.detail-row span { color: #5F6B7A; }
.detail-row strong { color: #1A2332; }
.detail-row strong[dir], .detail-row strong.tracking-num { direction: ltr; }
.detail-total strong {
  color: #15803D !important;
  font-size: 1rem;
  font-weight: 900;
}
.status-pending {
  color: #92400E !important;
  background: #FEF3C7;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: .72rem;
}
.success-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.success-actions .btn {
  padding: 10px 18px;
  font-size: .85rem;
  border-radius: 9px;
}
.success-note {
  background: #EFF6FF;
  color: #1E40AF;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .78rem;
  margin-top: 16px;
  border: 1px solid #BFDBFE;
  line-height: 1.7;
}
.success-note a { color: #1E40AF; font-weight: 700; }

/* ==================== MOBILE ==================== */
@media (max-width: 700px) {
  .booking-page { padding: 12px 0 40px; }
  .booking-header h1 { font-size: 1.1rem; }
  .booking-header p { font-size: .78rem; }

  .booking-steps { gap: 4px; }
  .booking-step { padding: 8px 4px; }
  .step-num { width: 24px; height: 24px; font-size: .75rem; }
  .step-label { font-size: .62rem; }

  .booking-panel { padding: 16px 14px; }
  .booking-panel h2 { font-size: .92rem; }

  .booking-grid-2 { grid-template-columns: 1fr; gap: 10px; }

  .cargo-options { grid-template-columns: repeat(2, 1fr); }
  .cargo-inner { padding: 10px 6px; min-height: 80px; }
  .cargo-icon { font-size: 1.3rem; }
  .cargo-title { font-size: .68rem; }

  .booking-form input,
  .booking-form select { font-size: 16px; padding: 10px 11px; }

  .price-big { font-size: 1rem; }

  .booking-actions-dual { flex-direction: column-reverse; }
  .booking-actions .btn { width: 100%; }

  .success-card { padding: 24px 18px 20px; }
  .success-icon { font-size: 2.4rem; }
  .success-card h1 { font-size: 1rem; }
  .success-actions { flex-direction: column; }
  .success-actions .btn { width: 100%; }
}