/* Página /cadastro-fornecedor — complementa styles.css */

.supplier-hero {
  position: relative;
  padding: 122px 0 72px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #33373D 0%, #1D1F22 62%);
}

.supplier-hero-art {
  position: absolute;
  top: 46%;
  left: -120px;
  width: 520px;
  transform: translateY(-50%) rotate(-8deg);
  opacity: .05;
  pointer-events: none;
}

.supplier-hero-art img { width: 100%; }

.supplier-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 540px);
  align-items: stretch;
  gap: 56px;
}

.supplier-hero h1 {
  font-size: clamp(44px, 5.4vw, 76px);
}

.supplier-hero .hero-lead {
  margin-bottom: 16px;
  font-size: clamp(16px, 1.45vw, 19px);
}

.supplier-hero .hero-lead-strong {
  margin-bottom: 30px;
  color: var(--white);
  font-weight: 600;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 600;
}

.hero-badges li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badges li::before {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #C0A37E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1F22' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
  content: "";
  flex: none;
}

.supplier-hero-photo {
  position: relative;
  justify-self: end;
  width: 100%;
  margin: 0;
}

.supplier-hero-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
  border-radius: 42px 42px 42px 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.hero-ticket {
  position: absolute;
  left: -34px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: var(--ink);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  animation: ticket-float 4s ease-in-out infinite;
}

.hero-ticket strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.hero-ticket small {
  color: var(--muted);
  font-size: 11px;
}

.hero-ticket .live-dot { flex: none; }

@keyframes ticket-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Vantagens */
.benefits-section .split-heading {
  display: block;
  max-width: none;
}

.benefits-section .split-heading h2 {
  max-width: 980px;
  text-wrap: balance;
}

.benefits-section .split-heading > p {
  max-width: 760px;
  margin: 18px 0 0;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.benefit-grid .value-card h3 { font-size: 21px; }

/* Processo */
.supplier-process {
  padding-top: 0;
}

.supplier-process .process-step > span {
  font-size: 15px;
  letter-spacing: .06em;
}

.supplier-process .process-step h3 {
  max-width: 260px;
  font-size: 23px;
}

.supplier-process .process-step p {
  max-width: 270px;
  font-size: 16px;
  line-height: 1.55;
}

/* Formulário */
.criteria {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.criteria > span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.criteria-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.criteria-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 24px;
  font-size: 14px;
  font-weight: 600;
}

.criteria-list li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 12px;
  height: 2px;
  background: var(--bronze);
  content: "";
}

.supplier-form fieldset {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

.supplier-form legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ece9e4;
  font-family: "Montserrat", sans-serif;
  font-size: 19px;
  font-weight: 600;
}

.supplier-form legend span {
  color: var(--bronze);
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.choice-block {
  margin-bottom: 20px;
}

.choice-title {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
}

.choice-title small {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 600;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.supplier-form label.chip {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.supplier-form .chip span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d6d2cb;
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.chip:hover span { border-color: var(--bronze); }

.chip input:checked + span {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}

.choice-block.invalid .chip span { border-color: #b3261e; }

.supplier-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 22px;
  cursor: pointer;
}

.supplier-form .consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--ink);
}

.supplier-form .consent span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.supplier-form .user-invalid,
.supplier-form [aria-invalid="true"] {
  border-color: #b3261e;
}

.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1em;
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.form-status.error { color: #b3261e; }
.form-status a { text-decoration: underline; }

.supplier-form button[disabled] {
  opacity: .6;
  cursor: progress;
  transform: none;
}

.form-success {
  padding: 48px 38px;
  text-align: center;
  background: var(--white);
  border: 1px solid #e0ddd7;
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(23,40,47,.07);
  outline: none;
}

.form-success h3 {
  margin-bottom: 10px;
  font-size: 30px;
}

.form-success p {
  max-width: 460px;
  margin: 0 auto 26px;
  color: var(--muted);
}

.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ink);
}

.success-icon svg {
  width: 30px;
  fill: none;
  stroke: #C0A37E;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticket { animation: none; }
}

