/* ============================================================
   Pedido de Arte - Fruto9
   Padrao visual de fruto9.com.br
   Container: max-w-7xl (1280px) + px-4 / sm:px-6 / lg:px-8
   ============================================================ */

:root {
  --f9-cyan:        #00c8e0;
  --f9-cyan-bright: #00E5FF;
  --f9-cyan-600:    #0891b2;
  --f9-cyan-dark:   #006070;
  --f9-dark:        #0f172a;
  --f9-darker:      #020617;
  --f9-slate:       #1e293b;
  --f9-green:       #16a34a;
  --f9-green-600:   #059669;
  --f9-red:         #dc2626;

  --txt:        #0f172a;
  --txt-muted:  #64748b;
  --txt-soft:   #94a3b8;
  --linha:      #e2e8f0;
  --campo-bg:   #ffffff;
  --pagina-bg:  #f8fafc;
  --card-bg:    #ffffff;

  --raio:    12px;
  --raio-lg: 16px;
  --sombra:    0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --sombra-lg: 0 10px 25px -5px rgba(15, 23, 42, .10), 0 8px 10px -6px rgba(15, 23, 42, .05);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--pagina-bg);
  color: var(--txt);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Container: identico ao do site (max-w-7xl) ---------- */
.container-f9 {
  width: 100%;
  max-width: 80rem;          /* 1280px = max-w-7xl */
  margin-inline: auto;
  padding-inline: 1rem;      /* px-4 */
}
@media (min-width: 640px)  { .container-f9 { padding-inline: 1.5rem; } }  /* sm:px-6 */
@media (min-width: 1024px) { .container-f9 { padding-inline: 2rem; } }    /* lg:px-8 */

/* ---------- Faixa escura: topo + hero na MESMA cor, sem emenda ----------
   No fruto9.com.br o menu é transparente e fica por cima do hero escuro.
   Aqui é igual: o gradiente é desta faixa, e o topo por cima dele.        */
.faixa-escura {
  background:
    radial-gradient(60rem 30rem at 80% 0%, rgba(0, 200, 224, .18), transparent 60%),
    linear-gradient(135deg, var(--f9-dark) 0%, var(--f9-darker) 100%);
  color: #fff;
}

/* ---------- Topo ---------- */
.topo {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.topo-logo img { height: 38px; width: auto; display: block; }
.topo-link {
  font-size: .875rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: color .15s;
}
.topo-link:hover { color: var(--f9-cyan-bright); }

/* Topo em paginas claras (diagnostico), sem o hero embaixo */
.topo.claro {
  background: #fff;
  border-bottom: 1px solid var(--linha);
}
.topo.claro .topo-link { color: var(--txt-muted); }
.topo.claro .topo-link:hover { color: var(--f9-cyan-600); }

/* ---------- Hero ---------- */
.hero { padding-block: 3rem; }
@media (min-width: 768px) { .hero { padding-block: 4.5rem; } }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0, 200, 224, .12);
  border: 1px solid rgba(0, 200, 224, .3);
  color: var(--f9-cyan-bright);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .375rem .875rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  max-width: 42rem;          /* max-w-2xl, como o site */
}
.hero h1 .destaque {
  background: linear-gradient(90deg, var(--f9-cyan-bright), var(--f9-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin-top: 1rem;
  max-width: 42rem;
  color: #cbd5e1;
  font-size: 1.0625rem;
}

/* ---------- Layout do formulario ---------- */
.corpo { padding-block: 2.5rem 4rem; }

.grid-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .grid-form { grid-template-columns: minmax(0, 1fr) 20rem; }
}

/* ---------- Card de secao ---------- */
.secao {
  background: var(--card-bg);
  border: 1px solid var(--linha);
  border-radius: var(--raio-lg);
  box-shadow: var(--sombra);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: 6rem;
}
@media (min-width: 768px) { .secao { padding: 2rem; } }

.secao-cab {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--linha);
}
.secao-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--f9-cyan), var(--f9-cyan-600));
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
}
.secao-cab h2 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
.secao-cab p  { font-size: .8125rem; color: var(--txt-muted); margin-top: .125rem; }

/* ---------- Campos ---------- */
.linha-campos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .linha-campos.col-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .linha-campos.col-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.linha-campos:last-child { margin-bottom: 0; }

.campo { display: flex; flex-direction: column; gap: .4375rem; }
.campo.full { grid-column: 1 / -1; }

.campo label {
  font-size: .8125rem;
  font-weight: 600;
  color: #334155;
}
.campo .obrigatorio { color: var(--f9-red); margin-left: .125rem; }
.campo .dica { font-size: .75rem; color: var(--txt-soft); font-weight: 400; }

