/* Wholesale Membership Application — mockup-matched overrides
   Loaded after theme/Bootstrap; use high specificity to win. */
.ws-apply {
  --ws-apply-red: #E30613;
  --ws-apply-muted: #666666;
  --ws-apply-border: #e5e5e5;
  max-width: 560px !important;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px 32px !important;
  background: #ffffff;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .ws-apply {
    max-width: 640px !important;
    padding: 0 24px 48px !important;
  }
}

body.ws-apply-page,
body.ws-page.ws-apply-page {
  background: #ffffff !important;
  overflow-x: hidden;
}

/* ---- Hero ---- */
.ws-apply .ws-apply-hero {
  position: relative;
  margin: 0 -16px 4px !important;
  padding: 24px 16px 22px !important;
  background-color: #ffffff !important;
  background-image:
    repeating-linear-gradient(
      -42deg,
      transparent 0,
      transparent 12px,
      rgba(227, 6, 19, 0.07) 12px,
      rgba(227, 6, 19, 0.07) 24px
    ) !important;
  background-size: 52% 120% !important;
  background-position: right -10% top -20% !important;
  background-repeat: no-repeat !important;
  overflow: hidden !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ws-apply .ws-apply-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 243, 245, 0.35) 40%, rgba(255, 243, 245, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

.ws-apply .ws-apply-hero-inner {
  position: relative;
  z-index: 1;
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100%;
}

.ws-apply .ws-apply-hero-copy {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 72px);
}

.ws-apply .ws-apply-hero-title {
  margin: 0 0 10px !important;
  padding: 0 !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
  color: #111111 !important;
  background: none !important;
  border: 0 !important;
}

.ws-apply .ws-apply-hero-sub {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #666666 !important;
}

.ws-apply .ws-apply-hero-icon {
  flex: 0 0 56px !important;
  width: 56px !important;
  padding-top: 2px !important;
}

.ws-apply .ws-apply-hero-crown {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  border: 1.5px solid #E30613 !important;
  border-radius: 50% !important;
  color: #E30613 !important;
  background: rgba(255, 255, 255, 0.85) !important;
  box-sizing: border-box !important;
}

.ws-apply .ws-apply-hero-crown i,
.ws-apply .ws-apply-hero-crown .fa,
.ws-apply .ws-apply-hero-crown .fa-solid {
  font-size: 22px !important;
  line-height: 1 !important;
  color: #E30613 !important;
}

.ws-apply a.ws-apply-back,
.ws-apply .ws-apply-back {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 8px 0 18px !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #222222 !important;
  text-decoration: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ws-apply a.ws-apply-back:hover,
.ws-apply a.ws-apply-back:focus,
.ws-apply a.ws-apply-back:visited {
  color: #E30613 !important;
  text-decoration: none !important;
}

/* ---- Accordion cards ---- */
.ws-apply .ws-accordion {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ws-apply .ws-acc-item {
  background: #ffffff !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.045) !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.ws-apply .ws-acc-item.has-error {
  border-color: #E30613 !important;
}

.ws-apply .ws-req {
  color: #E30613 !important;
  font-weight: 700 !important;
}

/* Kill Bootstrap / theme button chrome on accordion headers */
.ws-apply button.ws-acc-header,
.ws-apply .ws-acc-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 74px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 14px 14px 14px 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  text-align: left !important;
  text-shadow: none !important;
  color: #111111 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -webkit-tap-highlight-color: transparent;
}

.ws-apply button.ws-acc-header:hover,
.ws-apply button.ws-acc-header:focus,
.ws-apply button.ws-acc-header:active,
.ws-apply .ws-acc-header:hover,
.ws-apply .ws-acc-header:focus,
.ws-apply .ws-acc-header:active {
  background: #ffffff !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #111111 !important;
  outline: none !important;
}

.ws-apply .ws-acc-icon {
  flex: 0 0 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border: 1.5px solid #E30613 !important;
  border-radius: 10px !important;
  color: #E30613 !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

.ws-apply .ws-acc-icon i,
.ws-apply .ws-acc-icon .fa,
.ws-apply .ws-acc-icon .fa-solid,
.ws-apply .ws-acc-icon .fa-regular {
  font-size: 15px !important;
  line-height: 1 !important;
  color: #E30613 !important;
}

.ws-apply .ws-acc-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 3px !important;
}

.ws-apply .ws-acc-title {
  display: block !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  line-height: 1.25 !important;
}

.ws-apply .ws-acc-desc {
  display: block !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #888888 !important;
  line-height: 1.35 !important;
}

.ws-apply .ws-acc-chevron {
  flex: 0 0 auto !important;
  color: #aaaaaa !important;
  transition: transform 0.2s ease;
}

.ws-apply .ws-acc-chevron i {
  font-size: 12px !important;
  color: #aaaaaa !important;
}

.ws-apply .ws-acc-item.is-open .ws-acc-chevron {
  transform: rotate(180deg);
}

.ws-apply .ws-acc-body {
  padding: 0 16px 18px !important;
  border-top: 1px solid #f0f0f0 !important;
  background: #ffffff !important;
}

.ws-apply .ws-acc-body[hidden] {
  display: none !important;
}

.ws-apply .ws-acc-body > .ws-form-group:first-child,
.ws-apply .ws-acc-body > .ws-help-text:first-child,
.ws-apply .ws-acc-body > .ws-docs-desc:first-child,
.ws-apply .ws-acc-body > .ws-error:first-child {
  margin-top: 16px !important;
}

/* ---- Fields ---- */
.ws-apply .ws-label {
  display: block !important;
  margin-bottom: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #111111 !important;
}

.ws-apply .ws-label small {
  font-weight: 500 !important;
  color: #888888 !important;
}

.ws-apply .ws-input,
.ws-apply .ws-select,
.ws-apply input.ws-input,
.ws-apply select.ws-select {
  display: block !important;
  width: 100% !important;
  min-height: 50px !important;
  height: 50px !important;
  padding: 12px 14px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  font-size: 15px !important;
  color: #111111 !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.ws-apply select.ws-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='%23999' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 36px !important;
}

.ws-apply .ws-input:focus,
.ws-apply .ws-select:focus {
  border-color: #E30613 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12) !important;
}

.ws-apply input.ws-file-input,
.ws-apply .ws-file-input {
  height: auto !important;
  min-height: 48px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.ws-apply .ws-help-text {
  margin: 16px 0 14px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #666666 !important;
}

.ws-apply .ws-form-group {
  margin-bottom: 16px !important;
}

.ws-apply .ws-acc-body .ws-form-group:last-child {
  margin-bottom: 0 !important;
}

.ws-apply .ws-verify-panel[hidden] {
  display: none !important;
}

.ws-apply .ws-radio-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-top: 4px !important;
}

.ws-apply .ws-radio {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #222222 !important;
  cursor: pointer !important;
}

.ws-apply .ws-radio input {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.ws-apply .ws-radio-mark {
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  border: 2px solid #cccccc !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  position: relative !important;
  background: #ffffff !important;
}

.ws-apply .ws-radio input:checked + .ws-radio-mark {
  border-color: #E30613 !important;
}

.ws-apply .ws-radio input:checked + .ws-radio-mark::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 10px !important;
  height: 10px !important;
  margin: -5px 0 0 -5px !important;
  border-radius: 50% !important;
  background: #E30613 !important;
}

.ws-apply .ws-radio input:focus-visible + .ws-radio-mark {
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.18) !important;
}