@media (max-width: 1040px) {
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .supplier-hero { padding: 104px 0 56px; }
  .supplier-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .supplier-hero-photo { justify-self: center; width: min(520px, 100%); }
  .supplier-hero-photo > img { height: auto; aspect-ratio: 928 / 807; }
  .hero-ticket { left: -18px; bottom: 24px; }
  .supplier-form-section .contact-copy { position: static; }
}

@media (max-width: 560px) {
  .supplier-hero { padding: 96px 0 44px; }
  .supplier-hero h1 { font-size: 40px; }
  .supplier-hero .hero-actions .button { width: 100%; }
  .supplier-hero-photo { display: none; }
  .benefit-grid { grid-template-columns: 1fr; gap: 12px; }
  .supplier-form legend { font-size: 17px; }
  .form-success { padding: 36px 22px; }
}


/* ===== Tipografia fina, alinhada à logo MALTEN ===== */
.supplier-form legend{font-weight:400}
.supplier-hero .hero-lead-strong,.hero-badges,.criteria-list li,.choice-title small,.supplier-form .chip span,.form-status{font-weight:500}
.criteria > span,.supplier-form legend span,.choice-title{font-weight:500}

/* ===== Cards com cantos retos ===== */
.supplier-hero-photo > img,.hero-ticket,.form-success{border-radius:0}

/* Página de indicação (/indique) */
.referral-hero .supplier-hero-grid {
  grid-template-columns: minmax(0, 860px);
}

.referral-hero h1 {
  font-size: clamp(40px, 4.8vw, 66px);
}

.referral-process {
  padding-top: 72px;
}

@media (min-width: 861px) {
  .referral-process .process-line {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .referral-hero h1 { font-size: 36px; }
  .referral-process { padding-top: 48px; }
}

/* ===== Legibilidade (mobile first) ===== */
.supplier-page .button { font-size: 15px; }
.supplier-page .kicker,
.supplier-hero .eyebrow { font-size: 13px; }
.hero-badges { font-size: 15px; }

.supplier-form label > span { margin-bottom: 6px; font-size: 14px; }
.supplier-form input,
.supplier-form select,
.supplier-form textarea { font-family: inherit; font-size: 16px; }
.supplier-form input:not([type="checkbox"]),
.supplier-form select { height: 48px; }
.supplier-form textarea { padding: 12px 0; }

.choice-title { font-size: 14px; }
.choice-title small { font-size: 13px; }
.supplier-form .chip span { min-height: 44px; padding: 0 16px; font-size: 15px; }
.supplier-form legend { font-size: 20px; }
.supplier-form legend span { font-size: 13px; }

.supplier-form .consent { gap: 14px; }
.supplier-form .consent input { width: 22px; height: 22px; }
.supplier-form .consent span { font-size: 14px; line-height: 1.55; }
.supplier-form .form-footer small { max-width: none; font-size: 13px; }
.form-status { font-size: 15px; }

.criteria > span { font-size: 13px; }
.criteria-list li { font-size: 16px; }

.supplier-page .footer-bottom { color: rgba(255,255,255,.62); font-size: 13px; }
.supplier-page .footer-bottom a { color: inherit; }

/* ===== Mosaico do hero (/indique) ===== */
.hero-mosaic {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  height: 300px;
  margin-top: 28px;
  padding: 0 16px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 38%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 38%);
}

.mosaic-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.mosaic-col:nth-child(2) { margin-top: 22px; }

.mosaic-col img {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
}

@media (min-width: 861px) {
  .referral-hero { min-height: 640px; }
  .referral-hero .supplier-hero-grid { grid-template-columns: minmax(0, 600px); }

  .hero-mosaic {
    position: absolute;
    inset: 82px 0 0 auto;
    width: 56%;
    height: auto;
    margin: 0;
    padding: 28px 0;
    gap: 14px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 16%, rgba(0,0,0,.4) 38%, #000 62%);
    mask-image: linear-gradient(to right, transparent 0, transparent 16%, rgba(0,0,0,.4) 38%, #000 62%);
  }

  .mosaic-col { gap: 14px; }
  .mosaic-col:nth-child(2) { margin-top: 56px; }
  .mosaic-col:nth-child(3) { margin-top: 18px; }
}
