:root {
  --brand-orange: #ef6c00;
  --brand-orange-dark: #c45400;
  --text-dark: #1f1f1f;
  --text-mid: #4a4a4a;
  --border-gray: #d9d9d9;
  --bg-page: #ffffff;
  --bg-section: #fafafa;
  --radius-card: 12px;
  --radius-md: 6px;
  --radius-full: 999px;
  --shadow-card: 0 24px 48px rgba(0,0,0,0.06);
  --shadow-modal: 0 24px 48px rgba(0,0,0,0.25);
  --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* O CSS original usa seletores globais como 'body' e '*' que podem interferir.
   Para um shortcode, o ideal seria encapsular todo o CSS em uma classe wrapper
   para evitar conflitos com o tema do WordPress.
   No entanto, para manter a fidelidade ao design original, manterei o CSS
   como está, mas com a ressalva de que pode haver conflitos. */

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* Removendo o seletor 'body' para evitar conflito com o tema */
/* body {
  margin: 0;
  background-color: var(--bg-section);
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.4;
} */

/* Aplicando estilos de corpo ao wrapper principal */
.positivo-agendamento-wrapper {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.4;
  background-color: var(--bg-section); /* O body original tinha essa cor */
}

/* ================= HEADER ================= */
.site-header {
  background-color: var(--brand-orange);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.header-inner {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #fff;
  color: var(--brand-orange);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
  opacity: 0.95;
}

.main-nav a:hover {
  text-decoration: underline;
  opacity: 1;
}

.main-nav .pill-area-aluno {
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 6px 12px;
  line-height: 1.2;
  font-weight: 600;
}

/* ================= HERO ================= */
.hero {
  text-align: center;
  background-color: var(--bg-page);
  padding: 32px 16px 16px;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 12px;
  color: var(--brand-orange);
  font-size: clamp(1.4rem, 0.5vw + 1rem, 1.8rem);
  font-weight: 600;
  line-height: 1.3;
}

.hero p {
  margin: 0;
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.5;
}

/* ================= LAYOUT PRINCIPAL ================= */
.page-wrapper {
  max-width: 1280px;
  margin: 24px auto 80px;
  padding: 0 16px 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media(min-width: 1024px) {
  .page-wrapper {
    grid-template-columns: 1fr 360px;
    align-items: flex-start;
  }
}

/* CARD FORM PRINCIPAL */
.form-card {
  background-color: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.03);
  padding: 24px 24px 32px;
}

/* Barra "Nossos Colégios" (cidade / unidade) */
.top-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.top-selects .select-block {
  flex: 1 1 240px;
  position: relative;
}

.select-block label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  display: block;
  margin-bottom: 6px;
}

select.city-unit {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-gray);
  background-color: #fff;
  font-size: 15px;
  line-height: 1.4;
  padding: 12px 14px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #777 50%),
    linear-gradient(135deg, #777 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: #2b2b2b;
}

select.city-unit:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(239,108,0,0.25);
}

/* ================= STEPS HEADER ================= */
.steps-header {
  border-top: 1px solid var(--border-gray);
  border-bottom: 1px solid var(--border-gray);
  padding: 16px 0;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
}

.step-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #777;
  font-weight: 500;
  line-height: 1.2;
}

.step-chip .num {
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  border: 2px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.step-chip.active {
  color: var(--brand-orange);
  font-weight: 600;
}

/* =============== FORMS (STEPS) =============== */
form {
  width: 100%;
}

.step-view:not(.active-step) {
  display: none;
}

.form-group {
  margin-bottom: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media(min-width:600px){
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.label-line {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.label-line .required {
  color: var(--brand-orange);
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select.data-select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-gray);
  background-color: #fff;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.4;
  color: #2b2b2b;
  outline: none;
  transition: all .15s;
  font-family: inherit;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

select.data-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #777 50%),
    linear-gradient(135deg, #777 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input:focus,
select.data-select:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(239,108,0,0.25);
}

.radio-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 15px;
  color: var(--text-mid);
}

/* Lista de alunos já cadastrados */
.alunos-lista {
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  background-color: #fff;
  padding: 16px;
  margin-bottom: 16px;
}

.aluno-item {
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.4;
  color: #2b2b2b;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.aluno-item:last-child {
  margin-bottom: 0;
}

.aluno-info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.aluno-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* FOOTER ACTIONS genéricas (passos 1-3) */
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--border-gray);
  padding-top: 24px;
  justify-content: flex-end;
}

button.btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background-color: var(--brand-orange);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  padding: 12px 16px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(239,108,0,0.3);
  transition: background-color .15s, box-shadow .15s;
}
button.btn:hover {
  background-color: var(--brand-orange-dark);
  box-shadow: 0 8px 20px rgba(196,84,0,0.4);
}

button.btn.secondary {
  background-color: #fff;
  color: var(--brand-orange);
  border: 2px solid var(--brand-orange);
  box-shadow: none;
}
button.btn.secondary:hover {
  background-color: rgba(239,108,0,0.08);
  box-shadow: none;
}

button.btn.prev {
  background-color: #fff;
  border: 2px solid #777;
  color: #444;
  box-shadow: none;
}
button.btn.prev:hover {
  background-color: #f2f2f2;
}

.small-note {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

/* ================= SIDE CARD (UNIDADE) ================= */
.school-card {
  background-color: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.school-img {
  width: 100%;
  height: 180px;
  background-image: url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1200&q=60");
  background-size: cover;
  background-position: center;
}

.school-info {
  padding: 20px 24px 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-mid);
}

.school-nome {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.school-etapas {
  display: inline-block;
  color: var(--brand-orange);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.school-info-row {
  margin-bottom: 6px;
}

/* ================= MODAL SUCESSO ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.modal-card {
  background: #fff;
  max-width: 420px;
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-modal);
  position: relative;
  text-align: center;
  padding: 32px 24px 40px;
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background-color: var(--brand-orange);
  color: #fff;
  font-size: 32px;
}

.modal-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.modal-card p {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.5;
}

.modal-card button.btn {
  width: 100%;
}

/* ================= FOOTER ================= */
.site-footer {
  background-color: #2b2b2b;
  color: #fff;
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
  opacity: 0.8;
}

/* ================= UTILITÁRIOS ================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.p-0 { padding: 0 !important; }

/* Icones (simulação) */
.icon-map, .icon-phone, .icon-mail, .icon-check, .icon-user {
  font-family: "Font Awesome 5 Free"; /* Simulação de ícones */
  font-weight: 900;
  font-style: normal;
  display: inline-block;
  line-height: 1;
}
.icon-map::before { content: "\f3c5"; } /* fa-map-marker-alt */
.icon-phone::before { content: "\f095"; } /* fa-phone */
.icon-mail::before { content: "\f0e0"; } /* fa-envelope */
.icon-check::before { content: "\f00c"; } /* fa-check */
.icon-user::before { content: "\f007"; } /* fa-user */