.campo input[type=text],
.campo input[type=email],
.campo input[type=tel],
.campo input[type=date],
.campo input[type=time],
.campo input[type=url],
.campo input[type=number],
.campo select,
.campo textarea {
  width: 100%;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--txt);
  background: var(--campo-bg);
  border: 1px solid #cbd5e1;
  border-radius: var(--raio);
  padding: .625rem .75rem;
  transition: border-color .15s, box-shadow .15s;
}
.campo textarea { resize: vertical; min-height: 6rem; line-height: 1.6; }

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--f9-cyan);
  box-shadow: 0 0 0 3px rgba(0, 200, 224, .18);
}
.campo input::placeholder,
.campo textarea::placeholder { color: #b6c2d2; }

.campo input.erro,
.campo select.erro,
.campo textarea.erro {
  border-color: var(--f9-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}
.msg-erro { font-size: .75rem; color: var(--f9-red); font-weight: 500; display: none; }
.msg-erro.ativo { display: block; }

/* ---------- Checkbox / radio em cartao ---------- */
.opcoes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .625rem;
}
.opcao {
  position: relative;
  display: flex;
  align-items: center;
  gap: .625rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: .625rem .75rem;
  font-size: .875rem;
  cursor: pointer;
  background: #fff;
  transition: all .15s;
  user-select: none;
}
.opcao:hover { border-color: var(--f9-cyan); background: #f0feff; }
.opcao input { accent-color: var(--f9-cyan-600); width: 1rem; height: 1rem; flex: none; cursor: pointer; }
.opcao:has(input:checked) {
  border-color: var(--f9-cyan);
  background: #ecfeff;
  box-shadow: 0 0 0 1px var(--f9-cyan);
}
.opcao:has(input:checked) > span { font-weight: 600; color: var(--f9-cyan-dark); }

/* Opcao com medida embaixo (tipos de peca) */
.opcao-txt { display: flex; flex-direction: column; gap: .0625rem; min-width: 0; }
.opcao-txt strong { font-size: .875rem; font-weight: 600; color: var(--txt); }
.opcao-txt small {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .6875rem;
  color: var(--txt-soft);
  letter-spacing: .01em;
}
.opcao:has(input:checked) .opcao-txt strong { color: var(--f9-cyan-dark); }
.opcao:has(input:checked) .opcao-txt small  { color: var(--f9-cyan-600); }

/* ---------- Campo que aparece so quando marca uma opcao ---------- */
.campo-extra {
  display: flex;
  flex-direction: column;
  gap: .4375rem;
  margin-top: 1rem;
  padding: 1rem;
  background: #f0feff;
  border: 1px solid #a5f3fc;
  border-left: 3px solid var(--f9-cyan);
  border-radius: 0 var(--raio) var(--raio) 0;
  animation: abrir .2s ease-out;
}
.campo-extra[hidden] { display: none; }
.campo-extra label { font-size: .8125rem; font-weight: 600; color: #155e75; }
.campo-extra textarea {
  width: 100%;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--txt);
  background: #fff;
  border: 1px solid #a5f3fc;
  border-radius: var(--raio);
  padding: .625rem .75rem;
  resize: vertical;
  min-height: 4.5rem;
  line-height: 1.6;
  transition: border-color .15s, box-shadow .15s;
}
.campo-extra textarea:focus {
  outline: none;
  border-color: var(--f9-cyan);
  box-shadow: 0 0 0 3px rgba(0, 200, 224, .18);
}
.campo-extra textarea.erro {
  border-color: var(--f9-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}
@keyframes abrir {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Paleta de cores ---------- */
.paleta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cor-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--linha);
  border-radius: 10px;
  padding: .375rem .5rem .375rem .375rem;
  background: #fff;
}
.cor-item input[type=color] {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 7px;
  padding: 0;
  background: none;
  cursor: pointer;
}
.cor-item input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.cor-item input[type=color]::-webkit-color-swatch { border: 1px solid rgba(0,0,0,.12); border-radius: 7px; }
.cor-hex {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--txt-muted);
  min-width: 4.5rem;
  text-transform: uppercase;
}
.cor-remover {
  border: none;
  background: none;
  color: var(--txt-soft);
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
  padding: .25rem;
  border-radius: 5px;
  transition: all .15s;
}
.cor-remover:hover { color: var(--f9-red); background: #fef2f2; }

.btn-add-cor {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  border: 1px dashed #cbd5e1;
  background: #fff;
  color: var(--txt-muted);
  border-radius: 10px;
  padding: .625rem .875rem;
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.btn-add-cor:hover { border-color: var(--f9-cyan); color: var(--f9-cyan-dark); background: #f0feff; }

/* ---------- Upload ---------- */
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--raio-lg);
  background: #fff;
  padding: 2.25rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all .18s;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--f9-cyan);
  background: #f0feff;
}
.dropzone.dragover { transform: scale(1.01); }
.dropzone svg { color: var(--f9-cyan-600); margin-bottom: .75rem; }
.dropzone strong { display: block; font-size: .9375rem; color: var(--txt); }
.dropzone span   { display: block; font-size: .8125rem; color: var(--txt-muted); margin-top: .25rem; }
.dropzone input[type=file] { display: none; }

.lista-arquivos { display: grid; gap: .5rem; margin-top: 1rem; }
.arq {
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid var(--linha);
  border-radius: 10px;
  padding: .5rem .75rem;
  background: #fff;
}
.arq-thumb {
  width: 2.5rem; height: 2.5rem;
  border-radius: 7px;
  object-fit: cover;
  background: var(--pagina-bg);
  flex: none;
  border: 1px solid var(--linha);
}
.arq-nome { font-size: .8125rem; font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arq-tam  { font-size: .75rem; color: var(--txt-soft); flex: none; }

/* ---------- Resumo lateral ---------- */
.lateral { position: sticky; top: 5.5rem; display: grid; gap: 1rem; }
@media (max-width: 1023px) { .lateral { position: static; } }

.card-lateral {
  background: var(--card-bg);
  border: 1px solid var(--linha);
  border-radius: var(--raio-lg);
  box-shadow: var(--sombra);
  padding: 1.25rem;
}
.card-lateral h3 {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--txt-muted);
  margin-bottom: .875rem;
}
.indice { display: grid; gap: .125rem; }
.indice a {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .8125rem;
  color: var(--txt-muted);
  text-decoration: none;
  padding: .4375rem .5rem;
  border-radius: 7px;
  transition: all .15s;
}
.indice a:hover { background: var(--pagina-bg); color: var(--f9-cyan-dark); }
.indice a .n {
  width: 1.25rem; height: 1.25rem;
  display: grid; place-items: center;
  border-radius: 5px;
  background: var(--pagina-bg);
  font-size: .6875rem;
  font-weight: 700;
  flex: none;
}

.aviso-prazo {
  background: linear-gradient(135deg, #ecfeff, #f0f9ff);
  border: 1px solid #a5f3fc;
  border-radius: var(--raio);
  padding: .875rem;
  font-size: .8125rem;
  color: #155e75;
  line-height: 1.55;
}
.aviso-prazo strong { display: block; margin-bottom: .25rem; }

/* ---------- Botao ---------- */
.acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: .5rem;
}
.btn-enviar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: linear-gradient(135deg, var(--f9-cyan), var(--f9-cyan-600));
  color: #fff;
  border: none;
  border-radius: var(--raio);
  padding: .875rem 2rem;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 200, 224, .35);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn-enviar:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 200, 224, .45); }
