
/*
 * Psicoserv — agendamento.css
 * PARTE 1: CSS independente e claro para o fluxo de agendamento/pagamento.
 *
 * Este arquivo foi feito para funcionar MESMO que /assets/css/style.css
 * esteja diferente, porque as 3 landings serão tratadas separadamente.
 */

.schedule-page {
  --schedule-bg: #f8f5ef;
  --schedule-bg-soft: #f1ece3;
  --schedule-surface: #ffffff;
  --schedule-surface-alt: #f8fbfa;
  --schedule-text: #1a292d;
  --schedule-muted: #65777a;
  --schedule-primary: #20a9b5;
  --schedule-primary-dark: #117883;
  --schedule-primary-soft: #e9f7f7;
  --schedule-line: #e5ddd1;
  --schedule-green: #2f9c66;
  --schedule-warning: #fff8e7;
  --schedule-danger: #fff1ef;
  --schedule-danger-text: #8b3b31;
  --schedule-radius: 22px;
  --schedule-radius-small: 14px;
  --schedule-shadow: 0 18px 50px rgba(33, 49, 50, .08);

  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 92% 5%, rgba(32, 169, 181, .08), transparent 26rem),
    radial-gradient(circle at 0% 65%, rgba(212, 174, 145, .08), transparent 26rem),
    var(--schedule-bg);
  color: var(--schedule-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

/* Base isolada do restante das landings */
.schedule-page *,
.schedule-page *::before,
.schedule-page *::after {
  box-sizing: border-box;
}

.schedule-page a {
  color: var(--schedule-primary-dark);
}

.schedule-page .container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.schedule-page .skip-link {
  position: fixed;
  left: 10px;
  top: 10px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  transform: translateY(-160%);
}

.schedule-page .skip-link:focus {
  transform: none;
}

.schedule-page .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 249, .94);
  border-bottom: 1px solid var(--schedule-line);
  backdrop-filter: blur(14px);
}

