/* ===========================
   RED MANGO — BOOK-CONFIRMATION.CSS
   =========================== */

.confirmation-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  padding: 40px 20px;
}

.confirmation-wrapper {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.confirmation-logo img {
  height: 90px;
  width: auto;
  margin: 0 auto 32px;
  display: block;
}

.confirmation-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top-color: rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 40px 32px;
  backdrop-filter: blur(20px) saturate(160%) brightness(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(160%) brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.35);
}

.confirmation-spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 20px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: confirmationSpin 0.8s linear infinite;
}

@keyframes confirmationSpin {
  to { transform: rotate(360deg); }
}

.confirmation-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.confirmation-icon.is-success {
  background: rgba(46, 125, 50, 0.16);
  border: 1px solid rgba(46, 125, 50, 0.4);
  color: #6fcf97;
}

.confirmation-icon.is-pending {
  background: rgba(240, 192, 64, 0.16);
  border: 1px solid rgba(240, 192, 64, 0.4);
  color: var(--gold);
}

.confirmation-icon.is-error {
  background: rgba(192, 57, 43, 0.16);
  border: 1px solid rgba(192, 57, 43, 0.4);
  color: var(--red);
}

.confirmation-status-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
}

.confirmation-subtext {
  font-size: 13px;
  font-weight: 400;
  color: var(--grey);
  line-height: 1.6;
  margin-top: 8px;
}

.confirmation-reference {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  margin-top: 14px;
}

.confirmation-details {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}
/* ===== Manual booking lookup form ===== */

#lookup-form {
  text-align: left;
}

.confirmation-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--cream);
  padding: 12px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  border-radius: 8px;
  outline: none;
  margin-top: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.confirmation-input:focus {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.09);
}

.confirmation-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

#lookup-form .confirmation-action-btn {
  width: 100%;
  margin-top: 18px;
}

.confirmation-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 12px;
  line-height: 1.5;
}

.confirmation-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  color: var(--cream);
}

.confirmation-detail-row span:first-child {
  color: var(--grey);
}

.confirmation-detail-row span:last-child {
  font-weight: 600;
  text-align: right;
}

.confirmation-detail-subtotal {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.confirmation-detail-fee span:first-child {
  font-style: italic;
  color: var(--grey);
}

.confirmation-detail-fee span:last-child {
  color: var(--grey);
  font-weight: 500;
}

.confirmation-detail-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 700;
  font-size: 14px;
}

.confirmation-detail-total span:last-child {
  color: var(--red);
  font-size: 16px;
}

.confirmation-next-steps {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  color: var(--grey);
  line-height: 1.6;
  text-align: left;
}

/* ===== Action buttons (download, calendar) ===== */

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.confirmation-action-btn {
  flex: 1;
  min-width: 140px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.confirmation-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

.confirmation-action-btn.is-primary {
  background: var(--red);
  border-color: var(--red);
}

.confirmation-action-btn.is-primary:hover {
  background: var(--red-dark);
}

/* ===== Contact block ===== */

.confirmation-contact {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.confirmation-contact-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.confirmation-contact-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.confirmation-contact-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.3s;
}

.confirmation-contact-link:hover {
  color: var(--red);
}

.confirmation-address {
  margin-top: 14px;
  font-size: 12px;
  color: var(--grey);
  line-height: 1.6;
}

.confirmation-address a {
  color: var(--grey);
  text-decoration: underline;
}

.confirmation-address a:hover {
  color: var(--cream);
}

.confirmation-home-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--grey);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}

.confirmation-home-link:hover {
  color: var(--cream);
}

/* ===== Print styles — used when "Download Booking Slip" triggers window.print() ===== */
/* Only the receipt block is shown; everything else (buttons, contact
   links, background, home link) is hidden so the saved PDF looks like
   a clean receipt, not a screenshot of the whole page. */

@media print {
  /* This is the actual fix for the blank space: undo the on-screen
     flex-centering (which was reserving a full viewport-height of
     space to "center" the card) so print content starts at the top
     of the page like a normal document. */

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .confirmation-body {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: white !important;
  }

  .confirmation-wrapper {
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Only hide elements that make sense on-screen but not on a printed
     document — buttons can't be clicked on paper, contact links and the
     home link are screen navigation. The logo stays. */
  .confirmation-home-link,
  .confirmation-actions,
  .confirmation-contact {
    display: none !important;
  }

  .confirmation-logo img {
    height: 50px;
    filter: none;
  }

  .confirmation-card {
    background: white !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
  }

  #print-receipt {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 40px 20px;
    background: white;
    color: #1a1a1a;
    font-family: 'Montserrat', sans-serif;
  }

  #print-receipt .confirmation-icon,
  #print-receipt .confirmation-status-text,
  #print-receipt .confirmation-subtext,
  #print-receipt .confirmation-reference {
    display: none;
  }

  .print-doc-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1a1a1a;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 2px solid #c0392b;
  }

  #print-receipt .confirmation-details {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
  }

  #print-receipt .confirmation-detail-row {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
  }

  #print-receipt .confirmation-detail-row span:first-child {
    color: #2b2b2b;
    font-weight: 500;
  }

  #print-receipt .confirmation-detail-row span:last-child {
    color: #1a1a1a;
    font-weight: 700;
  }

  #print-receipt .confirmation-next-steps {
    background: #f7f6f4;
    color: #444;
    border: 1px solid #e0e0e0;
    margin-top: 18px;
    font-size: 11.5px;
  }

  .print-only-footer {
    display: block !important;
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid #e0e0e0;
    font-size: 10.5px;
    color: #242424;
    text-align: center;
    line-height: 1.6;
  }

  @page {
    margin: 15mm;
  }
}
.print-only-footer {
  display: none;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 480px) {
  .confirmation-action-btn {
    min-width: 100%;
  }
}

/* Touch devices: bump inputs to 16px to prevent iOS auto-zoom on focus */
@media (pointer: coarse) {
  .confirmation-input {
    font-size: 16px;
  }
}