.form-page-main {
  background: #f4f6fa;
}

.form-page-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.form-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 31, 58, 0.94) 0%, rgba(28, 42, 74, 0.82) 42%, rgba(28, 42, 74, 0.18) 76%, rgba(28, 42, 74, 0.08) 100%);
}

.form-page-hero--ouvidoria {
  background-image: url("../img/ouvidoria-atendimento.png");
}

.form-page-hero--carreiras {
  background-image: url("../img/trabalhe-conosco-jovem.png");
}

.form-page-hero__content {
  position: relative;
  z-index: 1;
  width: min(1200px, 90%);
  margin: 0 auto;
  color: #fff;
}

.form-page-hero__eyebrow {
  display: block;
  margin-bottom: 18px;
  color: #c4c400;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.form-page-hero h1 {
  max-width: 650px;
  margin: 0 0 22px;
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-transform: uppercase;
}

.form-page-hero h1 span,
.form-page-hero h1 em {
  display: block;
  font-style: normal;
}

.form-page-hero h1 em {
  color: #d0d000;
}

.form-page-hero p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1.7;
}

.submission-section {
  position: relative;
  padding: 0 5% 100px;
}

.submission-card {
  width: min(920px, 100%);
  margin: -64px auto 0;
  position: relative;
  z-index: 2;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(28, 42, 74, 0.1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(28, 42, 74, 0.14);
}

.submission-card__header {
  margin-bottom: 36px;
}

.submission-card__header span {
  color: #9a9a00;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.submission-card__header h2 {
  margin: 10px 0 12px;
  color: #1c2a4a;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.submission-card__header p {
  margin: 0;
  color: #616b82;
  font-size: 1rem;
  line-height: 1.7;
}

.email-form {
  display: grid;
  gap: 24px;
}

.email-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.email-form__field {
  display: grid;
  gap: 9px;
  color: #1c2a4a;
  font-weight: 700;
}

.email-form__field--full {
  grid-column: 1 / -1;
}

.field-hint {
  color: #687188;
  font-size: 0.78rem;
  font-weight: 500;
}

.required-mark {
  color: #a3a300;
}

.email-form input[type="text"],
.email-form input[type="email"],
.email-form input[type="tel"],
.email-form select,
.email-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid #cfd5e1;
  border-radius: 12px;
  background: #fff;
  color: #1c2a4a;
  font: inherit;
  font-weight: 400;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-form textarea {
  min-height: 170px;
  resize: vertical;
}

.email-form input:focus,
.email-form select:focus,
.email-form textarea:focus {
  outline: none;
  border-color: #a3a300;
  box-shadow: 0 0 0 4px rgba(196, 196, 0, 0.15);
}

.email-form input[type="file"] {
  width: 100%;
  min-height: 54px;
  padding: 10px 16px;
  border: 1px dashed #cfd5e1;
  border-radius: 12px;
  background: #f8f9fc;
  color: #303a55;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

.email-form input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #d0d000, #a8a800);
  color: #14213f;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.choice-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.conditional-fieldset[hidden] {
  display: none !important;
}

.choice-fieldset legend {
  margin-bottom: 12px;
  color: #1c2a4a;
  font-weight: 800;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-option,
.confirmation-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dbe0ea;
  border-radius: 12px;
  background: #f8f9fc;
  color: #303a55;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.45;
}

.choice-option:hover,
.confirmation-box:hover {
  border-color: #c4c400;
  background: #fbfbe9;
}

.choice-option input,
.confirmation-box input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #a3a300;
}

.privacy-link {
  color: #1c2a4a;
  text-decoration: underline;
  text-decoration-color: #a3a300;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.privacy-note {
  margin: -6px 0 0;
  color: #687188;
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.email-form__submit {
  width: min(100%, 320px);
  min-height: 60px;
  padding: 16px 34px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #d0d000, #a8a800);
  color: #14213f;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 28px rgba(168, 168, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.email-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(168, 168, 0, 0.32);
  filter: brightness(1.04);
}

.email-form__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
}

.form-message.is-success {
  color: #26713a;
}

.form-message.is-error {
  color: #b42318;
}

@media (max-width: 760px) {
  .form-page-hero {
    min-height: 460px;
    background-position: 64% center;
  }

  .form-page-hero::before {
    background: linear-gradient(90deg, rgba(17, 31, 58, 0.96) 0%, rgba(28, 42, 74, 0.86) 64%, rgba(28, 42, 74, 0.45) 100%);
  }

  .form-page-hero h1 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .submission-section {
    padding-inline: 18px;
    padding-bottom: 70px;
  }

  .submission-card {
    margin-top: -38px;
    border-radius: 18px;
  }

  .email-form__grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }
}
