/* ==========================================================================
   My First Little Words — Identidade Editorial (Bio & Formulário de Aulas)
   Baseado em Projetos/Yuri/Estudio/referencias/Dfzl5CApaWN/FICHA-V2.md
   Contraste verificado WCAG AA/AAA em todas as superfícies.
   ========================================================================== */

:root {
  --rosa: #E8A9B4;
  --rosa-suave: #EFC2CA;
  --creme: #F7F1E3;
  --papel: #F3EDDE;
  --papel-claro: #FCF9F2;
  --papel-borda: #E6DAC2;
  --azul: #2F6A94;
  --azul-caixa: #2E6E9E;
  --azul-caixa-hover: #245A83;
  --azul-aa: #1B4360;
  --azul-suave: #4C6B82;
  --texto-claro: #FEF7EA;
  --linha-azul: rgba(47, 106, 148, 0.24);
  --linha-azul-forte: rgba(47, 106, 148, 0.52);
  --erro: #9F2D39;
  --erro-fundo: #FDF2F3;
  --sucesso: #255E44;
  --sucesso-fundo: #EFF7F2;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-card: 14px;
  --radius-input: 10px;
  --shadow-sheet: 0 18px 48px rgba(27, 67, 96, 0.11), 0 2px 8px rgba(27, 67, 96, 0.05);
  --shadow-card: 0 4px 16px rgba(27, 67, 96, 0.07);
  --shadow-card-hover: 0 10px 24px rgba(27, 67, 96, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--creme);
  color: var(--azul-aa);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  background-color: var(--creme);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(232, 169, 180, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(47, 106, 148, 0.09) 0%, transparent 44%);
  color: var(--azul-aa);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

/* ==================== SHELL EDITORIAL (PAPELARIA) ==================== */
.sheet-wrap {
  width: 100%;
  max-width: 500px;
  min-height: 100dvh;
  background: var(--creme);
  display: flex;
  flex-direction: column;
  position: relative;
}

.sheet-wrap--form {
  max-width: 560px;
}

@media (min-width: 560px) {
  body {
    padding: 28px 18px 40px;
  }

  .sheet-wrap {
    min-height: auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(47, 106, 148, 0.22);
    box-shadow: var(--shadow-sheet);
  }
}

/* ==================== CABEÇALHO ROSA EDITORIAL ==================== */
.hero-header {
  position: relative;
  background: var(--rosa);
  padding: 34px 24px 30px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(27, 67, 96, 0.16);
}

.hero-header--form {
  padding: 22px 24px 28px;
}

/* Limões botânicos em halftone azul sangrando em cantos opostos (assinatura S1) */
.hero-lemon {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0.94;
}

.hero-lemon--tr {
  top: -28px;
  right: -46px;
  width: 112px;
  transform: rotate(-16deg);
}

.hero-lemon--bl {
  bottom: -48px;
  left: -52px;
  width: 102px;
  transform: scaleX(-1) rotate(16deg);
}

.hero-header--form .hero-lemon--tr {
  top: -30px;
  right: -48px;
  width: 108px;
  opacity: 0.88;
}

.hero-header--form .hero-lemon--bl {
  bottom: -54px;
  left: -56px;
  width: 98px;
  opacity: 0.82;
}

@media (min-width: 480px) {
  .hero-lemon--tr {
    top: -36px;
    right: -40px;
    width: 158px;
  }

  .hero-lemon--bl {
    bottom: -44px;
    left: -46px;
    width: 144px;
  }

  .hero-header--form .hero-lemon--tr {
    top: -42px;
    right: -46px;
    width: 148px;
  }

  .hero-header--form .hero-lemon--bl {
    bottom: -52px;
    left: -52px;
    width: 132px;
  }
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Barra superior na página de formulário */
.form-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--creme);
  color: var(--azul-aa);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid rgba(27, 67, 96, 0.2);
  box-shadow: 0 2px 6px rgba(27, 67, 96, 0.09);
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.back-link:hover,
.back-link:focus-visible {
  background: var(--papel-claro);
  transform: translateY(-1px);
  outline: none;
}

/* Retrato da Thaís com moldura dupla + selo de cera sobre a borda */
.portrait-stage {
  position: relative;
  width: 122px;
  height: 122px;
  margin-bottom: 16px;
}

.portrait-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 4px;
  background: var(--creme);
  border: 1.5px solid var(--azul-aa);
  box-shadow: 0 8px 22px rgba(27, 67, 96, 0.18);
  overflow: hidden;
}

