/* Parent booking wizard — matches public site room showcase + checkout layout */

:root {
  --pb-primary: #003399;
  --pb-primary-dark: #002A7A;
  --pb-cream: #FAF6F0;
  --pb-warm: #FEF5ED;
  --pb-text: #3D3229;
  --pb-muted: #6B5E52;
  --pb-border: #E8DFD4;
  --pb-gold: #C9A227;
  --pb-success: #5a7d5e;
  --pb-font-display: 'Cormorant Garamond', Georgia, serif;
  --pb-font-body: 'Outfit', system-ui, sans-serif;
  --pb-radius: 12px;
  --pb-shadow: 0 8px 30px rgba(26, 20, 16, 0.08);
}

body.parent-portal {
  background: var(--pb-cream);
  font-family: var(--pb-font-body);
  color: var(--pb-text);
  padding-top: 64px;
}

.parent-portal main,
.parent-main {
  max-width: 1140px;
  padding-top: 2rem;
}

/* Parent navbar */
.parent-navbar {
  background: #1A1410;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  z-index: 1030;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.parent-navbar-container {
  max-width: 1140px;
}

.parent-navbar-logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.parent-logo-img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.parent-navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
  padding: 0.35rem 0.55rem;
}

.parent-navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

.parent-navbar .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
}

.parent-nav-links {
  gap: 0.25rem;
}

.parent-nav-logout {
  margin: 0;
  padding: 0;
}

.parent-portal .btn-primary {
  background: var(--pb-primary);
  border-color: var(--pb-primary);
}

.parent-portal .btn-primary:hover {
  background: var(--pb-primary-dark);
  border-color: var(--pb-primary-dark);
}

.parent-portal .btn-outline-primary {
  color: var(--pb-primary);
  border-color: var(--pb-primary);
}

.parent-portal .btn-outline-primary:hover {
  background: var(--pb-primary);
  border-color: var(--pb-primary);
  color: #fff;
}

/* Login card */
.parent-login-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 0 4px;
}

.parent-login-card {
  background: #fff;
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius);
  box-shadow: var(--pb-shadow);
  padding: 1.5rem;
}

.parent-login-card h2 {
  font-family: var(--pb-font-display);
  font-size: 1.75rem;
  font-weight: 600;
}

.parent-login-card .form-control {
  min-height: 48px;
  font-size: 16px;
}

.parent-login-card .btn-primary {
  min-height: 48px;
  font-weight: 500;
}

.parent-login-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #eef3fc;
  border: 1px solid #d4e2f5;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 1.5rem;
  text-align: left;
}

.parent-login-info-icon {
  flex-shrink: 0;
  color: var(--pb-primary);
  margin-top: 2px;
}

.parent-login-info-body {
  flex: 1;
  min-width: 0;
}

.parent-login-info-title {
  font-weight: 700;
  color: var(--pb-primary);
  font-size: 0.95rem;
  margin: 0 0 6px;
  line-height: 1.3;
}

.parent-login-info-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #2c4a6e;
}

/* Public website layout (parent login) */
body.public-page .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 253, 249, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  body.public-page .header {
    top: var(--top-bar-height);
  }
}

body.public-page .header .nav a {
  color: var(--color-text);
}

body.public-page .header .menu-toggle span {
  background: var(--color-dark);
}

body.public-page .header .btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

body.public-page main.public-main {
  min-height: 55vh;
  padding-top: calc(var(--header-height) + 24px);
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  body.public-page main.public-main {
    padding-top: calc(var(--top-bar-height) + var(--header-height) + 40px);
  }
}

body.public-page .parent-login-card h2,
body.public-page .parent-login-card .parent-login-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.25rem;
  color: var(--color-dark);
}

body.public-page .parent-login-card .parent-login-subtitle {
  text-align: center;
  margin: -0.75rem 0 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

body.public-page .parent-login-wrap {
  margin-top: 0;
}

body.public-page .parent-login-card .parent-login-form {
  margin-top: 0.25rem;
}

body.public-page .parent-login-card .form-group {
  margin-bottom: 1.25rem;
}

body.public-page .parent-login-card .form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-dark);
}

body.public-page .parent-login-card .form-group input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-warm-white);
  transition: border-color var(--transition);
}

body.public-page .parent-login-card .form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.12);
}

body.public-page .parent-login-card .parent-field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #b42318;
}

body.public-page .parent-login-card .parent-login-alert {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #912018;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

body.public-page .parent-login-card .parent-login-submit {
  display: flex;
  width: 100%;
  min-height: 48px;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
}

body.public-page .parent-login-card .parent-login-footnote {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

body.public-page .parent-login-card .parent-login-footnote a {
  color: var(--color-primary);
  font-weight: 500;
}

body.public-page .parent-login-card .parent-login-footnote a:hover {
  color: var(--color-primary-dark);
}

body.public-page .parent-login-card .btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

body.public-page .parent-login-card .btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* Step indicator */
.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 0.5rem;
  margin-bottom: 40px;
}

.booking-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--pb-muted);
}

