/* ========== RESET & TOKENS ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue:       #1565C0;
  --blue-dark:  #0D47A1;
  --blue-xdark: #0A2E6E;
  --blue-light: #1E88E5;
  --green:      #2E7D32;
  --green-light: #43A047;
  --orange:     #F57C00;
  --gold:       #FFB300;
  --dark:       #0A1628;
  --dark2:      #111D35;
  --gray:       #546E7A;
  --muted:      #90A4AE;
  --off-white:  #F5F7FA;
  --white:      #FFFFFF;
  --radius:     12px;
  --radius-lg:  20px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--off-white);
  color: var(--dark);
  min-height: 100vh;
}
h1,h2,h3,h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; line-height: 1.2; }
p { line-height: 1.7; color: var(--gray); }
a { text-decoration: none; color: inherit; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(16px);
  padding: 0 24px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__logo { display: flex; align-items: center; gap: 10px; }
.navbar__logo img { height: 42px; width: auto; }
.navbar__back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  padding: 8px 0;
}
.navbar__back:hover { color: var(--white); }
.navbar__back svg { width: 16px; height: 16px; }

/* ===== PAGE LAYOUT ===== */
.page {
  min-height: 100vh;
  padding: 108px 24px 80px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.scheduler {
  width: 100%;
  max-width: 860px;
}

/* ===== HEADER ===== */
.sch-header {
  text-align: center;
  margin-bottom: 40px;
}
.sch-header__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,124,0,0.1);
  border: 1px solid rgba(245,124,0,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.sch-header__dot {
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,100%{opacity:1;} 50%{opacity:0.4;}
}
.sch-header__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 10px;
}
.sch-header__sub {
  font-size: 16px;
  color: var(--gray);
}

/* ===== STEPS INDICATOR ===== */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
}
.step-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}
.step-pill.active {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(21,101,192,0.3);
}
.step-pill.done {
  background: rgba(46,125,50,0.12);
  color: var(--green);
}
.step-pill.pending {
  background: var(--white);
  color: var(--muted);
  border: 1px solid rgba(0,0,0,0.08);
}
.step-pill__num {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}
.step-pill.active  .step-pill__num { background: rgba(255,255,255,0.2); }
.step-pill.done    .step-pill__num { background: rgba(46,125,50,0.2); }
.step-pill.pending .step-pill__num { background: var(--off-white); }
.steps-connector {
  width: 40px; height: 1px;
  background: rgba(0,0,0,0.1);
  flex-shrink: 0;
}

/* ===== CARD ===== */
.sch-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* ===== STEP 1: CALENDAR ===== */
.step1 { display: flex; min-height: 460px; }
.cal-panel {
  flex: 1;
  padding: 36px;
  border-right: 1px solid rgba(0,0,0,0.06);
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.cal-month {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  text-transform: capitalize;
}
.cal-nav {
  display: flex;
  gap: 4px;
}
.cal-nav-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: var(--transition);
  font-size: 16px;
}
.cal-nav-btn:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.cal-nav-btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day-name {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 8px 0;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.cal-day.empty { cursor: default; }
.cal-day.past { color: var(--muted); cursor: default; }
.cal-day.weekend { color: var(--muted); cursor: default; }
.cal-day.full {
  color: var(--muted);
  cursor: not-allowed;
}
.cal-day.full::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted);
}
.cal-day.available {
  color: var(--dark);
}
.cal-day.available:hover {
  background: rgba(21,101,192,0.08);
  color: var(--blue);
}
.cal-day.available::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green-light);
}
.cal-day.today {
  font-weight: 900;
  border: 2px solid rgba(21,101,192,0.3);
}
.cal-day.selected {
  background: var(--blue) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 14px rgba(21,101,192,0.35);
}
.cal-day.selected::after { background: rgba(255,255,255,0.6); }

/* Time slots panel */
.time-panel {
  width: 200px;
  flex-shrink: 0;
  padding: 36px 28px;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
}
.time-panel__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.time-panel__date {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  min-height: 20px;
}
.time-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.time-slot {
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.time-slot:hover { border-color: var(--blue); color: var(--blue); background: rgba(21,101,192,0.04); }
.time-slot.selected {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(21,101,192,0.3);
}
.time-slot.taken {
  color: var(--muted);
  background: var(--off-white);
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: transparent;
}
.time-empty {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 20px 0;
}

/* Step 1 footer */
.step1-footer {
  padding: 20px 36px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
}
.step1-selection {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
}
.step1-selection strong { color: var(--dark); }

/* ===== STEP 2: EMAIL ===== */
.step2 { padding: 48px; }
.step2__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 32px;
  transition: var(--transition);
  background: none;
  border: none;
  padding: 0;
}
.step2__back:hover { color: var(--blue); }
.step2__summary {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.step2__summary-icon {
  width: 48px; height: 48px;
  background: var(--blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}
.step2__summary-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.step2__summary-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
}
.step2__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
.step2__sub {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 32px;
}
.step2__label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}
.step2__input {
  width: 100%;
  max-width: 440px;
  padding: 15px 18px;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--dark);
  outline: none;
  transition: var(--transition);
  background: var(--white);
  display: block;
  margin-bottom: 28px;
}
.step2__input::placeholder { color: var(--muted); }
.step2__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21,101,192,0.1);
}
.step2__input.error { border-color: #E53935; }
.step2__submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}
.step2__submit:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,124,0,0.4);
}
.step2__submit:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.step2__error {
  display: none;
  margin-top: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #E53935;
}
.step2__error.show { display: block; }

/* Initial hidden state for step views (toggled by JS) */
#step2-view,
#success-view { display: none; }

/* ===== SUCCESS STATE ===== */
.success-state {
  padding: 80px 48px;
  text-align: center;
}
.success-state__icon {
  width: 88px; height: 88px;
  background: rgba(46,125,50,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 40px;
  animation: pop-in 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes pop-in {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-state__title {
  font-size: 28px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 12px;
}
.success-state__sub {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 8px;
}
.success-state__email {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 36px;
}
.success-state__detail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 16px 28px;
  margin-bottom: 36px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}
.success-state__home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
}
.success-state__home:hover { background: var(--blue-dark); }

/* ===== ASIDE INFO ===== */
.page-aside {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.aside-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.aside-card__icon { font-size: 22px; flex-shrink: 0; }
.aside-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}
.aside-card__text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ===== BUTTONS ===== */
.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-next:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-next:disabled { opacity: 0.4; cursor: default; transform: none; }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 62px;
  height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), box-shadow 0.28s;
  text-decoration: none;
}
.wa-float::before,
.wa-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: wa-pulse 2.6s ease-out infinite;
}
.wa-float::after { animation-delay: 1.3s; }
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37,211,102,0.6);
}
.wa-float__tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--dark);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.wa-float__tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--dark);
}
.wa-float:hover .wa-float__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
  .page { padding: 96px 16px 60px; }
  .step1 { flex-direction: column; }
  .time-panel { width: 100%; border-right: none; border-top: 1px solid rgba(0,0,0,0.06); }
  .cal-panel { padding: 24px 20px; }
  .step1-footer { flex-direction: column; gap: 12px; align-items: flex-start; }
  .step2 { padding: 32px 24px; }
  .success-state { padding: 48px 24px; }
  .page-aside { grid-template-columns: 1fr; }
  .steps { gap: 0; }
  .step-pill { padding: 8px 14px; font-size: 12px; }
  .steps-connector { width: 20px; }
  .wa-float { width: 54px; height: 54px; bottom: 20px; right: 20px; }
  .wa-float__tooltip { display: none; }
}
