:root {
  --accent: #0f6a94;
  --accent-2: #06b6d4;
  --accent-3: #16a34a;
  --ok: #16a34a;
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --danger: #b91c1c;
  --border: #e5e7eb;
  --shadow: 0 8px 20px rgba(15, 106, 148, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1100px;
  --gap: 16px;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial,
    sans-serif;
  margin: 0;
}
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding: 24px 16px;
}
/*page loader*/

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-loader.hidden {
  display: none;
}

.page-loader__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 35px rgba(16, 24, 40, 0.15);
}

.page-loader__spinner {
  width: 56px;
  height: 56px;
  border: 6px solid #e5e7eb; /* light ring */
  border-top-color: #0f6a94; /* brand color */
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page-loader__text {
  font-size: 14px;
  color: #0f172a;
}

/*page loader*/
/* Header */

.site-header {
  background: #fff;
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem 15px;
  box-sizing: border-box;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.3px;
    text-decoration: none;
}
.brand__logo {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
a.brand span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    font-family: 'Poppins', sans-serif;
}
.brand__logo img {
  width: 100%;
}
.nav {
  font-family: 'Inter', sans-serif;
  display: flex;
  gap: 18px;
}
.nav a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 28px 0 8px;
  background: url("../images/banner.jpg") no-repeat;
  background-size: cover;
  background-position: center center;
  position: relative;
}
.hero:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: #02253abf;
  z-index: 0;
}
.hero__title {
  font-size: clamp(24px, 3.4vw, 60px);
  line-height: 1.1;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.hero__title span {
  display: block;
  background: -webkit-linear-gradient(right, #e5f2fd, #0999ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lead {
  margin: 0;
  font-size: clamp(14px, 2.4vw, 18px);
  position: relative;
  z-index: 1;
  text-align: center;
  font-weight: 600;
  color: #fff;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* Sticky Tabs */
.tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  padding: 12px 0 14px;
}
.tabs__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.tabs__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius);
  background: #f9fafb;
  border: none;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 110px;
}
.tabs__btn[aria-selected="true"] {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 106, 148, 0.25);
}
.tabs__btn:active {
  transform: scale(0.99);
}
.tabs__btn i {
  font-size: 40px;
}

/* Terms Preview */
.terms {
  padding: 18px 0 6px;
}
.terms__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
@media (min-width: 900px) {
  .terms__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.terms__item {
  display: flex;
  gap: 14px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  background: linear-gradient(
    135deg,
    rgba(15, 106, 148, 0.06),
    rgba(6, 182, 212, 0.06)
  );
}
.terms__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 6px 14px rgba(15, 106, 148, 0.1);
}
.terms__text {
  font-size: 14px;
}
.terms__title {
  font-weight: 700;
  margin: 0 0 4px;
  font-size: 14px;
}
.terms__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

/* Accordion */
details.accordion {
  border: none;
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #f8fafc;
  box-shadow: none;
}
details.accordion > summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
details.accordion[open] {
  background: #f8fafc;
}
details.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion__content {
  padding-top: 10px;
  color: #111827;
}
.accordion__content li {
  margin: 6px 0;
}

/* Main */
.main {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
  margin-top: 8px;
}
@media (min-width: 980px) {
  .main {
    grid-template-columns: minmax(0, 1fr) 420px;
  }
}

/* Form */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.card__title {
  margin: 0;
  font-size: 18px;
}
.card__body {
  padding: 16px;
}

.grid {
  display: grid;
  gap: 12px;
}
.grid--2 {
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 6px;
}
.label {
  font-weight: 600;
  font-size: 14px;
}
.help {
  font-size: 12px;
  color: var(--muted-2);
}
.input,
.select,
.textarea {
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.textarea {
  min-height: 92px;
  resize: vertical;
}

.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.slot {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8fafc;
  cursor: pointer;
  font-weight: 600;
}
.slot[aria-pressed="true"] {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e3a8a;
}
.slot[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  border: 1px solid var(--border);
  background: #f9fafb;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #374151;
}
.badge--danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #7f1d1d;
}

.fee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.fee__amount {
  font-weight: 800;
  font-size: 20px;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.actions .agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}

.note {
  font-size: 12px;
  color: var(--muted);
}
.error {
  color: var(--danger);
  font-weight: 600;
}
.success {
  color: var(--ok);
  font-weight: 700;
}

/* Steps */
.steps {
  position: sticky;
  top: 86px;
}
.step {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  margin: 12px 0;
}
.step__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(15, 106, 148, 0.1),
    rgba(6, 182, 212, 0.1)
  );
  color: var(--accent);
  box-shadow: 0 6px 14px rgba(15, 106, 148, 0.1);
}
.step__title {
  margin: 0 0 4px;
  font-weight: 700;
}
.step__desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}

/* Utility */
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* User calendar styles (matching the admin look) */
.card__calendar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal__title {
  font-weight: 700;
  color: #475569;
}
.cal__nav {
  display: flex;
  gap: 6px;
}
.cal__btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}
.cal__btn:hover {
  box-shadow: 0 6px 16px rgba(15, 106, 148, 0.1);
}
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.cal__dow {
  color: #64748b;
  font-weight: 700;
  margin-bottom: 6px;
}
.cal__day {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  height: 70px;
  padding: 8px;
  text-align: right;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.08s;
}
.cal__day:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 16px rgba(15, 106, 148, 0.1);
}
.cal__day.is-other {
  opacity: 0.5;
}
.cal__day.is-today {
  box-shadow: 0 0 0 3px rgba(15, 106, 148, 0.25) inset;
}
.cal__day.is-selected {
  border-color: #93c5fd;
  background: #eff6ff;
}
.cal__day.is-disabled {
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}
.cal__day.is-blocked {
  background: #fee2e2;
  border-color: #fecaca;
  color: #7f1d1d;
}
.cal__num {
  font-weight: 800;
  font-size: 16px;
}

.slot--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.error-text {
  color: #b91c1c;
  font-size: 12px;
  margin-top: 4px;
}
.input--error {
  border-color: #fecaca;
  background: #fff1f2;
}

/* Errors UI */
.input.invalid,
.select.invalid,
.textarea.invalid {
  border-color: #fecaca !important;
  background: #fff1f2 !important;
}
.error-text {
  color: #b91c1c;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.2;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.modal.hidden {
  display: none;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.modal__card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: min(560px, 92vw);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 22px;
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: #f3f4f6;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
}
.modal__body h3 {
  margin: 0 0 8px;
}
.modal__body p {
  margin: 8px 0;
}
.modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
/* Booked slot (disabled in red) */
.slot.slot--booked {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #7f1d1d;
}
.slot.slot--booked[disabled] {
  opacity: 1; /* keep red vivid, not faded */
  cursor: not-allowed;
}

/* Errors UI (keep from before; included for completeness) */
.input.invalid,
.select.invalid,
.textarea.invalid {
  border-color: #fecaca !important;
  background: #fff1f2 !important;
}
.error-text {
  color: #b91c1c;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.2;
}

/* Calendar, modal, etc... (keep your existing rules) */
