/* ============================================================
   RECEIPT MODAL + CONFIRMATION SLIP + ADMIT CARD
============================================================ */

/* MODAL */
.receipt-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.receipt-modal.open {
  opacity: 1;
  visibility: visible;
}

.receipt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(122, 31, 31, 0.75);
  backdrop-filter: blur(4px);
}

.receipt-modal-panel {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--cream, #FDFBF7);
  border-radius: 12px;
  padding: 36px 32px 28px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line-gold, rgba(201, 162, 39, 0.3));
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(.22, .78, .3, 1);
}

.receipt-modal.open .receipt-modal-panel {
  transform: translateY(0);
}

.receipt-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy, #7A1F1F);
  color: var(--gold, #C9A227);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--gold, #C9A227);
  transition: all 0.3s ease;
  z-index: 5;
}
.receipt-close:hover {
  background: var(--gold, #C9A227);
  color: var(--navy, #7A1F1F);
  transform: rotate(90deg);
}

/* SUCCESS HEAD */
.receipt-success-head {
  text-align: center;
  margin-bottom: 26px;
}
.receipt-check {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #2E8B57;
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(46, 139, 87, 0.35);
  animation: popCheck 0.5s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes popCheck {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.receipt-success-head h3 {
  font-family: var(--display, serif);
  color: var(--navy, #7A1F1F);
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.receipt-success-head p {
  font-size: 0.92rem;
  color: var(--text-soft, #5A5A5A);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ACTIONS */
.receipt-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* PREVIEW */
.receipt-preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 18px;
}
.preview-divider {
  height: 1px;
  background: dashed 1px var(--line-gold, rgba(201, 162, 39, 0.4));
  border-top: 1px dashed var(--line-gold, rgba(201, 162, 39, 0.4));
  margin: 6px 0;
}

/* ============================================================
   PRINT DOCUMENT (shared by slip + admit)
============================================================ */
.print-doc {
  background: #fff;
  border: 2px solid var(--navy, #7A1F1F);
  border-radius: 8px;
  padding: 26px 30px;
  font-family: var(--sans, sans-serif);
  color: #1A1A1A;
  position: relative;
}
.print-doc::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--gold, #C9A227);
  border-radius: 5px;
  pointer-events: none;
}

/* Header (slip) */
.doc-header {
  display: flex;
  gap: 18px;
  align-items: center;
  border-bottom: 2px solid var(--navy, #7A1F1F);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.doc-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
}
.doc-head-text h1 {
  font-family: var(--display, serif);
  color: var(--navy, #7A1F1F);
  font-size: 1.5rem;
  margin: 0 0 2px;
  letter-spacing: 0.02em;
}
.doc-sub {
  font-size: 0.78rem;
  color: var(--gold, #C9A227);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 4px;
}
.doc-addr {
  font-size: 0.78rem;
  color: #5A5A5A;
  line-height: 1.5;
}
.doc-contact {
  font-size: 0.75rem;
  color: #5A5A5A;
  margin-top: 4px;
}
.doc-reg {
  font-size: 0.72rem;
  color: #7A1F1F;
  font-weight: 600;
  margin-top: 3px;
}

/* Title bar */
.doc-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navy, #7A1F1F);
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.doc-title-bar h2 {
  color: #fff;
  font-family: var(--display, serif);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  margin: 0;
}
.doc-date {
  font-size: 0.78rem;
  color: var(--gold-light, #E0B93C);
  font-weight: 600;
}

/* Info table */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.85rem;
}
.doc-table tr {
  border-bottom: 1px solid #ECE7DA;
}
.doc-table tr:nth-child(even) {
  background: #FAF7EF;
}
.doc-table th {
  text-align: left;
  padding: 9px 12px;
  font-weight: 600;
  color: #7A1F1F;
  width: 38%;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.doc-table td {
  padding: 9px 12px;
  color: #1A1A1A;
}
.badge-status {
  display: inline-block;
  padding: 3px 12px;
  background: #FFF3CD;
  color: #856404;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Terms */
.doc-terms {
  border: 1px dashed #C9A227;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 22px;
  background: #FFFDF6;
}
.doc-terms h3 {
  font-family: var(--display, serif);
  font-size: 0.9rem;
  color: #7A1F1F;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.doc-terms ol {
  padding-left: 18px;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #444;
}
.doc-terms ol li {
  margin-bottom: 4px;
}

/* Signature row */
.doc-sign-row {
  display: flex;
  justify-content: space-between;
  margin: 30px 8px 20px;
  gap: 30px;
}
.doc-sign {
  flex: 1;
  text-align: center;
}
.sign-line {
  display: block;
  border-top: 1.5px solid #333;
  margin-bottom: 6px;
  width: 100%;
}
.doc-sign p {
  font-size: 0.75rem;
  color: #555;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Footer */
.doc-footer {
  text-align: center;
  font-size: 0.7rem;
  color: #888;
  border-top: 1px solid #EEE;
  padding-top: 10px;
  margin-top: 10px;
  font-style: italic;
}

/* ============================================================
   ADMIT CARD
============================================================ */
.admit-card {
  padding: 22px 24px;
}
.admit-header {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid #7A1F1F;
  padding-bottom: 12px;
  margin-bottom: 16px;
  position: relative;
}
.admit-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.admit-header h1 {
  font-family: var(--display, serif);
  font-size: 1.15rem;
  color: #7A1F1F;
  margin: 0;
}
.admit-header p {
  font-size: 0.72rem;
  color: #666;
  line-height: 1.5;
  margin-top: 2px;
}
.admit-tag {
  position: absolute;
  right: 0;
  top: 0;
  background: #7A1F1F;
  color: #C9A227;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  border: 1px solid #C9A227;
}

.admit-body {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 20px;
  margin-bottom: 18px;
}
.admit-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  align-content: start;
}
.admit-field {
  border-bottom: 1px dashed #DDD;
  padding-bottom: 5px;
}
.admit-field label {
  display: block;
  font-size: 0.62rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 2px;
}
.admit-field span {
  font-size: 0.85rem;
  color: #1A1A1A;
  font-weight: 500;
}
.admit-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.admit-photo {
  width: 130px;
  height: 150px;
  border: 2px solid #7A1F1F;
  background: #F8F4EC;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}
.admit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admit-photo span {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.6rem;
  color: #fff;
  background: rgba(122, 31, 31, 0.75);
  padding: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admit-sign-box {
  width: 100%;
  text-align: center;
}
.admit-sign-box .sign-line {
  border-top: 1.5px solid #333;
  margin-bottom: 4px;
  display: block;
}
.admit-sign-box p {
  font-size: 0.68rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.admit-instructions {
  border: 1px dashed #C9A227;
  border-radius: 5px;
  padding: 10px 14px;
  background: #FFFDF6;
  margin-bottom: 12px;
}
.admit-instructions h4 {
  font-family: var(--display, serif);
  font-size: 0.78rem;
  color: #7A1F1F;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admit-instructions ul {
  padding-left: 18px;
  font-size: 0.72rem;
  color: #555;
  line-height: 1.6;
}
.admit-instructions ul li {
  list-style: disc;
  margin-bottom: 2px;
}

/* ============================================================
   ADMIT CARD — SCHEDULE SECTION
============================================================ */
.admit-schedule {
  border: 1px solid var(--line-gold, rgba(201, 162, 39, 0.4));
  border-radius: 6px;
  padding: 12px 16px;
  background: #FFFDF6;
  margin-bottom: 12px;
}

.admit-schedule h4 {
  font-family: var(--display, serif);
  font-size: 0.82rem;
  color: #7A1F1F;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #C9A227;
}
.admit-schedule h4 i {
  color: #C9A227;
  font-size: 0.85rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.schedule-item {
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  border-left: 3px solid #C9A227;
  background: #fff;
  border-radius: 3px;
}

.schedule-item.highlight {
  background: #FFF4D6;
  border-left-color: #7A1F1F;
}

.schedule-label {
  font-size: 0.62rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 2px;
}

.schedule-value {
  font-size: 0.82rem;
  color: #1A1A1A;
  font-weight: 600;
  line-height: 1.4;
}

.schedule-item.highlight .schedule-value {
  color: #7A1F1F;
  font-size: 0.9rem;
}

.schedule-item small {
  font-size: 0.62rem;
  color: #999;
  font-style: italic;
  margin-top: 1px;
}

/* Mobile Responsive */
@media (max-width: 700px) {
  .schedule-grid {
    grid-template-columns: 1fr;
  }
  .admit-schedule {
    padding: 10px 12px;
  }
  .schedule-value {
    font-size: 0.78rem;
  }
}

.admit-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #888;
  border-top: 1px solid #EEE;
  padding-top: 8px;
  font-style: italic;
}

/* NOTE */
.receipt-note {
  text-align: center;
  font-size: 0.82rem;
  color: #856404;
  background: #FFF3CD;
  padding: 10px 16px;
  border-radius: 6px;
  border-left: 4px solid #C9A227;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .receipt-modal-panel { padding: 26px 18px 22px; }
  .receipt-actions { flex-direction: column; }
  .receipt-actions .btn { width: 100%; }

  .doc-header { flex-direction: column; text-align: center; }
  .doc-head-text h1 { font-size: 1.2rem; }
  .doc-table th { width: 42%; font-size: 0.72rem; padding: 7px 8px; }
  .doc-table td { font-size: 0.78rem; padding: 7px 8px; }
  .doc-sign-row { flex-direction: column; gap: 22px; }

  .admit-body { grid-template-columns: 1fr; }
  .admit-left { grid-template-columns: 1fr; }
  .admit-right { flex-direction: row; justify-content: space-around; }
  .admit-photo { width: 100px; height: 120px; }
  .admit-tag { position: static; margin-left: auto; }
  .admit-header { flex-wrap: wrap; }
}

/* PRINT MODE */
.print-area {
  display: none;
}
@media print {
  body > *:not(.print-area.active) { display: none !important; }
  .print-area.active {
    display: block !important;
    padding: 0;
    background: #fff;
  }
  .print-area .print-doc {
    border: 2px solid #7A1F1F;
    box-shadow: none;
    page-break-inside: avoid;
  }
  .print-area .admit-card {
    page-break-before: always;
  }
  
  @page { size: A4; margin: 10mm; }
}



.doc-table th, .doc-table td { padding-top: 6px !important; padding-bottom: 6px !important; }
.doc-terms { padding: 10px 14px !important; }
.doc-terms li { font-size: 11px !important; line-height: 1.4 !important; }





/* Signature row - slip */
.doc-sign-row { margin: 34px 8px 10px; }

/* Signature row - admit card */
.admit-sign-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin: 30px 6px 14px;
}
.admit-sign { flex: 1; text-align: center; }
.admit-sign .sign-line {
  display: block;
  border-top: 1.5px solid #333;
  margin-bottom: 4px;
  width: 100%;
}
.admit-sign p {
  font-size: 0.68rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin: 0;
}