.portrait-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.portrait-wax {
  position: absolute;
  right: -10px;
  bottom: -6px;
  width: 44px;
  height: 44px;
  z-index: 4;
  filter: drop-shadow(0 4px 8px rgba(27, 67, 96, 0.28));
}

.brand-pill {
  display: inline-block;
  background: var(--creme);
  color: var(--azul-aa);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(27, 67, 96, 0.22);
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--azul-aa);
  margin-bottom: 8px;
}

.hero-header--form .hero-title {
  font-size: 1.65rem;
  max-width: 20ch;
}

.hero-subtitle {
  font-size: 0.96rem;
  line-height: 1.48;
  color: var(--azul-aa);
  max-width: 30ch;
  padding-inline: 8px;
  font-weight: 400;
}

.hero-header--form .hero-subtitle {
  max-width: 32ch;
  padding-inline: 8px;
  font-size: 0.94rem;
}

@media (min-width: 480px) {
  .hero-subtitle {
    font-size: 0.98rem;
    max-width: 34ch;
    padding-inline: 0;
  }

  .hero-header--form .hero-subtitle {
    max-width: 40ch;
    font-size: 0.95rem;
    padding-inline: 0;
  }
}

.hero-medallion-mini {
  width: 68px;
  height: 68px;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 10px rgba(27, 67, 96, 0.14));
}

/* ==================== CORPO PRINCIPAL ==================== */
.sheet-body {
  flex: 1;
  padding: 24px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--creme);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azul);
}

.section-kicker::before,
.section-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--linha-azul);
}

/* ==================== CARDS DE LINK DA BIO ==================== */
.links-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 18px 20px;
  border-radius: var(--radius-card);
  background: var(--papel-claro);
  border: 1.5px solid var(--linha-azul-forte);
  color: var(--azul-aa);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

/* Filete editorial interno sutil */
.link-card::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: calc(var(--radius-card) - 4px);
  border: 1px solid rgba(47, 106, 148, 0.16);
  pointer-events: none;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--azul);
  outline: none;
}

.link-card:active {
  transform: translateY(0);
}

/* Card em destaque principal (Caixa Azul do Slide 8 — Contraste 5,13:1 PASS AA) */
.link-card--featured {
  background: var(--azul-caixa);
  border-color: #1F537A;
  color: var(--texto-claro);
  padding: 20px 18px 20px 20px;
  box-shadow: 0 10px 26px rgba(27, 67, 96, 0.22);
}

.link-card--featured::after {
  border-color: rgba(254, 247, 234, 0.28);
}

.link-card--featured:hover,
.link-card--featured:focus-visible {
  background: var(--azul-caixa-hover);
  border-color: var(--azul-aa);
}

.link-card__content {
  min-width: 0;
  flex: 1;
}

.link-card__kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 4px;
}

.link-card--featured .link-card__kicker {
  background: rgba(254, 247, 234, 0.16);
  color: var(--texto-claro);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 7px;
}

.link-card__title {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 4px;
}

.link-card__subtitle {
  font-size: 0.91rem;
  line-height: 1.4;
  color: var(--azul-suave);
}

.link-card--featured .link-card__subtitle {
  color: rgba(254, 247, 234, 0.92);
}

.link-card__arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(47, 106, 148, 0.1);
  color: var(--azul-aa);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.link-card--featured .link-card__arrow {
  background: rgba(254, 247, 234, 0.18);
  color: var(--texto-claro);
}

.link-card:hover .link-card__arrow {
  transform: translateX(3px);
}

/* Nota editorial discreta na bio */
.editorial-note {
  background: var(--papel);
  border: 1px solid var(--linha-azul);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--azul-aa);
}

