/* ============================================================
   Trabalhe Conosco — Assessoria RD · v2.0 (paleta oficial)
   Paleta: roxo #580d8e + preto + branco (NADA mais)
   Fonte: Poppins
   Pilares: MODERNIDADE · MINIMALISMO · PRESENÇA · PROFISSIONALISMO
   ============================================================ */

:root {
  /* paleta oficial */
  --roxo:        #580d8e;
  --preto:       #000000;
  --branco:      #ffffff;

  /* derivações monocromáticas (apenas alphas, sem inventar cores) */
  --roxo-90:     rgba(88, 13, 142, 0.90);
  --roxo-70:     rgba(88, 13, 142, 0.70);
  --roxo-30:     rgba(88, 13, 142, 0.30);
  --roxo-10:     rgba(88, 13, 142, 0.10);
  --roxo-glow:   rgba(88, 13, 142, 0.45);

  --preto-90:    rgba(0, 0, 0, 0.90);
  --preto-70:    rgba(0, 0, 0, 0.70);
  --preto-50:    rgba(0, 0, 0, 0.50);
  --preto-30:    rgba(0, 0, 0, 0.30);

  --branco-90:   rgba(255, 255, 255, 0.90);
  --branco-70:   rgba(255, 255, 255, 0.70);
  --branco-50:   rgba(255, 255, 255, 0.50);
  --branco-30:   rgba(255, 255, 255, 0.30);
  --branco-15:   rgba(255, 255, 255, 0.15);
  --branco-08:   rgba(255, 255, 255, 0.08);
  --branco-04:   rgba(255, 255, 255, 0.04);

  --r: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--preto);
  color: var(--branco);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ─── Shader como fundo ─── */
#bg-shader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.65) 60%, rgba(0,0,0,0.85) 100%);
}

.topbar, main, .footer { position: relative; z-index: 3; }
.topbar, .form, .footer, .success__inner { pointer-events: auto; }
.form-section, .success, main, .hero__inner { pointer-events: none; }
.form-section *, .success *, .hero__inner *, .topbar * { pointer-events: auto; }

/* ─── Topbar ─── */
.topbar {
  background: linear-gradient(180deg, var(--preto-90) 0%, var(--preto-50) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--branco);
  border-bottom: 1px solid var(--branco-08);
}
.topbar__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--branco);
}
.topbar__logo {
  /* logo branca - fica visível sobre fundo escuro */
  height: 28px;
  width: auto;
  display: block;
}
.topbar__name { font-size: 14px; font-weight: 500; letter-spacing: 0.01em; }

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--branco-70);
  transition: all 0.15s;
  background: transparent;
  border: none;
}
.topbar__social svg { display: block; width: 18px; height: 18px; }
.topbar__social:hover {
  background: var(--branco-08);
  color: var(--branco);
  transform: translateY(-1px);
}
.topbar__social-label {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.topbar__divider {
  width: 1px;
  height: 18px;
  background: var(--branco-15);
  margin: 0 2px;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 64px 20px 80px;
  color: var(--branco);
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, var(--preto-50) 0%, transparent 80%);
  pointer-events: none;
}
.hero__grid {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
}
.hero__text { text-align: center; }
.hero__media {
  position: relative;
  display: flex;
  justify-content: flex-end;
}
.hero__photo-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  overflow: visible;
}
.hero__photo-wrap::before {
  content: "";
  position: absolute;
  inset: -40px -30px;
  background: radial-gradient(ellipse at 35% 25%, var(--roxo-30), transparent 65%);
  z-index: -1;
  filter: blur(40px);
  pointer-events: none;
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.04) saturate(0.85) brightness(0.95);
  -webkit-mask-image: radial-gradient(ellipse 80% 78% at 50% 42%, #000 35%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.3) 85%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 78% at 50% 42%, #000 35%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.3) 85%, transparent 100%);
}
.hero__sign {
  margin-top: 22px;
  font-size: 13px;
  color: var(--branco-50);
  letter-spacing: 0.01em;
  font-style: italic;
  font-weight: 400;
}
@media (max-width: 820px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero__text { text-align: center; }
  .hero__media { justify-content: center; }
  .hero__photo-wrap { max-width: 240px; }
}
@media (max-width: 480px) {
  .hero__photo-wrap { max-width: 220px; aspect-ratio: 1/1; }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--branco);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--roxo);
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--branco);
}
.hero__title em {
  font-style: normal;
  color: var(--branco);
  position: relative;
  display: inline-block;
  padding: 0 4px;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 2px;
  height: 6px;
  background: var(--roxo);
  z-index: -1;
  border-radius: 2px;
}
.hero__sub {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--branco-70);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 400;
}