.schedule-page .header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.schedule-page .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.schedule-page .brand img {
  display: block;
  width: auto;
  max-width: 168px;
  max-height: 44px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.schedule-page .back-link {
  color: var(--schedule-primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.schedule-page .back-link:hover {
  text-decoration: underline;
}

.schedule-page .eyebrow {
  margin: 0 0 9px;
  color: var(--schedule-primary-dark);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.schedule-page .btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.schedule-page .btn:hover {
  transform: translateY(-1px);
}

.schedule-page .btn-primary {
  color: #fff;
  background: var(--schedule-primary);
  border-color: var(--schedule-primary);
  box-shadow: 0 12px 28px rgba(32, 169, 181, .18);
}

.schedule-page .btn-primary:hover {
  background: var(--schedule-primary-dark);
  border-color: var(--schedule-primary-dark);
}

.schedule-page .btn-secondary {
  color: var(--schedule-text);
  background: #fff;
  border-color: var(--schedule-line);
}

.schedule-page .btn.full {
  width: 100%;
}

.schedule-page .footer {
  margin-top: 36px;
  background: #edf2ef;
  color: #43565a;
  border-top: 1px solid var(--schedule-line);
}

.schedule-page .footer-bottom {
  min-height: 86px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  font-size: .88rem;
}

.schedule-page .footer-bottom p {
  margin: 0;
}

.schedule-main {
  min-height: calc(100vh - 72px);
}

.schedule-hero {
  padding: 48px 0 20px;
  background:
    radial-gradient(circle at 88% 0%, rgba(32, 169, 181, .11), transparent 28rem),
    linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0));
}

.schedule-intro {
  max-width: 820px;
}

.schedule-intro h1,
.confirmation-card h1 {
  margin: 0 0 14px;
  color: var(--schedule-text);
  font-size: clamp(2.2rem, 7vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.schedule-intro p:not(.eyebrow) {
  max-width: 710px;
  margin: 0;
  color: var(--schedule-muted);
  font-size: 1.04rem;
}

.schedule-section {
  padding: 25px 0 42px;
}

.schedule-layout {
  display: grid;
  gap: 22px;
  align-items: start;
}

.schedule-card,
.schedule-aside,
.reservation-form,
.confirmation-card {
  color: var(--schedule-text);
  background: var(--schedule-surface);
  border: 1px solid var(--schedule-line);
  border-radius: var(--schedule-radius);
  box-shadow: var(--schedule-shadow);
}

.schedule-card,
.reservation-form,
.confirmation-card {
  padding: 24px;
}

.schedule-aside {
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(32,169,181,.08), transparent 16rem),
    linear-gradient(145deg, #ffffff, #f7fbfa);
}

.schedule-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.schedule-card h2,
.schedule-aside h2,
.reservation-form h2 {
  margin: 0;
  color: var(--schedule-text);
  font-size: clamp(1.55rem, 5vw, 2.25rem);
  line-height: 1.12;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--schedule-line);
  border-radius: 999px;
  background: #f4eee5;
  color: #253438;
  font-size: .9rem;
  font-weight: 850;
  white-space: nowrap;
}

.field-label,
.reservation-form label {
  display: grid;
  gap: 7px;
  color: #2b3a3d;
  font-weight: 800;
}

.schedule-select,
.reservation-form input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #ddd3c6;
  border-radius: 13px;
  padding: 12px 14px;
  background: #fff;
  color: var(--schedule-text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(0,0,0,.015);
}

.schedule-select:focus,
.reservation-form input:focus {
  outline: 3px solid rgba(32, 169, 181, .16);
  border-color: var(--schedule-primary);
}

.schedule-status {
  margin: 18px 0 12px;
  color: var(--schedule-muted);
  font-size: .95rem;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.slot-button {
  min-height: 54px;
  border: 1px solid #ddd3c6;
  border-radius: 13px;
  background: #faf7f2;
  color: var(--schedule-text);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: .18s ease;
}

.slot-button:hover {
  border-color: #8fcbd0;
  background: #eef9f9;
}

.slot-button.is-selected {
  color: #fff;
  background: var(--schedule-primary);
  border-color: var(--schedule-primary);
  box-shadow: 0 9px 22px rgba(32,169,181,.18);
}

.empty-slots,
.loading-slots,
.noscript-warning {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px;
  border: 1px dashed #d9cfc1;
  border-radius: 14px;
  background: #fbf8f3;
  color: var(--schedule-muted);
  text-align: center;
}

.schedule-steps {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.schedule-steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

.schedule-steps span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff3f4;
  color: var(--schedule-primary-dark);
  border: 1px solid #c8e8ea;
  font-weight: 900;
}

.schedule-steps strong,
.schedule-steps p {
  display: block;
}

.schedule-steps p {
  margin: 3px 0 0;
  color: var(--schedule-muted);
  font-size: .94rem;
}

.emergency-note {
  margin: 0;
  padding: 14px;
  border: 1px solid #f1d8d3;
  border-radius: 14px;
  background: #fff7f5;
  color: #694d48;
  font-size: .9rem;
}

.form-container {
  max-width: 820px;
}

.schedule-form-section {
  padding-top: 5px;
}

.form-heading {
  margin-bottom: 22px;
}

.form-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--schedule-muted);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.full-field {
  grid-column: 1 / -1;
}

.reservation-form label span {
  font-weight: 500;
  color: var(--schedule-muted);
}

.reservation-form .consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 16px;
  font-size: .91rem;
  line-height: 1.45;
}

.reservation-form .consent-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.consent-box {
  padding: 14px;
  border: 1px solid var(--schedule-line);
  border-radius: 14px;
  background: #faf7f2;
}

.reservation-form button:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
  box-shadow: none;
}

.form-help {
  margin: 12px 0 0;
  color: var(--schedule-muted);
  font-size: .88rem;
}

.form-alert {
  margin: 0 0 20px;
  padding: 13px 14px;
  border-radius: 14px;
  font-weight: 750;
}

.form-alert-error,
.form-error {
  background: var(--schedule-danger);
  border: 1px solid #efcbc5;
  color: var(--schedule-danger-text);
}

.form-alert-success {
  background: #eef9f2;
  border: 1px solid #c7e8d2;
  color: #2d6946;
}

.confirmation-main {
  display: grid;
  place-items: center;
}

.confirmation-container {
  max-width: 760px;
}

.confirmation-card {
  text-align: center;
  margin-top: 30px;
}

.confirmation-card > p {
  color: var(--schedule-muted);
  font-size: 1.03rem;
}

.confirmation-success {
  border-top: 5px solid var(--schedule-green);
}

.confirmation-name {
  color: var(--schedule-text) !important;
  font-weight: 850;
}

.reservation-summary {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  text-align: left;
}

.reservation-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--schedule-line);
  border-radius: 14px;
  background: #faf7f2;
}