.booking-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--pb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: #fff;
}

.booking-step.active .booking-step-num {
  background: var(--pb-primary);
  border-color: var(--pb-primary);
  color: #fff;
}

.booking-step.active {
  color: var(--pb-text);
  font-weight: 600;
}

.booking-step.done .booking-step-num {
  background: var(--pb-success);
  border-color: var(--pb-success);
  color: #fff;
}

.booking-step-line {
  width: 48px;
  height: 2px;
  background: var(--pb-border);
}

.booking-step-line.done {
  background: var(--pb-success);
}

/* Step 1 — room selection */
.room-select-section {
  padding: 8px 0 40px;
}

.room-select-section .room-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}

.room-select-section .room-tab {
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--pb-muted);
  border: 1px solid var(--pb-border);
  border-radius: 50px;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.room-select-section .room-tab:hover,
.room-select-section .room-tab.active {
  background: var(--pb-primary);
  color: #fff;
  border-color: var(--pb-primary);
}

.room-select-section .room-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  animation: pbFadeIn 0.4s ease;
}

.room-select-section .room-panel.active {
  display: grid;
}

@media (min-width: 768px) {
  .room-select-section .room-panel {
    grid-template-columns: 1.1fr 1fr;
  }
}

@keyframes pbFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.room-select-section .room-image-wrap {
  position: relative;
  border-radius: var(--pb-radius);
  overflow: hidden;
  box-shadow: var(--pb-shadow);
}

.room-select-section .room-image-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.room-select-section .room-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(26, 20, 16, 0.85);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.room-select-section .room-number {
  font-family: var(--pb-font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--pb-border);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.room-select-section .room-details h2 {
  font-family: var(--pb-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 8px;
  color: #1A1410;
}

.room-select-section .room-occupancy {
  color: var(--pb-gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.room-select-section .room-desc {
  color: var(--pb-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.room-select-section .amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  list-style: none;
  padding: 0;
}

.room-select-section .amenities-list li {
  background: var(--pb-warm);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--pb-muted);
  border: 1px solid var(--pb-border);
}

.room-select-section .btn-continue,
.student-select-section .btn-continue,
.parent-portal .btn-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--pb-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--pb-font-body);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  min-width: 220px;
}

.room-select-section .btn-continue:hover,
.student-select-section .btn-continue:hover,
.parent-portal .btn-continue:hover {
  background: var(--pb-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 51, 153, 0.25);
}

/* Step 2 — checkout layout */
.booking-checkout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 992px) {
  .booking-checkout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.checkout-form-card {
  background: #fff;
  border-radius: var(--pb-radius);
  box-shadow: var(--pb-shadow);
  padding: 28px;
}

.checkout-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--pb-border);
}

.checkout-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.checkout-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1A1410;
}

.checkout-section-title svg {
  color: var(--pb-primary);
}

.checkout-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--pb-text);
}

.checkout-field label .req {
  color: #c0392b;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--pb-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
  outline: none;
  border-color: var(--pb-primary);
}

.checkout-field input[readonly] {
  background: #f8f6f3;
  color: var(--pb-muted);
}

.checkout-info-box {
  background: #eef3fc;
  border: 1px solid #d4e2f5;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: #2c4a6e;
  margin-bottom: 20px;
  line-height: 1.6;
}

.checkout-stay-hint {
  font-size: 0.85rem;
  color: var(--pb-muted);
  margin-top: 8px;
}

.checkout-sidebar {
  position: sticky;
  top: 24px;
}

.summary-card {
  background: #fff;
  border-radius: var(--pb-radius);
  box-shadow: var(--pb-shadow);
  overflow: hidden;
}

.summary-card-header {
  padding: 20px 20px 0;
}

.summary-room-row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.summary-room-row img {
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.summary-room-row h3 {
  font-family: var(--pb-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: #1A1410;
}

.summary-room-row p {
  font-size: 0.82rem;
  color: var(--pb-muted);
  margin: 0;
}

.summary-amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 0.8rem;
  color: var(--pb-muted);
  margin-bottom: 20px;
  padding: 0 20px;
  list-style: none;
}

.summary-amenities li::before {
  content: "• ";
  color: var(--pb-primary);
}

.summary-pricing {
  padding: 16px 20px;
  border-top: 1px solid var(--pb-border);
  background: #faf8f5;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--pb-muted);
}

.summary-line.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pb-success);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--pb-border);
}

.summary-note {
  padding: 12px 20px;
  font-size: 0.78rem;
  color: var(--pb-muted);
  text-align: center;
  background: #fff;
}

