/* ============================================================
   SHANIEL BESPOKE TAILOR — APPOINTMENT / BOOKING PAGE CSS
   ============================================================ */

/* Reset p margin so it doesn't break grid layout */
.appt-page p,
.sh-cal-wrap p,
.sh-sel-panel p,
.appt-form-box p,
.meet-card p { margin-bottom: 0; }

/* ── PAGE LAYOUT ─────────────────────────────────────────── */
.appt-page { background: #f4f8fc; padding: 40px 0 80px; }
.appt-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
}

/* ── CALENDAR WRAPPER ────────────────────────────────────── */
.sh-cal-wrap {
  background: #fff;
  border: 1px solid #dde8f4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(37,99,168,0.08);
}

/* ── TOOLBAR ─────────────────────────────────────────────── */
.sh-cal-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #edf3fa;
  background: #fff;
  gap: 10px; flex-wrap: wrap;
}
.sh-cal-toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sh-cal-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem; font-weight: 600; color: #0d2233;
  letter-spacing: 0.03em;
}
.sh-cal-btn {
  height: 32px; min-width: 32px; padding: 0 12px;
  border: 1.5px solid #c5daf0; background: #fff;
  border-radius: 6px; cursor: pointer;
  font-size: 0.78rem; font-weight: 600; color: #2563a8;
  font-family: "Montserrat", sans-serif;
  transition: all 0.18s; display: flex; align-items: center; justify-content: center;
}
.sh-cal-btn:hover { background: #2563a8; color: #fff; border-color: #2563a8; }
.sh-cal-btn.today-btn {
  background: #2563a8; color: #fff; border-color: #2563a8;
  font-weight: 700; letter-spacing: 0.06em; font-size: 0.72rem;
}
.sh-cal-btn.today-btn:hover { background: #1a3a5c; border-color: #1a3a5c; }
.sh-cal-nav { display: flex; gap: 3px; }

/* ── YEAR BUTTONS ────────────────────────────────────────── */
.sh-cal-years { display: flex; gap: 4px; flex-wrap: wrap; }
.sh-yr-btn {
  padding: 4px 11px; border: 1.5px solid #d0e4f5;
  background: #fff; border-radius: 20px; cursor: pointer;
  font-size: 0.7rem; font-weight: 600; color: #5a7a9a;
  font-family: "Montserrat", sans-serif; transition: all 0.18s;
}
.sh-yr-btn:hover { border-color: #2563a8; color: #2563a8; background: #eef6ff; }
.sh-yr-btn.active { background: #0d2233; color: #fff; border-color: #0d2233; }

/* ── MONTH TABS ──────────────────────────────────────────── */
.sh-cal-months {
  display: grid; grid-template-columns: repeat(12, 1fr);
  border-bottom: 1px solid #edf3fa;
  background: #f7fafd;
}
.sh-mon-tab {
  padding: 8px 2px; text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #8aacca; cursor: pointer;
  transition: all 0.18s; border-bottom: 2px solid transparent;
}
.sh-mon-tab:hover { color: #2563a8; background: #eef6ff; }
.sh-mon-tab.active {
  color: #2563a8; border-bottom-color: #2563a8;
  background: #fff; font-weight: 700;
}

/* ── DAY HEADER ──────────────────────────────────────────── */
.sh-cal-day-header {
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: #0d2233;
}
.sh-dh-cell {
  padding: 9px 0; text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  border-right: 1px solid rgba(255,255,255,0.05);
}
.sh-dh-cell:last-child { border-right: none; }
.sh-dh-cell.weekend { color: #7ec8ff; }

/* ── CALENDAR GRID ───────────────────────────────────────── */
.sh-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.sh-cal-cell {
  min-height: 88px;
  border-right: 1px solid #edf3fa;
  border-bottom: 1px solid #edf3fa;
  padding: 6px 7px 5px;
  position: relative;
  cursor: default;
  background: #fff;
  transition: background 0.12s;
}
.sh-cal-cell:nth-child(7n) { border-right: none; }
.sh-cal-cell.other-month { background: #fafcff; }
.sh-cal-cell.other-month .sh-date-num { color: #ccdde8; }
.sh-cal-cell.past-day { background: #fafcff; }
.sh-cal-cell.past-day .sh-date-num { color: #bfd0de; }
.sh-cal-cell.avail { cursor: pointer; }
.sh-cal-cell.avail:hover { background: #eef6ff; }
.sh-cal-cell.avail:hover .sh-date-num { color: #2563a8; }
.sh-cal-cell.blocked-day { background: #fff9f9; }
.sh-cal-cell.blocked-day .sh-date-num { color: #d0a8a8; }
.sh-cal-cell.today-cell { background: #eef6ff; }
.sh-cal-cell.today-cell .sh-date-num {
  background: #2563a8; color: #fff;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.78rem;
}
.sh-cal-cell.selected-cell { background: #dbeeff !important; outline: 2px solid #2563a8; outline-offset: -2px; }
.sh-cal-cell.selected-cell .sh-date-num {
  background: #2563a8 !important; color: #fff !important;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.78rem;
}

/* ── DATE NUMBER ─────────────────────────────────────────── */
.sh-date-num {
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem; font-weight: 600;
  color: #2d3a4a; margin-bottom: 4px; line-height: 1;
}

/* ── EVENT LABELS ────────────────────────────────────────── */
.sh-event {
  display: flex; align-items: center; gap: 4px;
  background: #1a3a5c; color: #fff;
  border-radius: 3px; padding: 3px 6px;
  font-size: 0.62rem; font-weight: 600;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 2px; cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 100%;
}
.sh-event:hover { background: #2563a8; }
.sh-event-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; background: #4a90d9; }
.sh-event.blocked-ev { background: #7f1d1d; }
.sh-event.blocked-ev .sh-event-dot { background: #f87171; }

/* ── TODAY BADGE ─────────────────────────────────────────── */
.sh-today-badge {
  position: absolute; top: 5px; right: 6px;
  font-size: 0.5rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #2563a8;
  font-family: "Montserrat", sans-serif;
  background: #dbeeff; padding: 1px 5px; border-radius: 8px;
}

/* ── CALENDAR FOOTER LEGEND ──────────────────────────────── */
.sh-cal-footer {
  padding: 10px 18px;
  border-top: 1px solid #edf3fa;
  background: #f7fafd;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.sh-leg-item {
  display: flex; align-items: center; gap: 5px;
  font-family: "Montserrat", sans-serif; font-size: 0.68rem; color: #7a9ab8;
}
.sh-leg-dot { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }

/* ── TIME SLOT PANEL ─────────────────────────────────────── */
.sh-sel-panel {
  background: #fff;
  border: 1px solid #dde8f4;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 14px;
  display: none;
  box-shadow: 0 2px 14px rgba(37,99,168,0.07);
}
.sh-sel-panel.show { display: block; }
.sh-sel-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem; color: #0d2233;
  margin-bottom: 4px; font-weight: 600;
}
.sh-slot-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.sh-slot {
  padding: 8px 4px;
  background: #f0f7ff;
  border: 1.5px solid #c5daf0;
  border-radius: 6px; text-align: center;
  font-family: "Montserrat", sans-serif; font-size: 0.72rem; font-weight: 600;
  color: #2563a8; cursor: pointer; transition: all 0.18s;
}
.sh-slot:hover { background: #2563a8; color: #fff; border-color: #2563a8; }
.sh-slot.sel {
  background: #2563a8; color: #fff;
  border-color: #1a3a5c; font-weight: 700;
  box-shadow: 0 2px 8px rgba(37,99,168,0.3);
}
.sh-slot.full {
  background: #f8f8f8; color: #ccc;
  border-color: #eee; cursor: not-allowed;
  text-decoration: line-through;
}

/* ── HOW TO MEET US ──────────────────────────────────────── */
.meet-us-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 14px;
}
.meet-card {
  border: 1px solid #dde8f4;
  border-radius: 10px; padding: 14px;
  background: #f7fafd;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.meet-card:hover { border-color: #2563a8; box-shadow: 0 2px 10px rgba(37,99,168,0.1); }
.meet-card-icon { font-size: 1.5rem; margin-bottom: 6px; }
.meet-card strong { font-size: 0.82rem; color: #0d2233; display: block; margin-bottom: 3px; }
.meet-card p { font-size: 0.72rem; color: #7a9ab8; margin: 0; line-height: 1.5; }

/* ── CONTACT STRIP ───────────────────────────────────────── */
.appt-contact-strip {
  background: linear-gradient(135deg, #0d2233, #2563a8);
  border-radius: 10px; padding: 16px 20px;
  color: #fff; margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.appt-contact-strip a { color: #a8d4ff; font-weight: 600; font-size: 0.88rem; }
.appt-contact-strip a:hover { color: #fff; }

/* ── BOOKING FORM BOX ────────────────────────────────────── */
.appt-form-box {
  background: #fff;
  border: 1px solid #dde8f4;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(37,99,168,0.09);
  overflow: hidden;
}
.appt-form-head {
  background: linear-gradient(135deg, #0d2233, #1a3a5c);
  padding: 22px 24px; text-align: center;
}
.appt-form-head h2 {
  font-family: "Cormorant Garamond", serif;
  color: #fff; font-size: 1.5rem; font-weight: 400;
  letter-spacing: 0.12em; margin-bottom: 4px;
}
.appt-form-head p { color: rgba(255,255,255,0.55); font-size: 0.75rem; margin: 0; }
.appt-form-body { padding: 22px 22px 18px; }

/* ── SELECTED DATE INFO BOX ──────────────────────────────── */
.selected-info {
  background: #eef6ff;
  border: 1.5px solid #2563a8;
  border-radius: 8px; padding: 11px 14px;
  margin-bottom: 16px; font-size: 0.83rem;
  font-family: "Montserrat", sans-serif;
}

/* ── FORM FIELDS ─────────────────────────────────────────── */
.appt-form-body .form-group { margin-bottom: 14px; }
.appt-form-body .form-group label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #1a3a5c; display: block; margin-bottom: 5px;
}
.appt-form-body .form-group p { margin: 0; }
.appt-form-body .form-group input,
.appt-form-body .form-group select,
.appt-form-body .form-group textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid #d0e4f5; border-radius: 7px;
  font-family: "Montserrat", sans-serif; font-size: 0.85rem;
  color: #1e2d3d; background: #fff; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
}
.appt-form-body .form-group input:focus,
.appt-form-body .form-group select:focus,
.appt-form-body .form-group textarea:focus {
  border-color: #2563a8; box-shadow: 0 0 0 3px rgba(37,99,168,0.1);
}
.appt-form-body .form-group textarea { min-height: 65px; resize: vertical; }

/* ── SUBMIT BUTTON ───────────────────────────────────────── */
.appt-submit-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #1a3a5c, #2563a8);
  color: #fff; border: none;
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 8px; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(37,99,168,0.3);
}
.appt-submit-btn:hover {
  background: linear-gradient(135deg, #0d2233, #1a3a5c);
  box-shadow: 0 6px 20px rgba(37,99,168,0.4);
  transform: translateY(-1px);
}
.appt-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.appt-secure-note {
  text-align: center; margin-top: 8px;
  font-size: 0.7rem; color: #8aacca;
  font-family: "Montserrat", sans-serif;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sh-cal-months { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 960px) {
  .appt-grid { grid-template-columns: 1fr !important; }
  .appt-form-box { position: static !important; }
  .sh-slot-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .sh-cal-cell { min-height: 66px; padding: 5px; }
  .sh-event { font-size: 0.58rem; padding: 2px 4px; }
  .sh-slot-grid { grid-template-columns: repeat(3, 1fr); }
  .sh-cal-months { grid-template-columns: repeat(4, 1fr); }
  .sh-cal-title { font-size: 1rem; }
  .meet-us-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .sh-cal-cell { min-height: 50px; }
  .sh-event span { display: none; }
  .sh-slot-grid { grid-template-columns: repeat(3, 1fr); }
  .sh-cal-months { grid-template-columns: repeat(3, 1fr); }
  .appt-contact-strip { flex-direction: column; text-align: center; }
}