.reservation-summary span {
  color: var(--schedule-muted);
}

.reservation-deadline {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #eedfae;
  border-radius: 14px;
  background: var(--schedule-warning);
  color: #655a31 !important;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
}

.inline-form {
  margin: 0;
}

.small-note {
  color: var(--schedule-muted) !important;
  font-size: .9rem !important;
}

.form-error {
  margin: 16px 0;
  padding: 13px 14px;
  border-radius: 14px;
}

@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .slots-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 960px) {
  .schedule-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr);
  }

  .schedule-card,
  .schedule-aside,
  .reservation-form,
  .confirmation-card {
    padding: 32px;
  }
}

@media (max-width: 620px) {
  .schedule-page .container {
    width: min(100% - 22px, 1180px);
  }

  .schedule-page .header-inner {
    min-height: 64px;
  }

  .schedule-page .brand img {
    max-width: 132px;
    max-height: 36px;
  }

  .schedule-page .back-link {
    font-size: .85rem;
  }

  .schedule-hero {
    padding: 34px 0 12px;
  }

  .schedule-intro h1,
  .confirmation-card h1 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .schedule-section {
    padding: 18px 0 30px;
  }

  .schedule-card,
  .schedule-aside,
  .reservation-form,
  .confirmation-card {
    padding: 19px;
    border-radius: 18px;
  }

  .schedule-card-header {
    display: grid;
  }

  .price-badge {
    justify-self: start;
  }

  .slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .slot-button {
    min-height: 50px;
  }

  .confirmation-actions {
    display: grid;
  }

  .confirmation-actions .btn,
  .confirmation-actions .inline-form,
  .confirmation-actions .inline-form .btn {
    width: 100%;
  }

  .schedule-page .footer-bottom {
    display: grid;
  }
}


/* ==========================================================
   AJUDA DISCRETA PELO WHATSAPP — página /agendar/
   Aparece após alguns segundos somente se o visitante ainda
   não tiver escolhido um horário.
   ========================================================== */

.schedule-page .schedule-whatsapp-helper {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  max-width: min(365px, calc(100vw - 24px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.97);
  pointer-events: none;
  transition:
    opacity .26s ease,
    transform .26s ease,
    visibility .26s ease;
}

.schedule-page .schedule-whatsapp-helper.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.schedule-page .schedule-whatsapp-helper-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 15px 8px 8px;
  border: 1px solid rgba(19, 33, 38, .10);
  border-radius: 22px 22px 7px 22px;
  background: rgba(255, 255, 255, .97);
  color: var(--schedule-text);
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(25, 44, 46, .16);
  backdrop-filter: blur(12px);
}

.schedule-page .schedule-whatsapp-helper-card::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 14px;
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,.97);
  transform: rotate(45deg);
  border-radius: 2px;
  z-index: -1;
}

.schedule-page .schedule-whatsapp-helper-photo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(32, 169, 181, .16);
  box-shadow: 0 5px 14px rgba(25, 44, 46, .12);
}

.schedule-page .schedule-whatsapp-helper-copy {
  min-width: 0;
}

.schedule-page .schedule-whatsapp-helper-copy strong {
  display: block;
  color: #203033;
  font-size: .94rem;
  line-height: 1.18;
}

.schedule-page .schedule-whatsapp-helper-copy span {
  display: block;
  margin-top: 3px;
  color: var(--schedule-muted);
  font-size: .82rem;
  line-height: 1.28;
}

.schedule-page .schedule-whatsapp-helper-close {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(19, 33, 38, .10);
  border-radius: 50%;
  background: #fff;
  color: #6c7b7e;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(25, 44, 46, .10);
}

.schedule-page .schedule-whatsapp-helper-close:hover {
  color: var(--schedule-text);
  background: #f9f7f3;
}

@media (max-width: 620px) {
  .schedule-page .schedule-whatsapp-helper {
    left: 11px;
    right: 11px;
    bottom: max(11px, env(safe-area-inset-bottom));
    max-width: none;
    justify-content: flex-end;
  }

  .schedule-page .schedule-whatsapp-helper-card {
    width: min(100%, 330px);
    padding-right: 14px;
  }

  .schedule-page .schedule-whatsapp-helper-photo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .schedule-page .schedule-whatsapp-helper-copy strong {
    font-size: .9rem;
  }

  .schedule-page .schedule-whatsapp-helper-copy span {
    font-size: .79rem;
  }
}
