/* ── Apply Now Page Specific Styles ───────────────── */

/* Steps Section */
.steps-section {
  background: var(--navy-dark);
  padding: 50px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}


.step-card {
  background: linear-gradient(to bottom, #0f5ff3, #0b3bb7);
  border-radius: 15px;
  padding: 24px 18px;
  width: 300px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  position: relative;
}

.step-num {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 30px;
  height: 30px;
}

.step-icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: #99cfff;
  flex-shrink: 0;
}

.step-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 1.45vw, 20px);
  color: var(--white);
  line-height: 1.3;
}

.step-connector {
  font-size: 36px;
  color: var(--blue-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* Form Section */
.form-section {
  background: var(--navy-dark);
  padding: 0 120px 80px;
}

.form-section-icon {
  font-size: 2.5rem;
  color: var(--blue-primary);
  margin: 0 14px 0 0;
  flex-shrink: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
}

.form-icon { display:flex; max-width:500px; width:100%; align-items: center; margin-bottom:1%; }
.form-icon h3 { font-size:clamp(1.5rem, 2vw, 1.8rem); }

.form-card {
  box-sizing: border-box;
  background: white;
  border-radius: 30px;
  padding: 50px 60px;
  color: #333;
  width: 100%;
  min-width: 800px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Seller Registration Form Card */
.form-card--seller-registration {
  min-width: 1280px;
  max-width: 1680px;
}


.form-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--navy-dark);
  margin-bottom: 30px;
  text-align: center;
}

/* Fieldset */
.form-fieldset {
  border: none;
  margin-bottom: 36px;
}

.form-fieldset legend {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(13px, 1.1vw, 15px);
  color: #586064;
  margin-bottom: 16px;
  padding: 0;
  width: 100%;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group-full { flex: 1 0 100%; }

.form-group label,
.form-group > label {
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 600;
  color: #586064;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background: #eff4f7;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-primary);
  background: white;
}

/* Normalize number spinners to match text fields */
.form-group input[type="number"] {
  -moz-appearance: textfield;
}
.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.vendor-application-form .po-bt-nodisplay {
  display: none !important;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23586064'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}

/* Product categories — multi-select + chips */
.po-cat-multiselect {
  position: relative;
  max-width: 100%;
  width: 100%;
}
/* Author `display:flex` on panels wins over UA `[hidden]` — force hide when closed */
.po-cat-panel[hidden],
.po-brand-panel[hidden] {
  display: none !important;
}
.po-cat-combo-shell,
.po-brand-combo-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 10px;
  min-height: 44px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  cursor: pointer;
}
.po-cat-combo-shell:hover,
.po-brand-combo-shell:hover {
  border-color: var(--blue-primary, #2545e6);
}
.po-cat-combo-shell:focus,
.po-brand-combo-shell:focus {
  outline: none;
  border-color: var(--blue-primary, #2545e6);
  box-shadow: 0 0 0 2px rgba(37, 69, 230, 0.15);
}
.po-combo-placeholder {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  color: #8a9399;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 4px;
  align-self: center;
  user-select: none;
}
.po-cat-chips-inline,
.po-brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}
.po-cat-panel {
  position: absolute;
  z-index: 20;
  margin-top: 6px;
  width: 100%;
  max-width: none;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.po-cat-search {
  border: 0;
  border-bottom: 1px solid #e8e8e8;
  padding: 10px 12px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  width: 100%;
  box-sizing: border-box;
  outline: none;
}
.po-cat-search:focus {
  outline: none;
  box-shadow: none;
  border-bottom-color: var(--blue-primary, #2545e6);
  background: #fafbff;
}
.po-cat-list {
  overflow-y: auto;
  padding: 8px 12px 12px;
  flex: 1 1 auto;
  min-height: 0;
  background: #eff4f7;
}
.po-cat-list .checkbox-item.po-cat-option {
  min-width: 0;
  word-break: break-word;
}
.po-cat-panel-footer {
  flex-shrink: 0;
  border-top: 1px solid #e8e8e8;
  padding: 10px 12px;
  background: #fff;
  display: flex;
  justify-content: flex-end;
}
.po-cat-done {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: var(--blue-primary, #2545e6);
  color: #fff;
}
.po-cat-done:hover,
.po-cat-done:focus {
  filter: brightness(1.05);
  outline: none;
}
.po-cat-list .cat-heading {
  margin-top: 10px;
}
.po-cat-list .cat-heading:first-child {
  margin-top: 0;
}
.po-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  min-height: 8px;
}
.po-cat-chips-inline {
  margin-top: 0;
}
.po-cat-chip,
.po-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  background: #e8eef7;
  font-size: 13px;
  color: #333;
}
.po-cat-chip-remove,
.po-brand-chip-remove {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  color: #586064;
}
.po-cat-chip-remove:hover,
.po-brand-chip-remove:hover {
  color: #c00;
}

/* Brand combobox (EDI brand API) */
.po-brand-combo {
  position: relative;
  max-width: 100%;
  width: 100%;
}
.po-brand-other-wrap {
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
}
.po-brand-other-wrap label {
  display: block;
  margin-bottom: 5px;
}
.po-brand-other-wrap input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.po-brand-panel {
  position: absolute;
  z-index: 25;
  margin-top: 6px;
  width: 100%;
  max-width: none;
  max-height: 300px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.po-brand-search {
  border: 0;
  border-bottom: 1px solid #e8e8e8;
  padding: 10px 12px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  width: 100%;
  box-sizing: border-box;
  outline: none;
}
.po-brand-search:focus {
  outline: none;
  box-shadow: none;
  border-bottom-color: var(--blue-primary, #2545e6);
  background: #fafbff;
}
.po-brand-list {
  overflow-y: auto;
  max-height: 220px;
  padding: 6px 0;
  background: #eff4f7;
}
.po-brand-list .po-brand-option-row {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 12px;
  margin: 0;
  cursor: pointer;
}
.po-brand-list .po-brand-option-row:hover {
  background: #e0e8f2;
}
.po-brand-list-hint {
  margin: 0;
  padding: 10px 14px 8px;
  font-size: 13px;
  color: #586064;
  line-height: 1.4;
}
.po-brand-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  color: #333;
  cursor: pointer;
}
.po-brand-option:hover,
.po-brand-option:focus {
  background: #e0e8f2;
  outline: none;
}

.cat-heading {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #586064;
  margin-bottom: 8px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: clamp(12px, 1vw, 14px);
  color: #586064;
  line-height: 22px;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 2px;
  cursor: pointer;
  accent-color: var(--blue-primary);
}

.po-radio-group-label {
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 600;
  color: #586064;
}

.po-yes-no-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
}

.checkbox-item input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--blue-primary);
}

/* Upload Area */
.upload-area {
  border: 2px dashed #d9d9d9;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  color: #586064;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.upload-area:hover {
  border-color: var(--blue-primary);
  background: #f5f8ff;
}

.upload-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.upload-hint { font-size: 12px; margin-top: 6px; }

.file-label {
  color: var(--blue-primary);
  text-decoration: underline;
  cursor: pointer;
}

/* Inline validation (submit) */
.po-submit-error {
  color: #c62828;
  font-size: 14px;
  font-weight: 600;
  margin-top: 14px;
  line-height: 1.45;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.po-label-invalid {
  color: #c62828 !important;
}
#po-cat-multi.po-label-invalid {
  outline: 2px solid #c62828;
  outline-offset: 2px;
  border-radius: 8px;
}

/* Submit Button */
.btn-submit {
  background: linear-gradient(to right, #2545e6, #152680);
  color: white;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 24px;
  padding: 14px 60px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: filter 0.2s;
}

.btn-submit:hover { filter: brightness(1.15); }

/* Success Message */
.success-msg {
  display: none;
  background: #e6f4ea;
  border: 1px solid #34a853;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  color: #1e7e34;
  font-weight: 600;
  text-align: center;
  font-size: 16px;
}

.success-msg.visible { display: block; }

/* Purpose step + seller iframe */
.purpose-step { margin-bottom: 24px; }
.purpose-hint { color: #586064; margin-bottom: 16px; text-align: center; }
.purpose-checkboxes { display: flex; flex-direction: column; gap: 12px; max-width: 520px; margin: 0 auto 20px; }
.purpose-option { font-size: 16px; }
.purpose-actions { text-align: center; margin-bottom: 8px; }
.btn-next {
  background: linear-gradient(to right, #2545e6, #152680);
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  padding: 12px 48px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
}
.btn-next:disabled { opacity: 0.45; cursor: not-allowed; }
.seller-iframe-wrap {
  margin: 0 auto 24px;
  width: 100%;
}
.iframe-hint { color: #586064; margin-bottom: 12px; text-align: center; }
.seller-registration-frame {
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: 12px;
  background: #f0f0f0;
}
.field-note { font-size: 12px; color: #777; margin: 8px 0; }
.attachment-list { list-style: disc; padding-left: 20px; color: #333; }
.bank-intl { margin-top: 16px; padding-top: 12px; border-top: 1px dashed #ccc; }

/* Styled file upload (align with vendor-application copy; no native "Choose file" button) */
.po-primary-brand-row {
  margin-top: 12px;
}
.po-file-slot { margin-bottom: 22px; }
.po-file-slot-title {
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
  display: block;
}
.po-upload-hint {
  font-size: 12px;
  color: #586064;
  line-height: 1.45;
  margin: 0 0 10px;
  max-width: 720px;
}
.po-file-upload {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.po-file-inline-rows {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 200px;
  min-width: 0;
}
.po-file-inline-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 12px;
  border-radius: 8px;
  background: #e8eef4;
  font-size: 13px;
  color: #333;
  max-width: 100%;
}
.po-file-inline-row--pending {
  background: #f0f4fa;
}
.po-file-inline-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}
.po-file-inline-action {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.po-file-spin {
  color: var(--blue-primary, #2545e6);
  font-size: 14px;
}
.po-file-inline-remove {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 2px 4px;
  color: #586064;
  line-height: 1;
  border-radius: 4px;
}
.po-file-inline-remove:hover {
  color: #c62828;
  background: rgba(198, 40, 40, 0.08);
}
.po-file-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}
.po-file-trigger-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.po-file-upload-error {
  color: #c62828;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  max-width: 360px;
}
.po-file-upload-error[hidden] {
  display: none !important;
}
.po-file-trigger {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid var(--blue-primary, #2545e6);
  background: #fff;
  color: var(--blue-primary, #2545e6);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.po-file-trigger:hover {
  background: #eef2ff;
  color: #152680;
}
.po-file-trigger[aria-invalid="true"] {
  border-color: #c62828;
  color: #c62828;
}

/* Headquarters / mailing address — country & state selects */
#vendor-form-wrap #po-bizCountry,
#vendor-form-wrap #po-bizState {
  min-height: 44px;
}

/* Full-screen loading while resuming vendor application (GET form + reference data) */
.po-form-loading[hidden] {
  display: none !important;
}
.po-form-loading:not([hidden]) {
  display: flex;
}
.po-form-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(2px);
}
.po-form-loading__inner {
  text-align: center;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(15, 40, 100, 0.12);
  border: 1px solid rgba(37, 69, 230, 0.15);
}
.po-form-loading__icon {
  font-size: 2.25rem;
  color: var(--blue-primary, #2545e6);
  display: block;
  margin-bottom: 1rem;
}
.po-form-loading__text {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #333;
  font-weight: 600;
}

