/* ============================================================
   Consulte — Formulário de orçamento (lead → CRM Agendor)
   Usado na seção da landing (#orcamento) e na página orcamento.html
   ============================================================ */

.orc {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  background: var(--white);
  overflow: hidden;
}
.orc::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: min(720px, 70vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(48,181,173,.12) 0%, rgba(48,181,173,0) 65%);
  pointer-events: none;
}

.orc__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* ------------------------------------------------ coluna de argumentação */
.orc__pitch .section__eyebrow { margin-bottom: .9rem; }
.orc__pitch h2 {
  font-size: var(--step-3);
  color: var(--primary);
  margin-bottom: 1rem;
}
.orc__pitch h2 em { font-style: italic; color: var(--accent); }
.orc__pitch p {
  color: var(--text-med);
  max-width: 46ch;
  margin: 0 0 1.6rem;
}

.orc__list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .9rem; }
.orc__list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: var(--step--1);
  color: var(--text-dark);
}
.orc__list svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--light-teal);
  color: var(--primary);
  stroke-width: 2.4;
}

.orc__trust {
  border-left: 3px solid var(--accent);
  padding: .2rem 0 .2rem 1rem;
  font-size: var(--step--1);
  color: var(--text-med);
}
.orc__trust b { color: var(--primary); }

/* --------------------------------------------------------------- o cartão */
.orc__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
}
.orc__card-head { margin-bottom: 1.4rem; }
.orc__card-head h3 {
  font-size: var(--step-1);
  color: var(--primary);
  margin-bottom: .35rem;
}
.orc__card-head p { margin: 0; font-size: var(--step--1); color: var(--text-med); }

/* --------------------------------------------------------------- campos */
.orc__form { display: grid; gap: 1.05rem; }
.orc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }

.field { display: grid; gap: .38rem; min-width: 0; }
.field > label,
.fieldset > legend {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: .01em;
}
.field .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--step--1);
  color: var(--text-dark);
  background: #FAFCFC;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .78rem .9rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E7579' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 18px;
  padding-right: 2.4rem;
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(48,181,173,.16);
}
.field input::placeholder,
.field textarea::placeholder { color: #A9BABD; }

/* erro */
.field .erro { font-size: .76rem; color: #C2453C; min-height: 0; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #E0A19C; background: #FEF8F7; }
.field.is-invalid .erro { min-height: 1em; }

/* rádio Sim/Não */
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .5rem; }
.radio-group { display: flex; gap: .6rem; }
.radio-group label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-med);
  background: #FAFCFC;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .7rem .5rem;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.radio-group input { position: absolute; opacity: 0; pointer-events: none; }
.radio-group label:hover { border-color: var(--accent-300); }
.radio-group input:checked + span,
.radio-group label:has(input:checked) {
  background: var(--light-teal);
  border-color: var(--accent);
  color: var(--primary);
}
.radio-group input:focus-visible + span { box-shadow: 0 0 0 4px rgba(48,181,173,.16); }

/* consentimento LGPD */
.consent {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--text-med);
}
.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: .15rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent.is-invalid { color: #C2453C; }

/* honeypot — invisível para humanos, atraente para robôs */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------- ações */
.orc__submit { width: 100%; justify-content: center; font-size: var(--step-0); padding: .95em 1.4em; }
.orc__submit[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.orc__submit .spinner {
  width: 17px; height: 17px;
  border: 2.2px solid rgba(6,40,42,.25);
  border-top-color: #06282a;
  border-radius: 50%;
  animation: orc-spin .7s linear infinite;
}
@keyframes orc-spin { to { transform: rotate(360deg); } }

.orc__alt {
  text-align: center;
  font-size: .82rem;
  color: var(--text-med);
  margin: 0;
}
.orc__alt a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.orc__erro-geral {
  background: #FEF8F7;
  border: 1.5px solid #E0A19C;
  color: #A8352D;
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  font-size: var(--step--1);
}

/* ------------------------------------------------------------ sucesso */
.orc__ok { text-align: center; padding: clamp(1.5rem, 4vw, 2.6rem) .5rem; }
.orc__ok-ic {
  width: 74px; height: 74px;
  margin: 0 auto 1.2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--light-teal);
  color: var(--primary);
}
.orc__ok-ic svg { width: 38px; height: 38px; stroke-width: 2.2; }
.orc__ok h3 { font-size: var(--step-2); color: var(--primary); margin-bottom: .6rem; }
.orc__ok p { color: var(--text-med); max-width: 42ch; margin: 0 auto 1.6rem; }

[hidden] { display: none !important; }

/* ------------------------------------------------------- página dedicada */
.orc--page { padding-top: clamp(6.5rem, 12vw, 8.5rem); background: var(--bg); }
.orc--page .orc__card { background: var(--white); }

/* ------------------------------------------------------------ responsivo */
@media (max-width: 900px) {
  .orc__grid { grid-template-columns: 1fr; }
  .orc__pitch p { max-width: none; }
}
@media (max-width: 560px) {
  .orc__row { grid-template-columns: 1fr; }
}