.ws-apply .ws-upload-zone {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-height: 118px !important;
  padding: 20px 16px !important;
  border: 1.5px dashed #d8d8d8 !important;
  border-radius: 12px !important;
  background: #fafafa !important;
  box-sizing: border-box !important;
  text-align: center !important;
  cursor: pointer !important;
  position: relative !important;
  -webkit-tap-highlight-color: transparent;
}

.ws-apply .ws-upload-zone.is-invalid {
  border-color: #E30613 !important;
  background: #fff8f8 !important;
}

.ws-apply .ws-upload-zone.has-file {
  border-style: solid !important;
  border-color: #e0e0e0 !important;
  background: #ffffff !important;
}

.ws-apply .ws-upload-zone:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12) !important;
}

.ws-apply .ws-upload-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  pointer-events: none !important;
}

.ws-apply .ws-upload-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  color: #E30613 !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

.ws-apply .ws-upload-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #E30613 !important;
  line-height: 1.3 !important;
}

.ws-apply .ws-upload-hint {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #888888 !important;
  line-height: 1.35 !important;
}

.ws-apply .ws-upload-filename {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #333333 !important;
  word-break: break-all !important;
  max-width: 100% !important;
}

.ws-apply .ws-upload-filename[hidden] {
  display: none !important;
}

.ws-apply .ws-error {
  display: flex !important;
  align-items: flex-start !important;
  gap: 6px !important;
  margin-top: 8px !important;
  color: #E30613 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.ws-apply .ws-error i {
  margin-top: 1px !important;
  font-size: 13px !important;
}

.ws-apply .ws-input.is-invalid,
.ws-apply .ws-select.is-invalid {
  border-color: #E30613 !important;
}

/* ---- Submit ---- */
.ws-apply .ws-apply-submit {
  margin-top: 22px !important;
  padding-bottom: 8px !important;
}

.ws-apply .ws-checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 16px !important;
  font-size: 14px !important;
  color: #333333 !important;
  font-weight: 400 !important;
}

.ws-apply .ws-checkbox input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  accent-color: #E30613;
  flex-shrink: 0;
}

.ws-apply .ws-checkbox a,
.ws-apply .ws-checkbox a:link,
.ws-apply .ws-checkbox a:visited,
.ws-apply .ws-checkbox a:hover,
.ws-apply .ws-checkbox a:focus {
  color: #E30613 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.ws-apply .ws-checkbox a:hover {
  text-decoration: underline !important;
}

.ws-apply button.ws-apply-btn,
.ws-apply .ws-btn.ws-btn-primary.ws-apply-btn,
.ws-apply .ws-apply-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 52px !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #E30613 !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  text-shadow: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.ws-apply button.ws-apply-btn:hover,
.ws-apply button.ws-apply-btn:focus,
.ws-apply button.ws-apply-btn:active {
  background: #E30613 !important;
  background-image: none !important;
  color: #ffffff !important;
  opacity: 0.94;
  border: 0 !important;
  box-shadow: none !important;
}

.ws-apply .ws-apply-btn.is-loading,
.ws-apply .ws-apply-btn:disabled {
  opacity: 0.85 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.ws-apply .ws-apply-login {
  text-align: center !important;
  margin: 16px 0 0 !important;
  font-size: 14px !important;
  color: #666666 !important;
}

.ws-apply .ws-apply-login a,
.ws-apply .ws-apply-login a:link,
.ws-apply .ws-apply-login a:visited,
.ws-apply .ws-apply-login a:hover,
.ws-apply .ws-apply-login a:focus {
  color: #E30613 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.ws-apply .ws-apply-login a:hover {
  text-decoration: underline !important;
}

@media (max-width: 767px) {
  .ws-apply .ws-apply-hero-title {
    font-size: 24px !important;
  }

  .ws-apply .ws-form-row {
    grid-template-columns: 1fr !important;
  }
}
