/* ==========================================================
   Página do Curso — complemento do styles.css
   Usa as variáveis do site (--surface, --muted, --radius…)
   e só estiliza classes que começam com "curso-".
   ========================================================== */

.curso-section-line {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* Fotos da instrutora (fundo escuro): mantém proporção retrato */
.curso-hero-figure {
  max-width: min(420px, 100%);
}
.curso-hero-figure .hero-visual img,
.curso-about-figure .about-photo img,
.curso-form-figure .about-photo img {
  width: 100%;
  object-fit: cover;
}
.curso-about-figure {
  max-width: 360px;
  justify-self: center;
}

/* Cards dos cursos */
.curso-cards {
  align-items: start;
}
@media (min-width: 600px) and (max-width: 859px) {
  .curso-cards { grid-template-columns: 1fr; }
}
.curso-card {
  display: flex;
  flex-direction: column;
}
.curso-card:hover {
  transform: none; /* evita o card "pular" ao abrir módulos */
}
.curso-card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.card p.curso-meta {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.card p.curso-price {
  margin: 1.25rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.curso-price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 0.3rem;
  vertical-align: 0.9em;
}
.curso-card--destaque {
  border: 1px solid var(--gold-bright);
  box-shadow: var(--shadow-hover);
}

.curso-modules .faq-item {
  background: var(--bg);
}
.curso-modules .faq-item summary {
  text-align: left;
}
.curso-modules ul.faq-answer {
  padding-left: 2.5rem;
  display: grid;
  gap: 0.35rem;
}
.curso-modules ul.faq-answer li::marker {
  color: var(--gold-bright);
}
.curso-card .btn-block {
  margin-top: 1.25rem;
}

/* Comparativo */
.curso-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.curso-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.curso-table th,
.curso-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.curso-table tbody tr:last-child > * {
  border-bottom: 0;
}
.curso-table thead th {
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--bg);
}
.curso-table tbody th {
  width: 26%;
  font-weight: 600;
  color: var(--muted);
}

/* Incluso */
@media (min-width: 700px) {
  .curso-incluso {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}
.curso-pagamento {
  margin: 2rem 0 0;
  color: var(--muted);
}
.curso-pagamento strong {
  color: var(--text);
}

/* Inscrição */
.curso-form-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
.curso-form-grid > * {
  min-width: 0;
}
@media (min-width: 900px) {
  .curso-form-grid {
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: clamp(2rem, 5vw, 4rem);
  }
  .curso-form-figure {
    position: sticky;
    top: 6rem;
  }
}
@media (max-width: 899px) {
  .curso-form-figure { display: none; }
}
.curso-quote {
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  color: var(--text);
  text-wrap: balance;
}

.curso-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1rem;
  background: var(--bg);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.curso-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.curso-field--full {
  grid-column: 1 / -1;
}
.curso-form label,
.curso-form legend {
  font-size: 0.9375rem;
  font-weight: 600;
}
.curso-form legend {
  padding: 0;
  margin-bottom: 0.5rem;
}
.curso-opt {
  font-weight: 400;
  color: var(--muted);
}
.curso-form input[type="text"],
.curso-form input[type="tel"],
.curso-form input[type="email"],
.curso-form select,
.curso-form textarea {
  width: 100%;
  min-height: var(--touch);
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1rem; /* evita zoom automático no iPhone */
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.curso-form input:focus,
.curso-form select:focus,
.curso-form textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--ring);
}
.curso-form [aria-invalid="true"] {
  border-color: #c0392b;
}
.curso-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.curso-form .curso-choices label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--touch);
  padding: 0.5rem 1rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.curso-form .curso-choices label:has(input:checked) {
  border-color: var(--text);
  background: var(--gold-soft);
}
.curso-form input[type="radio"],
.curso-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--brand);
}
.curso-form .curso-consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--muted);
  cursor: pointer;
}
.curso-consent input {
  margin-top: 0.15rem !important;
}
.curso-error {
  margin: 0;
  color: #c0392b;
  font-weight: 500;
}
.curso-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.curso-btn-whats {
  background: #25d366;
  color: #0a0a0a;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}
.curso-btn-whats:hover {
  background: #1ebe5b;
  color: #0a0a0a;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}
.curso-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.curso-success {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold-bright);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.curso-success h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}
.curso-success p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

@media (max-width: 599px) {
  .curso-form { grid-template-columns: 1fr; }
  .curso-actions .btn { width: 100%; }
}
@media (max-width: 799px) {
  .curso-pagamento { text-align: center; }
}
@media (max-width: 599px) {
  .curso-hero-figure { max-width: 300px; }
  .curso-about-figure { max-width: 280px; }
}