.summary-card .btn-proceed-payment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 14px 18px;
  background: #3d5c40;
  color: #fff;
  border: 2px solid var(--pb-gold);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--pb-font-body);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.summary-card .btn-proceed-payment:hover:not(:disabled) {
  background: #345035;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(61, 92, 64, 0.35);
}

.summary-card .btn-proceed-payment:disabled {
  background: #9aa89b;
  border-color: #c4c4c4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-proceed-payment-icon {
  flex-shrink: 0;
}

.btn-proceed-payment-text {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem;
  line-height: 1.3;
}

.btn-proceed-payment-sep {
  opacity: 0.9;
}

.availability-status {
  margin: 0 20px 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}

.availability-status.checking {
  background: #eef3fc;
  color: #2c4a6e;
  border: 1px solid #d4e2f5;
}

.availability-status.available {
  background: #edf5ee;
  color: #3d5c40;
  border: 1px solid #c5dcc8;
}

.availability-status.unavailable {
  background: #fdecea;
  color: #842029;
  border: 1px solid #f5c6cb;
}

/* Booking history */
.history-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.history-header h1 {
  font-family: var(--pb-font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #1A1410;
  margin-bottom: 4px;
}

.history-section {
  margin-bottom: 40px;
}

.history-section h2 {
  font-family: var(--pb-font-display);
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: #1A1410;
}

.history-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .history-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .history-cards { grid-template-columns: repeat(3, 1fr); }
}

.history-card {
  background: #fff;
  border-radius: var(--pb-radius);
  box-shadow: var(--pb-shadow);
  padding: 20px;
  border-left: 4px solid var(--pb-primary);
}

.history-card.past {
  border-left-color: var(--pb-border);
  opacity: 0.92;
}

.history-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.history-ref {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pb-muted);
}

.history-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 50px;
  background: #eef3fc;
  color: #2c4a6e;
}

.history-badge.status-confirmed { background: #edf5ee; color: #3d5c40; }
.history-badge.status-checkedin { background: #fff3cd; color: #856404; }
.history-badge.status-checkedout { background: #f0f0f0; color: #666; }
.history-badge.status-cancelled { background: #fdecea; color: #842029; }
.history-badge.status-pending { background: #eef3fc; color: #2c4a6e; }

.history-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1A1410;
}

.history-meta,
.history-dates {
  font-size: 0.88rem;
  color: var(--pb-muted);
  margin-bottom: 4px;
}

.history-amount {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pb-primary);
  margin-top: 12px;
  margin-bottom: 0;
}

.history-empty {
  background: #fff;
  border-radius: var(--pb-radius);
  padding: 32px;
  text-align: center;
  color: var(--pb-muted);
  box-shadow: var(--pb-shadow);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pb-primary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 24px;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.alert-booking {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #842029;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.char-count {
  font-size: 0.78rem;
  color: var(--pb-muted);
  text-align: right;
  margin-top: 4px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 160px;
  border: 1px solid var(--pb-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.qty-stepper input {
  flex: 1;
  text-align: center;
  border: none;
  border-left: 1px solid var(--pb-border);
  border-right: 1px solid var(--pb-border);
  border-radius: 0;
  padding: 10px 8px;
  font-weight: 600;
  -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: #f8f6f3;
  color: var(--pb-text);
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1;
}

.qty-btn:hover {
  background: var(--pb-border);
}

/* Step 0 — parent welcome + student selection */
.student-select-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 48px;
}

.parent-welcome {
  text-align: center;
  margin-bottom: 36px;
}

.parent-welcome-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pb-muted);
  margin-bottom: 8px;
}

.parent-welcome h1 {
  font-family: var(--pb-font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--pb-text);
  margin: 0 0 8px;
}

.parent-welcome-meta {
  color: var(--pb-muted);
  margin: 0;
}

.student-select-heading {
  font-family: var(--pb-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
}

.student-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.student-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 2px solid var(--pb-border);
  border-radius: var(--pb-radius);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin: 0;
}

.student-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.student-card:hover {
  border-color: #b8c9e8;
}

.student-card.selected {
  border-color: var(--pb-primary);
  box-shadow: 0 0 0 1px var(--pb-primary);
}

.student-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.student-card-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--pb-text);
}

.student-card-meta,
.student-card-class {
  font-size: 0.9rem;
  color: var(--pb-muted);
}

.student-card-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--pb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: transparent;
  flex-shrink: 0;
}

.student-card.selected .student-card-check {
  background: var(--pb-primary);
  border-color: var(--pb-primary);
  color: #fff;
}

.student-select-actions {
  text-align: center;
}

.student-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8eef8;
  border: 2px solid #d4e0f5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.student-avatar-sm {
  width: 36px;
  height: 36px;
  border-width: 1px;
}

.student-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.student-avatar-initial {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--pb-primary);
  line-height: 1;
}

