/* ================================
   APPOINTMENTS PAGE
================================ */

[hidden] {
  display: none !important;
}

.appointments-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 110px 24px 90px;
}

.appointments-hero {
  text-align: center;
  margin-bottom: 46px;
}

.appointments-kicker {
  color: #dc5f88;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
}

.appointments-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1;
  color: #161616;
  margin-bottom: 12px;
}

.appointments-hero-text {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}

/* SHARED BUTTONS */

.main-btn {
  width: 100%;
  height: 54px;
  margin-top: 18px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #ef8bab, #d75f86);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 12px;
  font-weight: 800;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.main-btn:hover {
  background: linear-gradient(135deg, #e97fa1, #c9527b);
}

.main-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.outline-btn {
  width: 100%;
  height: 48px;
  margin-top: 12px;
  border-radius: 999px;
  border: 1px solid #d75f86;
  background: transparent;
  color: #d75f86;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: 0.3s ease;
  cursor: pointer;
}

.outline-btn:hover {
  background: #d75f86;
  color: #fff;
}

/* LOGGED-OUT GATE */

.appointments-gate {
  display: flex;
  justify-content: center;
}

.appointments-gate-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 26px;
  padding: 44px 30px 36px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(213, 35, 119, 0.12);
  border: 1px solid rgba(213, 35, 119, 0.12);
}

.appointments-gate-box i {
  font-size: 34px;
  color: #d72b78;
  margin-bottom: 18px;
}

.appointments-gate-box h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  color: #2c2027;
  margin-bottom: 10px;
}

.appointments-gate-box p {
  font-size: 14px;
  color: #7a6871;
  margin-bottom: 6px;
}

/* LOADING / EMPTY */

.appointments-loading,
.appointments-empty {
  text-align: center;
  color: #9a8e93;
  padding: 50px 20px;
}

.appointments-empty {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.appointments-empty i {
  font-size: 30px;
  color: #dc5f88;
  margin-bottom: 14px;
}

.appointments-empty h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  color: #2c2027;
  margin-bottom: 8px;
}

.appointments-empty .main-btn {
  max-width: 260px;
  margin: 20px auto 0;
}

/* GROUPS */

.appointments-group {
  margin-bottom: 44px;
}

.appointments-group h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  color: #2c2027;
  margin-bottom: 18px;
}

.appointments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* CARD */

.appointment-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
  padding: 26px 28px;
}

.appointment-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.appointment-card-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  color: #161616;
}

.appointment-card-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 999px;
}

.appointment-card-badge.status-confirmed { background: #e7f6ec; color: #2e9e5b; }
.appointment-card-badge.status-pending { background: #fdf2e0; color: #b8790c; }
.appointment-card-badge.status-cancellation { background: #fbe6e6; color: #c0392b; }

.appointment-card-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}

.appointment-card-detail i {
  width: 16px;
  color: #dc5f88;
}

.appointment-card-amounts {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0e5e8;
}

.appointment-card-amounts div {
  font-size: 12px;
  color: #9a8e93;
}

.appointment-card-amounts strong {
  display: block;
  font-size: 15px;
  color: #161616;
  margin-top: 2px;
}

.appointment-card-actions {
  margin-top: 18px;
}

.appointment-card-actions button {
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(192, 57, 43, 0.3);
  background: #fff;
  color: #c0392b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
}

.appointment-card-actions button:hover {
  background: #c0392b;
  color: #fff;
}

.appointment-card-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.appointment-card-requested {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #c0392b;
  margin-top: 18px;
}

/* CANCEL MODAL */

.cancel-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(45, 8, 26, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cancel-modal.show {
  display: flex;
}

.cancel-modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 26px;
  padding: 38px 30px 30px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(213, 35, 119, 0.26);
  border: 1px solid rgba(213, 35, 119, 0.12);
}

.cancel-modal-box h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  color: #2c2027;
  margin-bottom: 10px;
}

.cancel-modal-box p {
  font-size: 13px;
  line-height: 1.6;
  color: #7a6871;
  margin-bottom: 18px;
}

.cancel-modal-box textarea {
  width: 100%;
  min-height: 90px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(213, 35, 119, 0.18);
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  margin-bottom: 6px;
}

/* TOAST */

.booking-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  z-index: 999999;
  background: #2b2027;
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
}

.booking-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* MOBILE */

@media (max-width: 650px) {
  .booking-toast {
    width: calc(100% - 28px);
    text-align: center;
    border-radius: 18px;
  }

  .appointments-page {
    padding: 90px 16px 70px;
  }

  .appointment-card {
    padding: 20px;
  }

  .appointment-card-amounts {
    gap: 16px;
  }
}
