/* ==========================================================================
   E-Ticket Receipt & Boarding Pass Styles (with Print Media Support)
   ========================================================================== */

.confirmation-wrap {
  padding: 3rem 0 5rem 0;
}

/* Success Banner */
.success-hero-banner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--success-light);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.15);
}

.success-icon-wrap svg {
  width: 36px;
  height: 36px;
}

.pnr-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}

.pnr-code {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.08em;
}

/* Boarding Pass Container */
.boarding-pass-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-width: 860px;
  margin: 0 auto 3rem auto;
  overflow: hidden;
  position: relative;
}

/* Header Strip */
.pass-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
  color: #ffffff;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pass-airline-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.pass-flight-type {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Pass Body Grid */
.pass-body {
  display: grid;
  grid-template-columns: 2.3fr auto 1fr;
  align-items: stretch;
  background: #ffffff;
}

.pass-main-section {
  padding: 2rem;
}

/* Scalloped Perforation Divider */
.pass-perforation {
  position: relative;
  width: 0;
  border-left: 2px dashed var(--border-color);
}

.pass-perforation::before,
.pass-perforation::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--bg-body);
  border-radius: var(--radius-full);
  left: -12px;
}

.pass-perforation::before { top: -12px; }
.pass-perforation::after { bottom: -12px; }

/* Flight Route Details */
.pass-route-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.pass-airport-code {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
}

.pass-city-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.pass-time-tag {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.2rem;
}

.pass-flight-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary);
}

/* Info Grid */
.pass-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.info-cell-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.info-cell-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
}

.info-cell-value.highlight {
  font-size: 1.2rem;
  color: var(--primary);
  font-family: var(--font-display);
}

/* Barcode Simulation */
.pass-barcode-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.barcode-svg {
  height: 48px;
  width: 220px;
}

/* Pass Tear-Off Stub (Right Section) */
.pass-stub-section {
  background: #fafafa;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.stub-route {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.stub-qr-code {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  background: #ffffff;
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

/* Action Buttons Bar */
.pass-actions-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Pre-flight checklist card */
.checklist-card {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-color);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.check-step {
  display: flex;
  gap: 0.85rem;
}

.check-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Print Stylesheet (@media print)
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
  }

  .site-header,
  .site-footer,
  .top-bar,
  .pass-actions-bar,
  .btn,
  .checklist-card,
  .toast-container {
    display: none !important;
  }

  .confirmation-wrap {
    padding: 0 !important;
  }

  .boarding-pass-card {
    box-shadow: none !important;
    border: 2px solid #000000 !important;
    page-break-inside: avoid;
    max-width: 100% !important;
  }

  .pass-header {
    background: #1e293b !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@media (max-width: 768px) {
  .pass-body {
    grid-template-columns: 1fr;
  }
  .pass-perforation {
    display: none;
  }
  .pass-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}
