/* schedule.css */
.schedule-page {
  padding: 40px 20px 70px;
}

.schedule-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.schedule-head {
  text-align: center;
  margin-bottom: 28px;
}

.schedule-head h1 {
  margin: 0 0 8px;
  color: #0a46c2;
  font-size: 2.2rem;
}

.schedule-head p {
  margin: 0;
  color: #555;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.calendar-card, .times-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
  padding: 18px;
}

.calendar-top h2,
.times-top h2 {
  margin: 0 0 10px;
  color: #0a46c2;
  font-size: 1.25rem;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.cal-title {
  font-weight: 700;
  color: #0a46c2;
}

.cal-btn {
  width: 40px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(10,70,194,0.15);
  background: #f6f8ff;
  color: #0a46c2;
  font-size: 22px;
  cursor: pointer;
}

.cal-btn:hover {
  background: #eef2ff;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 14px;
  gap: 6px;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.9rem;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.day {
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
  background: #fff;
}

.day:hover {
  background: #f6f8ff;
}

.day.muted {
  opacity: 0.35;
  cursor: default;
}

.day.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #fafafa;
}

.day.selected {
  background: #0a46c2;
  color: #fff;
  border-color: #0a46c2;
}

.tz-row {
  margin-top: 14px;
  color: #555;
  font-size: 0.9rem;
}

.tz-label {
  font-weight: 700;
  margin-right: 6px;
  color: #0a46c2;
}

.notice {
  margin-top: 12px;
  color: #b42318;
  font-weight: 600;
  min-height: 18px;
}

.times-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.picked-date {
  font-weight: 700;
  color: #0a46c2;
}

.times-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.time-btn {
  width: 100%;
  text-align: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid rgba(10,70,194,0.25);
  background: #ffffff;
  color: #0a46c2;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.2s ease;
}

.time-btn:hover {
  background: #f6f8ff;
  transform: translateY(-1px);
}

.time-btn.booked,
.time-btn.booked:hover {
  background: #f3f4f6;
  border-color: rgba(0,0,0,0.08);
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.small-hint {
  margin-top: 14px;
  color: #6b7280;
  font-size: 0.9rem;
}

/* ===== Modal ===== */
/* .modal-overlay {
  position: fixed;
  inset: 0;
  background: transparent;  
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none;  
}   
 */

.modal-overlay {
  display: none;
}

.modal-overlay.active {
  display: block;
}



.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: min(600px, 92vw);
  max-height: 90vh;
  overflow-y: auto;

  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  padding: 24px;

  z-index: 10000;
}



.modal h2 {
  margin: 0 0 6px;
  color: #0a46c2;
}

.modal-sub {
  margin: 0 0 14px;
  color: #555;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #333;
}

.modal-close:hover { color: #000; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  font-weight: 700;
  color: #0a46c2;
  font-size: 0.95rem;
}

.field input, .field textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  font-family: 'Poppins', sans-serif;
}

.file-hint {
  font-size: 0.85rem;
  color: #6b7280;
}

.btn-primary {
  width: 100%;
  background-color: #0a46c2;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 10px;
  font-weight: 700;
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .schedule-grid {
    grid-template-columns: 1fr;
  }
  .schedule-head {
    text-align: center;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