/* ─── Form ─── */
.form-section {
  padding: 32px 20px 70px;
  background: transparent;
}
.form-section__inner {
  max-width: 680px;
  margin: 0 auto;
}
.form {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 6px 18px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 var(--branco-08);
  border: 1px solid var(--branco-08);
  margin-top: -30px;
  position: relative;
  z-index: 2;
}
@media (max-width: 640px) {
  .form { padding: 28px 20px; margin-top: -20px; }
}

.form__intro {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--branco-08);
}
.form__intro h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--branco);
  margin-bottom: 6px;
}
.form__intro p {
  font-size: 13px;
  color: var(--branco-50);
  font-weight: 400;
}

/* ─── Fields ─── */
.field { margin-bottom: 20px; }
.field--inline { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field--inline { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--branco);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.field .req {
  color: var(--roxo);
  font-weight: 700;
  /* contraste suficiente: roxo sobre dark é OK */
  filter: brightness(1.5);
}
.field__hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--branco-50);
  line-height: 1.5;
  font-weight: 400;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--branco);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--branco-15);
  border-radius: var(--r);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--branco-30);
  font-weight: 400;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--branco-30);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--roxo);
  box-shadow: 0 0 0 3px var(--roxo-30);
  background: rgba(0, 0, 0, 0.55);
}
.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' fill-opacity='0.6' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 38px;
  cursor: pointer;
}
.field select option {
  background: var(--preto);
  color: var(--branco);
}

.field input[type="file"] {
  width: 100%;
  padding: 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--branco-70);
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--branco-30);
  border-radius: var(--r);
  cursor: pointer;
}
.field input[type="file"]:hover {
  border-color: var(--roxo);
  background: var(--roxo-10);
}
.field input[type="file"]::-webkit-file-upload-button {
  background: var(--roxo);
  color: var(--branco);
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  margin-right: 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

/* ─── Radio group ─── */
.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--branco-15);
  border-radius: var(--r);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--branco-70);
  transition: all 0.15s;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 120px;
}
.radio:hover {
  border-color: var(--branco-30);
  color: var(--branco);
}
.radio input[type="radio"] {
  margin: 0;
  width: 14px;
  height: 14px;
  accent-color: var(--roxo);
}
.radio:has(input:checked) {
  border-color: var(--roxo);
  background: var(--roxo-10);
  color: var(--branco);
}

/* ─── CTA ─── */
.form__actions {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--branco-08);
}
.btn-primary {
  display: block;
  width: 100%;
  padding: 16px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--branco);
  background: var(--roxo);
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  box-shadow:
    0 8px 24px var(--roxo-glow),
    inset 0 1px 0 var(--branco-15);
  transition: all 0.15s;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #6a14a8; /* roxo um nudge mais claro só no hover - estilo "lighter" do mesmo roxo */
  box-shadow:
    0 12px 32px var(--roxo-glow),
    inset 0 1px 0 var(--branco-15);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.form__legal {
  margin-top: 14px;
  font-size: 12px;
  color: var(--branco-50);
  text-align: center;
  line-height: 1.5;
  font-weight: 400;
}

/* ─── Mensagens ─── */
.form-msg {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.form-msg.error {
  background: rgba(255, 107, 107, 0.10);
  color: #ffb3b3;
  border: 1px solid rgba(255, 107, 107, 0.30);
}
.form-msg.success {
  background: var(--roxo-10);
  color: var(--branco);
  border: 1px solid var(--roxo);
}

/* ─── Success ─── */
.success { padding: 80px 20px; background: transparent; min-height: 60vh; }
.success__inner {
  max-width: 540px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border-radius: var(--r-lg);
  padding: 56px 40px;
  text-align: center;
  border: 1px solid var(--branco-08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--roxo);
  color: var(--branco);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px var(--roxo-glow);
}
.success__inner h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--branco);
}
.success__inner p {
  font-size: 15px;
  color: var(--branco-70);
  margin-bottom: 12px;
  line-height: 1.6;
  font-weight: 400;
}
.success__tip {
  font-size: 13px;
  color: var(--branco-50);
  margin: 18px 0 26px;
}
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 500;
  font-size: 13px;
  color: var(--branco);
  background: transparent;
  border: 1px solid var(--branco-30);
  border-radius: var(--r);
  transition: all 0.15s;
}
.btn-secondary:hover {
  border-color: var(--branco);
  background: var(--branco-08);
}

/* ─── Footer ─── */
.footer {
  padding: 32px 20px;
  text-align: center;
  background: linear-gradient(180deg, var(--preto-50) 0%, var(--preto-90) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--branco-50);
  font-size: 12px;
  line-height: 1.6;
  border-top: 1px solid var(--branco-08);
  font-weight: 400;
}
.footer a {
  color: var(--branco-70);
  border-bottom: 1px dotted var(--branco-30);
}
.footer a:hover {
  color: var(--branco);
  border-bottom-color: var(--branco);
}

::selection { background: var(--roxo); color: var(--branco); }
