/* Public guest appointment booking */
.guest-book-page .page-hero--book {
  background: linear-gradient(135deg, rgba(27, 73, 101, 0.95), rgba(13, 33, 55, 0.9));
  color: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.guest-book-section {
  max-width: 920px;
  margin: 0 auto;
}

.guest-book-card {
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}

.guest-book-step-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.5rem 0 1rem;
  font-size: 1.1rem;
  color: var(--md-secondary, #1b4965);
}

.guest-book-step-title:first-child {
  margin-top: 0;
}

.guest-book-step-title .material-icons-round {
  color: var(--md-primary, #e85d04);
  font-size: 1.35rem;
}

.guest-book-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.guest-book-fields--patient {
  margin-bottom: 1.25rem;
}

.guest-book-fields .md-field--full {
  grid-column: 1 / -1;
}

.req { color: #c62828; }
.opt { font-weight: 400; color: #888; font-size: 0.85em; }

/* OTP modal */
.guest-otp-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.guest-otp-modal[hidden] {
  display: none !important;
}

.guest-otp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.guest-otp-modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.guest-otp-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Receipt */
.guest-receipt-wrap {
  margin-top: 1.5rem;
}

.guest-receipt {
  border: 2px dashed rgba(27, 73, 101, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  background: #fafbfc;
}

.guest-receipt__head {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(27, 73, 101, 0.12);
}

.guest-receipt__head h2 {
  margin: 0.5rem 0 0;
  color: var(--md-secondary, #1b4965);
}

.guest-receipt__ref {
  margin: 0.35rem 0 0;
  color: var(--md-primary, #e85d04);
}

.guest-receipt__grid {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.guest-receipt__grid div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.5rem;
  align-items: start;
}

.guest-receipt__grid dt {
  margin: 0;
  font-weight: 700;
  font-size: 0.82rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.guest-receipt__grid dd {
  margin: 0;
  font-size: 0.95rem;
  color: #111;
}

.guest-receipt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
  justify-content: center;
}

.guest-receipt__photo-preview img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .guest-book-fields {
    grid-template-columns: 1fr;
  }
  .appt-receipt-sheet__header {
    flex-direction: column;
  }
  .appt-receipt-sheet__badge {
    text-align: left;
  }
  .appt-receipt-sheet__table th,
  .appt-receipt-sheet__table td {
    display: block;
    width: 100%;
  }
}

/* Appointment payment options (patient + guest booking) */
.appt-payment-section {
  margin: 1.25rem 0 1rem;
  padding: 1.15rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46, 196, 182, 0.08), rgba(27, 73, 101, 0.05));
  border: 1px solid rgba(27, 73, 101, 0.1);
}

.appt-payment-section__title {
  margin-top: 0 !important;
}

.appt-payment-fee {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--md-secondary, #1b4965);
}

.appt-payment-fee strong {
  font-size: 1.25rem;
  color: var(--md-primary, #e85d04);
}

.appt-payment-fee__hint {
  font-size: 0.88rem;
}

.appt-payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.appt-payment-opt {
  cursor: pointer;
  margin: 0;
}

.appt-payment-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.appt-payment-opt__box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  height: 100%;
}

.appt-payment-opt__box .material-icons-round {
  color: var(--md-primary, #e85d04);
  font-size: 1.35rem;
}

.appt-payment-opt__box strong {
  font-size: 0.95rem;
  color: var(--md-secondary, #1b4965);
}

.appt-payment-opt__box span:last-child {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

.appt-payment-opt input:checked + .appt-payment-opt__box {
  border-color: var(--md-primary, #e85d04);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}

.appt-payment-opt:hover .appt-payment-opt__box {
  border-color: rgba(232, 93, 4, 0.35);
  transform: translateY(-1px);
}