.btn-enviar:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-enviar .spinner {
  width: 1rem; height: 1rem;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: girar .7s linear infinite;
  display: none;
}
.btn-enviar.enviando .spinner { display: block; }
@keyframes girar { to { transform: rotate(360deg); } }

.nota-acoes { font-size: .8125rem; color: var(--txt-muted); }

/* ---------- Alertas ---------- */
.alerta {
  border-radius: var(--raio);
  padding: .875rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.alerta.erro  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alerta.certo { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* ---------- Rodape ---------- */
.rodape {
  background: var(--f9-darker);
  color: #94a3b8;
  padding-block: 2rem;
  font-size: .8125rem;
}
.rodape-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.rodape a { color: var(--f9-cyan); text-decoration: none; }
.rodape a:hover { text-decoration: underline; }

/* ---------- Honeypot (anti-spam, invisivel) ---------- */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Pagina de sucesso ---------- */
.sucesso-wrap { display: grid; place-items: center; padding-block: 4rem; }
.sucesso-card {
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: var(--raio-lg);
  box-shadow: var(--sombra-lg);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 34rem;
}
.sucesso-icone {
  width: 4.5rem; height: 4.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--f9-green), var(--f9-green-600));
  display: grid; place-items: center;
  margin: 0 auto 1.5rem;
  color: #fff;
}
.sucesso-card h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .625rem; }
.sucesso-card p  { color: var(--txt-muted); font-size: .9375rem; line-height: 1.6; }
.protocolo {
  display: inline-block;
  margin: 1.5rem 0;
  background: var(--pagina-bg);
  border: 1px dashed #cbd5e1;
  border-radius: var(--raio);
  padding: .875rem 1.5rem;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--f9-cyan-dark);
  letter-spacing: .05em;
}
.btn-voltar {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--f9-dark);
  color: #fff;
  text-decoration: none;
  border-radius: var(--raio);
  padding: .75rem 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  transition: background .15s;
}
.btn-voltar:hover { background: var(--f9-slate); }
