@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --gold: #c9a84c; --gold-light: #e8c97a; --gold-dark: #9a7a2e;
  --blue: #1a3a8f; --blue-deep: #0b1f57; --blue-mid: #24509e;
  --cream: #f6f8fd; --smoke: #eef1f9; --line: #dfe4f0;
  --text: #0f1a35; --soft: #556080; --white: #fff;
  --danger: #b42318; --ok: #1a7f4b;
  --shadow-md: 0 8px 32px rgba(11,31,87,.12);
  --shadow-sm: 0 2px 12px rgba(11,31,87,.08);
  /* nomes usados pelas telas */
  --bg: var(--cream); --card: var(--white); --ink: var(--text); --muted: var(--soft);
  --brand: var(--blue-deep); --brand-ink: #fff; --accent: var(--gold);
}
body { margin: 0; font: 16px/1.55 'Inter', system-ui, sans-serif; background: var(--cream); color: var(--text); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ---------- Cabeçalho (mesma linguagem do site de fotos) ---------- */
.top {
  position: relative; overflow: hidden; background: var(--blue-deep); color: #fff; padding: 14px 0 38px;
}
.top::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 80% 100%, rgba(36,80,158,.32) 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,.012) 60px, rgba(255,255,255,.012) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,.012) 60px, rgba(255,255,255,.012) 61px);
}
.top .wrap { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.logo { height: 72px; width: auto; filter: brightness(0) invert(1); object-fit: contain; }
.brand strong { display: block; font-family: 'Playfair Display', serif; color: #fff; font-size: 1rem; line-height: 1.2; }
.brand span { color: var(--gold); font-size: .7rem; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 600; }
.hero-body { text-align: center; padding-top: 26px; }
.eyebrow {
  display: inline-block; background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.3); color: var(--gold-light);
  font-size: .72rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; padding: 6px 18px; border-radius: 100px; margin-bottom: 18px;
}
.top h1 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.1; margin: 0 0 12px; color: #fff; }
.top h1 em { font-style: normal; background: linear-gradient(135deg, var(--gold-light), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.top .sub { color: rgba(255,255,255,.7); max-width: 520px; margin: 0 auto 18px; }
.prazo {
  display: inline-block; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--blue-deep);
  font-weight: 700; padding: 8px 20px; border-radius: 100px; box-shadow: 0 4px 20px rgba(201,168,76,.4);
}

main.wrap { padding-top: 22px; padding-bottom: 44px; counter-reset: sec; }

/* ---------- Cartões ---------- */
section { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
section:not([hidden]) { counter-increment: sec; }
section h2 { font-family: 'Playfair Display', serif; margin: 0 0 14px; font-size: 1.25rem; color: var(--blue-deep); padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: inline-block; }
section h2::before { content: counter(sec) ". "; color: var(--gold-dark); }
h2 small { font-family: 'Inter', sans-serif; font-weight: 400; color: var(--soft); font-size: .85rem; }
h3 { font-family: 'Playfair Display', serif; margin: 22px 0 8px; font-size: 1.05rem; color: var(--blue-deep); }
.hint { color: var(--soft); font-size: .9rem; margin: 0 0 10px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.full { grid-column: 1 / -1; }
.f { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--blue-deep); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--text); padding: 10px 12px; min-height: 46px; width: 100%;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream);
}
input[type=file] { display: block; width: 100%; font: inherit; font-weight: 400; font-size: .9rem; margin-top: 8px; color: var(--soft); }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: .95rem; min-height: 44px; padding: 0 16px; margin-right: 12px; border: 0; border-radius: 10px; cursor: pointer; color: var(--blue-deep); background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,58,143,.15); background: #fff; }

.check { display: flex; align-items: center; gap: 10px; min-height: 46px; font-size: .95rem; cursor: pointer; }
.check input[type=checkbox], .check input[type=radio] { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0; accent-color: var(--blue-deep); flex: none; }
.check.big { font-size: 1.05rem; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; background: var(--cream); }
.check.big:has(input:checked) { border-color: var(--gold); background: rgba(201,168,76,.12); }

.filho { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; margin-bottom: 12px; align-items: end; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }

/* ---------- Botões ---------- */
button { font: inherit; cursor: pointer; border-radius: 12px; min-height: 46px; padding: 0 20px; }
button.ghost { width: 100%; background: none; border: 1.5px dashed var(--blue); color: var(--blue); font-weight: 600; }
button.primary {
  width: 100%; border: 0; font-weight: 700; font-size: 1.05rem; color: var(--blue-deep);
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 4px 20px rgba(201,168,76,.4); min-height: 52px;
}
button.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,.5); }
button.primary:disabled { opacity: .6; cursor: wait; transform: none; }
button.x { min-height: 44px; padding: 0 12px; background: none; border: 1.5px solid var(--line); color: var(--danger); }

/* ---------- Documentos ---------- */
.doc { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--cream); }
.doc label { font-weight: 600; font-size: .95rem; display: block; color: var(--blue-deep); }
.doc.bad { border-color: var(--danger); background: rgba(180,35,24,.06); }
.doc .fname { display: block; font-size: .85rem; color: var(--ok); margin-top: 4px; font-weight: 600; }
.req { display: block; margin: 2px 0 0 !important; font-size: .68rem; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .08em; margin-left: 6px; }

.erro { background: rgba(180,35,24,.08); border: 1px solid var(--danger); color: var(--danger); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.erro ul { margin: 6px 0 0; padding-left: 20px; }
input.bad, select.bad { border-color: var(--danger); }
.okbox { background: var(--white); border: 2px solid var(--gold); border-radius: 16px; padding: 28px 18px; text-align: center; box-shadow: var(--shadow-md); }
.okbox h2 { color: var(--blue-deep); margin-top: 0; border: 0; }
.okbox h2::before { content: none; }
.okbox .prot b { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--blue-deep); }

.foot { text-align: center; color: rgba(255,255,255,.7); font-size: .8rem; padding: 22px 16px; max-width: none; background: var(--blue-deep); border-top: 3px solid var(--gold); }
[hidden] { display: none !important; }

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .filho { grid-template-columns: 1fr 1fr; align-items: start; }
  .filho > label { min-width: 0; }
  .filho .nome, .filho .x { grid-column: 1 / -1; }
  .logo { height: 60px; }
}
