/* SerialB font family */
@font-face {
  font-family: "SerialB";
  src: url("/fonts/SerialB-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SerialB";
  src: url("/fonts/SerialB-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SerialB";
  src: url("/fonts/SerialB-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SerialB";
  src: url("/fonts/SerialB-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
  background: #FAF9F6;
}

body {
  background: #FAF9F6;
  margin: 0;
  font-family: "SerialB", "Inter", sans-serif;
  color: #262626;
}

/* Main Header Section */
.main-header {
  text-align: center;
  padding: 1.5rem 0 1rem;
  margin-bottom: 1.5rem;
}

.main-header h1 {
  font-family: "SerialB", sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #262626;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.header-subtitle {
  font-family: "SerialB", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #666666;
  margin: 0;
  letter-spacing: 0.01em;
}

/* Responsive header */
@media (max-width: 640px) {
  .main-header h1 {
    font-size: 1.8rem;
  }
  
  .header-subtitle {
    font-size: 0.9rem;
  }
  
  .main-header {
    padding: 1rem 0 0.75rem;
  }
}

label {
  font-size: 0.875rem; /* ≈14px */
}

.container {
  max-width: 512px; /* 80% of 640px */
  margin: 0 auto;
  background: #FAF9F6;
  padding: 0 0.8rem 1.6rem; /* 80% */
}

/* Progress indicator */
#progress {
  display: flex;
  align-items: center;
  gap: 0.4rem; /* 80% */
  margin: 1.6rem 0 1.2rem; /* 80% */
}

.progress-step {
  width: 22px; /* 80% */
  height: 22px;
  border-radius: 50%;
  background: #d1d1d1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.progress-step.active {
  background: #0b74ff;
}

.progress-line {
  flex: 1;
  height: 2.4px; /* 80% of 3 */
  background: #d1d1d1;
}

.progress-line.active {
  background: #0b74ff;
}

/* Step wrapper */
.step {
  display: none;
}

.step.active {
  display: block;
}

.step-banner {
  background: linear-gradient(90deg, rgba(255,236,240,0.9) 0%, rgba(255,228,199,0.9) 100%);
  padding: 0.8rem 1rem; /* 80% */
  border-radius: 12px;
  font-size: 0.88rem; /* 80% */
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="password"] {
  background: #ffffff !important;
  border: 1px solid #bfc8d2;
  border-radius: 4px;
  padding: 0.6rem;
  font-size: 0.8rem;
  color: #262626;
}

button[type="submit"], button[type="button"].primary {
  background: #0b74ff;
  border: none;
  color: #fff;
  font-size: 0.8rem;
  padding: 0.6rem 1.2rem; /* 80% */
  border-radius: 6px;
  cursor: pointer;
}

button.primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Secondary buttons (slot choices) */
button.secondary {
  background: #ffffff;
  border: 1px solid #bfc8d2;
  color: #262626;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

button.secondary:hover {
  background: #f2f6fa;
}

button.contrast {
  background: #0db96d;
  color: #fff;
}

/* Context info (selected package & email) */
.context-info {
  font-size: 0.75rem;
  background: #f7f9fb;
  color: #555;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  margin: 0.6rem 0 0.8rem 0;
  border: 1px solid #e2e8f0;
}

ul#slot-results, ul#results {
  list-style: none;
  padding-left: 0;
}

ul#slot-results li, ul#results li {
  margin-bottom: 0.5rem;
}

#success {
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#success h3{
  font-size:1rem;
  margin-bottom:0.5rem;
  font-family: "SerialB", "Inter", sans-serif; 
}

#success p{
  font-size:0.8rem;
}
/* catch-all safeguard */
input,
textarea,
select {
  background-color: #ffffff !important;
  color: #262626;
}

/* override Chrome autofill yellow */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #262626 !important;
}

/* ------------------------------------------------------------
   Make browser calendar icon visible & clickable on <input type="date">
   Works in Chromium / Safari; harmless in others
---------------------------------------------------------------*/
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;                    /* ensure icon isn't hidden */
  display: block;                /* force rendering */
  cursor: pointer;               /* show hand cursor */
  filter: invert(35%) sepia(97%) saturate(1143%) hue-rotate(203deg) brightness(93%) contrast(97%); /* blue tint */
}

input[type="date"]::-webkit-inner-spin-button {
  display: none; /* hide spin buttons (Chrome) */
}

/* ------------------------------------------------------------
   Toast notification (fixed top-center)
--------------------------------------------------------------*/
.toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-left: 4px solid #0db96d;  /* green accent */
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  z-index: 9999; /* above everything */
  max-width: 90%;
}
.toast button.toast-close {
  all: unset;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  margin-left: auto;
}
.toast button.toast-close:hover {
  opacity: 0.6;
} 

/* Headings in the package selection step */
h4 {
  font-family: "SerialB", "Inter", sans-serif;
  margin-bottom: 0.5rem; /* tighter spacing below */
  font-weight: 700;
}

/* New Member Callout Section */
.new-member-section {
  background: linear-gradient(135deg, #4c8bf5 0%, #7c4dff 100%);
  border: 2px solid #4c8bf5;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(76, 139, 245, 0.2);
  position: relative;
  overflow: hidden;
}

.new-member-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.new-member-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.new-member-header h2 {
  color: #ffffff;
  font-family: "SerialB", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.new-member-badge {
  background: #7c4dff;
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.new-member-content {
  position: relative;
  z-index: 1;
}

.new-member-content p {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Highlight the intro offer option */
.intro-offer-option {
  background: linear-gradient(135deg, #4c8bf5 0%, #7c4dff 100%);
  border: 2px solid #4c8bf5;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  display: block;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}


.intro-offer-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 139, 245, 0.4);
}

.intro-offer-option input[type="radio"] {
  margin-right: 0.75rem;
  transform: scale(1.2);
}

/* Package Switch Toggle */
.package-switch {
  margin-top: 1rem;
}

.switch-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
}

.switch-container input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.1);
}

.switch-slider {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Package Selection Section */
.package-selection-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.package-header h3 {
  font-family: "SerialB", "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #262626;
  margin: 0 0 0.75rem 0;
}

/* Appointment Summary */
.appointment-summary {
  background: #f7f9fb;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.appointment-summary h4 {
  color: #262626;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
}

.appointment-summary p {
  color: #555;
  font-size: 0.9rem;
  margin: 0;
}

/* Loading Section */
.loading-section {
  text-align: center;
  padding: 2rem 1rem;
  background: #f7f9fb;
  border-radius: 8px;
  margin: 1rem 0;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #0b74ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-section p {
  color: #555;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.loading-details {
  font-size: 0.8rem !important;
  color: #777 !important;
}

/* Checkout Success */
#checkout-success {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
  border-left: 4px solid #0db96d;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#checkout-success h3 {
  color: #0db96d;
  font-family: "SerialB", "Inter", sans-serif;
  font-size: 1.2rem;
  margin: 0 0 0.75rem 0;
}

#checkout-success p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

 