/* ── ENROLL HERO ── */
.enroll-hero {
  position: relative;
  margin-top: 64px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 0 24px;
}
.enroll-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15,29,58,0.82) 0%, rgba(26,46,90,0.72) 100%),
    url('../bg_homepage.png') center/cover no-repeat;
  z-index: 0;
}
.enroll-hero-content {
  position: relative;
  z-index: 1;
}
.enroll-hero-pill {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.3);
}
.enroll-hero-content h1 {
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.enroll-hero-content p {
  font-size: 15.5px;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto;
}

/* ── SUCCESS POPUP ── */
.enroll-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,20,50,0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(5px);
  animation: fadeInOverlay 0.3s ease;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
.enroll-popup {
  background: #fff;
  border-radius: 20px;
  padding: 52px 44px 44px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 28px 72px rgba(10,20,50,0.25);
  animation: slideUpPopup 0.38s cubic-bezier(0.22,1,0.36,1);
}
@keyframes slideUpPopup {
  from { opacity: 0; transform: translateY(36px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.enroll-popup-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
  animation: popIcon 0.5s cubic-bezier(0.22,1,0.36,1) 0.15s both;
}
@keyframes popIcon {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.enroll-popup h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #1a2e5a;
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}
.enroll-popup p {
  font-size: 15px;
  color: #4a5a7a;
  line-height: 1.75;
  margin-bottom: 32px;
}
.enroll-popup p strong { color: #1a2e5a; }
.enroll-popup-btn {
  display: inline-block;
  background: #1a2e5a;
  color: #fff;
  border-radius: 10px;
  padding: 14px 36px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s, transform 0.15s;
  letter-spacing: 0.2px;
}
.enroll-popup-btn:hover { background: #253f7a; transform: translateY(-2px); }

/* ── BOOKING TYPE SELECTOR ── */
.enroll-type-section {
  background: #f8fafc;
  padding: 40px 0 0;
}
.enroll-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}
.enroll-type-card {
  background: #fff;
  border: 2px solid #e0e8f0;
  border-radius: 12px;
  padding: 24px 22px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.enroll-type-card:hover { border-color: #4a6fa5; box-shadow: 0 4px 16px rgba(26,46,90,0.08); }
.enroll-type-card.active { border-color: #1a2e5a; box-shadow: 0 4px 20px rgba(26,46,90,0.12); }
.enroll-type-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eef2fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.enroll-type-card.active .enroll-type-icon { background: #1a2e5a; }
.enroll-type-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a2e5a;
  margin-bottom: 4px;
}
.enroll-type-text p {
  font-size: 12px;
  color: #7a8aaa;
  line-height: 1.5;
}
.enroll-type-radio {
  margin-left: auto;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d0d8ea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.enroll-type-card.active .enroll-type-radio { border-color: #1a2e5a; }
.enroll-type-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}
.enroll-type-card.active .enroll-type-radio::after { background: #1a2e5a; }

/* ── FORM SECTION ── */
.enroll-section {
  background: #f8fafc;
  padding: 32px 0 72px;
}
.enroll-form-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
.enroll-form {
  background: #fff;
  border-radius: 16px;
  padding: 36px 36px;
  box-shadow: 0 2px 20px rgba(26,46,90,0.07);
  border: 1px solid #e8eaf0;
}
.enroll-form-title {
  font-size: 18px;
  font-weight: 800;
  color: #1a2e5a;
  margin-bottom: 6px;
}
.enroll-form-subtitle {
  font-size: 13px;
  color: #7a8aaa;
  margin-bottom: 28px;
}
.enroll-divider {
  border: none;
  border-top: 1px solid #f0f2f8;
  margin: 20px 0;
}
.enroll-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #7a8aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 22px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.enroll-section-label:first-of-type { margin-top: 0; }
.enroll-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.enroll-field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}
.enroll-field label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.enroll-field label .req { color: #ef4444; }
.enroll-field input,
.enroll-field select,
.enroll-field textarea {
  border: 1.5px solid #e0e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #1a2e5a;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.enroll-field input:focus,
.enroll-field select:focus,
.enroll-field textarea:focus {
  border-color: #1a2e5a;
  box-shadow: 0 0 0 3px rgba(26,46,90,0.08);
}
.enroll-field textarea { resize: vertical; min-height: 90px; }
.enroll-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a8aaa' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

/* ── FILE UPLOAD ── */
.enroll-upload-area { position: relative; }
.enroll-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.enroll-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed #d0d8ea;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  color: #7a8aaa;
  transition: border-color 0.2s, background 0.2s;
  min-height: 100px;
  background: #fafbff;
}
.enroll-upload-label:hover { border-color: #1a2e5a; background: #f0f4ff; }
.enroll-upload-icon { font-size: 1.8rem; }
.enroll-upload-name { color: #1a2e5a; font-weight: 700; font-size: 13px; }
.enroll-upload-label small { font-size: 11px; color: #b0bcd8; display: block; margin-top: 2px; }

/* ── SUBMIT BUTTON ── */
.enroll-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #1a2e5a 0%, #2d4a8a 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.3px;
  font-family: inherit;
}
.enroll-submit-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.enroll-submit-btn:active { transform: translateY(0); }

/* ── SIDEBAR ── */
.enroll-sidebar { display: flex; flex-direction: column; gap: 16px; }
.enroll-info-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(26,46,90,0.06);
  border: 1px solid #e8eaf0;
}
.enroll-info-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: #1a2e5a;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f2f8;
}
.enroll-info-card p {
  font-size: 12px;
  color: #7a8aaa;
  margin-bottom: 7px;
  line-height: 1.5;
}
.enroll-payment-info p { margin-bottom: 10px; font-size: 12px; }
.enroll-payment-info strong { color: #1a2e5a; display: block; margin-bottom: 2px; }
.enroll-note {
  background: #fff8e1;
  border-left: 3px solid #f59e0b;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 11px !important;
  color: #92400e !important;
  margin-top: 8px;
}
.enroll-help-card {
  background: linear-gradient(135deg, #1a2e5a, #2d4a8a);
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  text-align: center;
}
.enroll-help-card .enroll-help-icon { font-size: 1.8rem; margin-bottom: 10px; }
.enroll-help-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.enroll-help-card p { font-size: 12px; opacity: 0.8; line-height: 1.5; margin-bottom: 14px; }
.enroll-help-btn {
  width: 100%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 7px;
  padding: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.enroll-help-btn:hover { background: rgba(255,255,255,0.25); }

/* ── SUCCESS ── */
.enroll-success {
  margin-top: 64px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  padding: 60px 24px;
}
.enroll-success-card {
  background: #fff;
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
  max-width: 480px;
  box-shadow: 0 8px 40px rgba(26,46,90,0.12);
  border: 1px solid #e8eaf0;
}
.enroll-success-icon { font-size: 3.5rem; margin-bottom: 20px; }
.enroll-success-card h2 { font-size: 1.7rem; font-weight: 800; color: #1a2e5a; margin-bottom: 12px; }
.enroll-success-card p { font-size: 14px; color: #7a8aaa; line-height: 1.7; margin-bottom: 28px; }

.enroll-branch-label {
  font-size: 12px;
  font-weight: 700;
  color: #1a2e5a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 8px 0 4px;
}
.enroll-payment-divider {
  border: none;
  border-top: 1px dashed #d0d5e8;
  margin: 12px 0;
}

/* ── BOOKING CALENDAR ── */
.bkcal-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1.5px solid #e0e8f5;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(26,46,90,0.08);
  margin-bottom: 8px;
}
.bkcal-left {
  padding: 20px 18px 18px;
  border-right: 1.5px solid #e8eef8;
  background: #fff;
}
.bkcal-right {
  padding: 20px 16px 18px;
  background: #f8faff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.bkcal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.bkcal-month-label {
  font-size: 14px;
  font-weight: 800;
  color: #0f1d3a;
  letter-spacing: -0.2px;
}
.bkcal-nav-btn {
  width: 30px; height: 30px;
  border: 1.5px solid #e0e8f5;
  border-radius: 8px;
  background: #fff;
  color: #1a2e5a;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1;
  padding: 0;
}
.bkcal-nav-btn:hover { background: #1a2e5a; color: #fff; border-color: #1a2e5a; }
.bkcal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.bkcal-day-header {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-align: center;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.bkcal-sun { color: #ef4444; }
.bkcal-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.bkcal-cell {
  aspect-ratio: 1;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: #0f1d3a;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.bkcal-cell:hover:not(:disabled) { background: #eef2ff; color: #1a2e5a; }
.bkcal-cell.bkcal-selected { background: #1a2e5a !important; color: #fff !important; font-weight: 800; }
.bkcal-cell.bkcal-past { color: #d1d5db; cursor: default; }
.bkcal-cell.bkcal-disabled { color: #ef4444; opacity: 0.4; cursor: default; }
.bkcal-cell.bkcal-blank { cursor: default; pointer-events: none; }
.bkcal-cell:disabled { cursor: default; }
.bkcal-selected-label {
  font-size: 12px;
  font-weight: 800;
  color: #0f1d3a;
  margin-bottom: 6px;
  min-height: 16px;
}
.bkcal-slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  max-height: 280px;
  padding-right: 2px;
}
.bkcal-slots::-webkit-scrollbar { width: 4px; }
.bkcal-slots::-webkit-scrollbar-thumb { background: #d0d8ea; border-radius: 4px; }
.bkcal-no-date {
  font-size: 12px;
  color: #9ca3af;
  padding: 20px 8px;
  text-align: center;
  line-height: 1.6;
}
.bkcal-slot {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e0e8f5;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #1a2e5a;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: all 0.15s;
}
.bkcal-slot:hover { border-color: #1a2e5a; background: #eef2ff; }
.bkcal-slot.bkcal-slot-selected { background: #1a2e5a; color: #fff; border-color: #1a2e5a; }
.bkcal-confirm-bar {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 9px;
  padding: 10px 16px;
  margin-bottom: 4px;
}
.bkcal-confirm-text {
  font-size: 13px;
  font-weight: 700;
  color: #166534;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .enroll-form-wrap { grid-template-columns: 1fr 280px; }
}
@media (max-width: 900px) {
  .enroll-form-wrap { grid-template-columns: 1fr; }
  .enroll-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .enroll-type-grid { max-width: 100%; }
}
@media (max-width: 600px) {
  .enroll-row { grid-template-columns: 1fr; }
  .enroll-type-grid { grid-template-columns: 1fr; }
  .enroll-sidebar { grid-template-columns: 1fr; }
  .enroll-hero-content h1 { font-size: 1.8rem; }
  .enroll-form { padding: 24px 20px; }
  .bkcal-wrap { grid-template-columns: 1fr; }
  .bkcal-left { border-right: none; border-bottom: 1.5px solid #e8eef8; }
  .bkcal-slots { max-height: 200px; }
}

/* ── TERMS & CONDITIONS MODAL ── */
.tc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 50, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.tc-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  overflow: hidden;
}
.tc-modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1.5px solid #e8eef8;
  background: #f8faff;
}
.tc-modal-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f1d3a;
  margin: 0 0 4px;
}
.tc-modal-header p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}
.tc-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  font-size: 13.5px;
  color: #374151;
  line-height: 1.75;
}
.tc-modal-body h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f1d3a;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tc-modal-body h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1a2e5a;
  margin: 18px 0 6px;
}
.tc-modal-body p { margin: 0 0 10px; }
.tc-modal-body a { color: #4a7cf0; }
.tc-privacy-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1.5px solid #e8eef8;
}
.tc-agreement {
  margin-top: 20px;
  padding: 14px 16px;
  background: #fef9c3;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
  font-size: 13px;
  font-weight: 500;
  color: #78350f;
}
.tc-agreement p { margin: 0; }
.tc-modal-footer {
  padding: 18px 28px;
  border-top: 1.5px solid #e8eef8;
  background: #f8faff;
}
.tc-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  margin-bottom: 16px;
}
.tc-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #1a2e5a;
  flex-shrink: 0;
}
.tc-modal-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.tc-btn-decline {
  padding: 10px 22px;
  border-radius: 8px;
  border: 1.5px solid #e0e8f5;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.tc-btn-decline:hover { background: #f3f4f6; }
.tc-btn-accept {
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  background: #1a2e5a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.tc-btn-accept:disabled { opacity: 0.4; cursor: not-allowed; }
.tc-btn-accept:not(:disabled):hover { background: #0f1d3a; }
@media (max-width: 640px) {
  .tc-modal { max-height: 95vh; }
  .tc-modal-header, .tc-modal-body, .tc-modal-footer { padding: 16px; }
  .tc-modal-btns { flex-direction: column; }
  .tc-btn-decline, .tc-btn-accept { width: 100%; text-align: center; }
}
