/* ============================================================
   booking_confirmation.css
   Styles for Post-Booking Priest Location Reveal, Confirmation Card,
   Action Buttons, and Pre-Booking Security Banner.
   ============================================================ */

/* ---------- Pre-Booking Location Notice ---------- */
.prebooking-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(234, 88, 12, 0.08);
  border: 1px dashed var(--brand-primary, #ea580c);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.prebooking-notice-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.prebooking-notice-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-gold, #fbbf24);
  margin-bottom: 4px;
}
.prebooking-notice-text {
  font-size: 0.85rem;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Post-Booking Confirmation Section ---------- */
.booking-confirmation-wrapper {
  animation: fadeIn 0.4s ease-out;
}
.confirmation-status-banner {
  text-align: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 16px;
  padding: 28px 20px;
  margin-bottom: 32px;
}
.confirmation-check {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 12px;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.4);
}
.confirmation-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}
.confirmation-subtitle {
  font-size: 0.95rem;
  color: #a7f3d0;
  margin: 0;
}

/* ---------- Grid Layout for Confirmation Details ---------- */
.confirmation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .confirmation-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Booking Summary Card ---------- */
.booking-summary-card {
  background: var(--card-bg, #1e293b);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.card-header-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent, #ea580c);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.booking-id-badge {
  display: inline-block;
  background: rgba(234, 88, 12, 0.15);
  color: #fbbf24;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}
.summary-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.summary-detail-row:last-child {
  border-bottom: none;
}
.summary-label {
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
}
.summary-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #f8fafc);
  text-align: right;
}

/* ---------- Assigned Priest Card ---------- */
.priest-reveal-card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1.5px solid rgba(234, 88, 12, 0.3);
  border-radius: 16px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
.priest-reveal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ea580c, #fbbf24);
}
.priest-header-flex {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.priest-avatar-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea580c, #b45309);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.4);
  flex-shrink: 0;
}
.priest-name-h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
}
.priest-title-sub {
  font-size: 0.82rem;
  color: #fbbf24;
  margin: 0;
  line-height: 1.3;
}
.priest-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.priest-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
}
.priest-info-icon {
  font-size: 1.1rem;
  color: #ea580c;
  flex-shrink: 0;
  margin-top: 2px;
}
.priest-info-text strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 2px;
}
.priest-info-text span {
  color: #ffffff;
  font-weight: 600;
}

/* ---------- Google Maps Embed Section ---------- */
.map-container-card {
  background: var(--card-bg, #1e293b);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
}
.map-header-bar {
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.map-header-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-iframe-wrapper {
  width: 100%;
  height: 320px;
  position: relative;
  background: #0f172a;
}
.map-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Action Buttons Grid ---------- */
.action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 850px) {
  .action-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .action-buttons-grid {
    grid-template-columns: 1fr;
  }
}
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.action-btn-directions {
  background: #ea580c;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}
.action-btn-directions:hover {
  background: #c2410c;
  transform: translateY(-2px);
}
.action-btn-call {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
.action-btn-call:hover {
  background: #0369a1;
  transform: translateY(-2px);
}
.action-btn-whatsapp {
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}
.action-btn-whatsapp:hover {
  background: #16a34a;
  transform: translateY(-2px);
}
.action-btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.action-btn-copy:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ---------- Email Preview Modal / Panel ---------- */
.email-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.email-preview-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.email-card-box {
  width: 92%;
  max-width: 620px;
  background: #ffffff;
  color: #1e293b;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.email-card-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}
