.vendor-onboarding-main {
  background: #edf1f2;
  color: #102932;
}
.vendor-hero {
  padding: 180px 0 90px;
  background:
    linear-gradient(110deg, rgba(4, 16, 22, 0.97), rgba(7, 31, 41, 0.9)),
    url("/assets/hero-megaproject-v2.jpg?v=20261005-r7") center/cover;
  color: #fff;
}
.vendor-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: end;
}
.vendor-hero h1 {
  max-width: 800px;
  margin: 18px 0;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  line-height: 1.05;
}
.vendor-hero p {
  max-width: 760px;
  color: #c7d1d4;
  font-size: 1.1rem;
  line-height: 1.9;
}
.vendor-proof {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 21, 28, 0.75);
  padding: 12px 28px;
}
.vendor-proof div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  align-items: center;
}
.vendor-proof div:last-child {
  border-bottom: 0;
}
.vendor-proof b {
  color: var(--gold2);
  font-size: 0.8rem;
}
.vendor-proof span {
  font-weight: 700;
}
.vendor-form-section {
  padding: 100px 0;
}
.vendor-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.42fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}
.vendor-layout > aside {
  position: sticky;
  top: 110px;
  padding: 32px;
  border-top: 4px solid var(--gold);
  background: #102932;
  color: #fff;
}
.vendor-layout > aside h2 {
  font-size: 2.25rem;
  margin: 14px 0;
}
.vendor-layout > aside p,
.vendor-layout > aside li {
  color: #c4d0d3;
  line-height: 1.8;
}
.vendor-form {
  padding: 36px;
  background: #fff;
  border: 1px solid #d3dfe2;
  box-shadow: 0 25px 70px rgba(10, 37, 47, 0.09);
}
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.vendor-form label {
  display: grid;
  gap: 7px;
}
.vendor-form label > span,
.vendor-form legend {
  font-size: 0.82rem;
  font-weight: 800;
  color: #324c56;
}
.vendor-form input,
.vendor-form select,
.vendor-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #bfccd0;
  background: #fbfdfd;
  color: #132b34;
  font: inherit;
}
.vendor-form input:focus,
.vendor-form select:focus,
.vendor-form textarea:focus {
  outline: 3px solid rgba(190, 148, 83, 0.16);
  border-color: #a87c3e;
}
.vendor-form textarea {
  min-height: 120px;
  resize: vertical;
}
.vendor-form fieldset {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}
.vendor-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.vendor-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d4dfe2;
  background: #f7fafb;
}
.vendor-checks input {
  width: auto;
  min-height: 0;
  accent-color: #9b733b;
}
.vendor-checks.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.vendor-full {
  margin-top: 22px;
}
.vendor-documents {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid #d1dcdf;
  background: #f7fafb;
}
.vendor-doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.vendor-doc-head h3 {
  margin: 0;
}
.vendor-doc-head small {
  color: #71858c;
}
.vendor-document-row {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d5dfe2;
}
.vendor-remove {
  width: 42px;
  height: 50px;
  border: 1px solid #d9a8aa;
  background: #fff1f1;
  color: #a03439;
  font-size: 1.4rem;
}
.vendor-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0;
}
.vendor-consent input {
  width: auto;
  min-height: 0;
  margin-top: 5px;
}
.vendor-submit {
  width: 100%;
  min-height: 58px;
  border: 0;
  background: #b88a49;
  color: #08171d;
  font: 800 1rem inherit;
  cursor: pointer;
}
.vendor-submit:disabled {
  opacity: 0.55;
}
.vendor-status {
  color: #a02f38;
  font-weight: 700;
}
.vendor-progress {
  margin: 18px 0;
}
.vendor-progress div {
  height: 8px;
  background: #dfe7e9;
  overflow: hidden;
}
.vendor-progress i {
  display: block;
  width: 2%;
  height: 100%;
  background: #b88a49;
  transition: width 0.2s;
}
.vendor-progress p {
  margin: 8px 0;
  color: #536b74;
}
.vendor-success {
  text-align: center;
  padding: 55px 20px;
}
.vendor-success > b {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: auto;
  border-radius: 50%;
  background: #e3f4e9;
  color: #237244;
  font-size: 2rem;
}
.vendor-success strong {
  display: block;
  margin: 14px;
  font-size: 2rem;
  direction: ltr;
}
.vendor-success > div {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vendor-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
@media (max-width: 900px) {
  .vendor-hero-grid,
  .vendor-layout {
    grid-template-columns: 1fr;
  }
  .vendor-layout > aside {
    position: static;
  }
  .vendor-checks {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .vendor-hero {
    padding: 130px 0 70px;
  }
  .vendor-grid,
  .vendor-checks,
  .vendor-checks.compact,
  .vendor-document-row {
    grid-template-columns: 1fr;
  }
  .vendor-form {
    padding: 24px 18px;
  }
  .vendor-remove {
    width: 100%;
  }
}
.vendor-honeypot {
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  left: auto !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.vendor-contacts {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid #d1dcdf;
  background: #fff;
}
.vendor-contact-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr 0.8fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d5dfe2;
}
.vendor-submit-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(240px, 1fr);
  gap: 12px;
  align-items: stretch;
}
.vendor-layout > aside [data-resume-draft] {
  width: 100%;
  margin-top: 18px;
}

.vendor-layout > aside [data-resume-draft][hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .vendor-contact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vendor-contact-row .vendor-remove {
    width: 100%;
  }
}
@media (max-width: 620px) {
  .vendor-contact-row,
  .vendor-submit-row {
    grid-template-columns: 1fr;
  }
}

/* ERAMCO_PUBLIC_QUALITY_FIXES_V2: keep the onboarding grid inside the viewport */
@media (max-width:900px) {
  .vendor-layout { grid-template-columns:minmax(0,1fr); }
  .vendor-layout > * { min-width:0; max-width:100%; }
  .vendor-form, .vendor-grid, .vendor-form fieldset { min-width:0; max-width:100%; }
}
@media (max-width:389px) {
  .vendor-form-section { padding:64px 0; }
  .vendor-form { width:100%; padding:22px 16px; }
  .vendor-doc-head { align-items:stretch; flex-direction:column; }
  .vendor-doc-head .btn { width:100%; max-width:100%; }
}