.editorial-note strong {
  font-weight: 700;
  color: var(--azul-aa);
}

/* ==================== FORMULÁRIO DAS AULAS ==================== */
.form-card {
  position: relative;
  background: var(--papel-claro);
  border: 1.5px solid var(--linha-azul-forte);
  border-radius: var(--radius-card);
  padding: 22px 18px 24px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 480px) {
  .form-card {
    padding: 26px 26px 28px;
  }
}

.form-card--submitted .form-wax {
  display: none;
}

.form-wax {
  position: absolute;
  top: -18px;
  right: 16px;
  width: 46px;
  height: 46px;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(27, 67, 96, 0.24));
}

.form-intro-strip {
  font-size: 0.86rem;
  color: var(--azul-suave);
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--linha-azul);
  padding-right: 40px;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 460px) {
  .field-row {
    grid-template-columns: 1.35fr 0.85fr;
  }
}

.field__label {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--azul-aa);
}

.field__label--question {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.42;
}

.field__req {
  color: var(--azul);
  margin-left: 2px;
}

.field__hint {
  font-size: 0.82rem;
  color: var(--azul-suave);
  margin-top: -2px;
}

.field__input,
.field__textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid rgba(47, 106, 148, 0.34);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--azul-aa);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field__input {
  min-height: 48px;
}

.field__textarea {
  min-height: 104px;
  resize: vertical;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: #7D93A3;
}

.field__input:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--azul-caixa);
  box-shadow: 0 0 0 3px rgba(46, 110, 158, 0.16);
}

.field--invalid .field__input,
.field--invalid .field__textarea {
  border-color: var(--erro);
  background: var(--erro-fundo);
}

.field__error {
  display: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--erro);
}

.field--invalid .field__error {
  display: block;
}

/* Chips rápidos de disponibilidade */
.chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.chip-btn {
  appearance: none;
  border: 1.5px solid rgba(47, 106, 148, 0.38);
  background: var(--papel);
  color: var(--azul-aa);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--azul-caixa);
}

.chip-btn[aria-pressed="true"] {
  background: var(--azul-caixa);
  border-color: var(--azul-caixa);
  color: var(--texto-claro);
}

.form-divider {
  border: 0;
  height: 1px;
  background: var(--linha-azul);
  margin: 4px 0;
}

.form-alert {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
}

.form-alert--error {
  display: block;
  background: var(--erro-fundo);
  border: 1px solid rgba(159, 45, 57, 0.32);
  color: var(--erro);
}

.submit-btn {
  width: 100%;
  min-height: 52px;
  border: 1.5px solid #1F537A;
  border-radius: 12px;
  background: var(--azul-caixa);
  color: var(--texto-claro);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(27, 67, 96, 0.2);
  transition: background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.submit-btn:hover:not(:disabled) {
  background: var(--azul-caixa-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(27, 67, 96, 0.24);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.privacy-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--azul-suave);
  margin-top: -6px;
}

/* ==================== TELA DE CONFIRMAÇÃO ==================== */
.success-panel {
  display: none;
  text-align: center;
  padding: 14px 6px 8px;
}

.success-panel.is-visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.success-wax {
  width: 66px;
  height: 66px;
  filter: drop-shadow(0 6px 12px rgba(27, 67, 96, 0.24));
}

.success-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--azul-aa);
  line-height: 1.2;
}

.success-text {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--azul-aa);
  max-width: 38ch;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--papel);
  border: 1.5px solid var(--linha-azul-forte);
  color: var(--azul-aa);
  font-weight: 700;
  font-size: 0.94rem;
  transition: background-color 0.15s ease;
}

.btn-secondary:hover {
  background: #ECE3CE;
}

/* ==================== RODAPÉ ==================== */
.sheet-footer {
  padding: 6px 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  background: var(--creme);
}

.footer-medallion {
  width: 58px;
  height: 58px;
  opacity: 0.95;
}

.footer-handle {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--azul-aa);
  letter-spacing: 0.02em;
}

.footer-handle:hover {
  color: var(--azul);
  text-decoration: underline;
}

.footer-brand {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azul-suave);
}

/* Acessibilidade */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