.student-avatar-sm .student-avatar-initial {
  font-size: 0.9rem;
}

.student-avatar-fallback .student-avatar-initial,
.student-avatar-fallback:not(:has(.student-avatar-img:not([style*="display: none"]))) .student-avatar-initial {
  display: flex;
}

.student-avatar:not(.student-avatar-fallback) .student-avatar-initial[hidden] {
  display: none;
}

.booking-context-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 16px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius);
  font-size: 0.92rem;
  color: var(--pb-muted);
}

.booking-context-bar strong {
  color: var(--pb-text);
}

.booking-context-sep {
  color: var(--pb-border);
}

.booking-context-student {
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-context-parent {
  display: flex;
  align-items: center;
  gap: 8px;
}

.parent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #eef1f6;
  border: 1px solid #d8dee8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a96a8;
}

.parent-avatar-sm {
  width: 36px;
  height: 36px;
}

.parent-avatar-icon {
  width: 58%;
  height: 58%;
  display: block;
}

.booking-context-change {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--pb-primary);
  text-decoration: none;
  font-weight: 500;
}

.booking-context-change:hover {
  text-decoration: underline;
}

.confirmed-student-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #f0f4fb;
  border: 1px solid #d4e0f5;
  border-radius: var(--pb-radius);
}

.confirmed-student-details {
  flex: 1;
  min-width: 0;
}

.confirmed-student-box .student-avatar {
  width: 64px;
  height: 64px;
}

.confirmed-student-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: var(--pb-text);
}

.confirmed-student-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pb-muted);
}

.parent-nav-name {
  font-weight: 500;
  color: #e8dfd4 !important;
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .parent-navbar .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #1A1410;
  }

  .parent-nav-links {
    width: 100%;
    gap: 0;
  }

  .parent-navbar .nav-link {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .parent-nav-name {
    padding-bottom: 0.75rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.95rem;
  }

  .parent-nav-logout {
    width: 100%;
    padding-top: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  body.parent-portal {
    padding-top: 56px;
  }

  .parent-main {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1.5rem;
  }

  .parent-logo-img {
    height: 36px;
  }

  .booking-steps {
    gap: 6px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    padding: 0 4px;
  }

  .booking-step {
    font-size: 0.78rem;
    gap: 6px;
  }

  .booking-step-num {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .booking-step-line {
    width: 20px;
  }

  .booking-step > span:not(.booking-step-num) {
    max-width: 4.5rem;
    line-height: 1.2;
    text-align: center;
  }

  .parent-welcome h1 {
    font-size: 1.75rem;
  }

  .student-select-section .btn-continue,
  .parent-portal .btn-continue {
    width: 100%;
    min-width: 0;
  }

  .room-select-section .room-tab {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .room-select-section .btn-continue {
    width: 100%;
    min-width: 0;
  }

  .checkout-sidebar {
    position: static;
  }

  .summary-card .btn-proceed-payment {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
  }

  .history-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
  }

  .history-header .btn {
    width: 100%;
  }

  .parent-login-card {
    padding: 1.25rem;
  }

  .parent-login-card h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 400px) {
  .booking-step > span:not(.booking-step-num) {
    display: none;
  }

  .booking-step-line {
    width: 12px;
  }
}

@media (max-width: 640px) {
  .booking-context-change {
    margin-left: 0;
    width: 100%;
  }

  .booking-context-bar {
    font-size: 0.85rem;
  }
}

/* Booking confirmation receipt */
.booking-confirmation-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 0 32px;
}

.booking-receipt {
  background: #fff;
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius);
  box-shadow: var(--pb-shadow);
  padding: 2rem 1.75rem;
  text-align: center;
}

.booking-receipt-check {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 12px;
  color: #1A1410;
}

.booking-receipt-title {
  margin: 0 0 12px;
  font-family: var(--pb-font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: #1A1410;
}

.booking-receipt-label {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--pb-muted);
}

.booking-receipt-ref {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pb-primary);
}

.booking-receipt-details {
  margin-bottom: 1.25rem;
}

.booking-receipt-details p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--pb-text);
}

.booking-receipt-thanks {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--pb-muted);
}

.booking-receipt-thanks a {
  color: var(--pb-primary);
  font-weight: 500;
}

.booking-receipt-email {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--pb-muted);
}

.booking-confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 1.5rem;
}

.booking-confirmation-actions .btn {
  min-width: 150px;
}

@media print {
  body.parent-portal {
    background: #fff;
    padding-top: 0;
  }

  .parent-navbar,
  .no-print,
  .booking-confirmation-actions {
    display: none !important;
  }

  .parent-portal main,
  .parent-main {
    max-width: none;
    padding: 0;
  }

  .booking-confirmation-page {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .booking-receipt {
    border: none;
    box-shadow: none;
    padding: 24px 0;
  }
}
