/* ============================================================
   B2B / WHOLESALE PAGE (b2b.css)
   Conigx — Surgical Instruments
============================================================ */

/* Benefits section */
.b2b-benefits {
  padding: 72px 0;
}
.b2b-benefits-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.b2b-benefits-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 12px;
  line-height: 1.3;
}
.b2b-benefits-desc {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}
.b2b-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.b2b-benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  transition: var(--ease);
}
.b2b-benefit-card:hover {
  border-color: rgba(21, 101, 192, .25);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.b2b-benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(21, 101, 192, .08);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}
.b2b-benefit-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px;
  line-height: 1.35;
}
.b2b-benefit-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
}

/* Inquiry layout */
.b2b-inquiry {
  padding: 72px 0 80px;
}
.b2b-inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 32px;
  align-items: start;
}
.b2b-inquiry-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 12px;
  line-height: 1.3;
}
.b2b-inquiry-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0 0 24px;
}
.b2b-inquiry-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.b2b-inquiry-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.5;
}
.b2b-inquiry-point-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(21, 101, 192, .08);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* Form card */
.b2b-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 28px 32px;
  box-shadow: var(--shadow);
}

/* Alert messages */
.b2b-form-alert {
  padding: 14px 16px;
  border-radius: var(--r);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.b2b-form-alert.is-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.b2b-form-alert.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Form fields */
.conigx-b2b-form {
  margin: 0;
}
.b2b-form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.b2b-form-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.b2b-form-field {
  margin-bottom: 16px;
}
.b2b-form-field label,
.b2b-form-field legend {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.b2b-form-field legend {
  padding: 0;
}
.b2b-form-field label .required {
  color: #dc2626;
}
.b2b-form-field label .optional {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 12px;
}
.conigx-b2b-form input[type="text"],
.conigx-b2b-form input[type="email"],
.conigx-b2b-form input[type="tel"],
.conigx-b2b-form select,
.conigx-b2b-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--off-white);
  font-family: inherit;
  transition: var(--ease);
}
.conigx-b2b-form textarea {
  min-height: 140px;
  padding: 14px 16px;
  resize: vertical;
}
.conigx-b2b-form select {
  cursor: pointer;
  appearance: none;
  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='%236b7280' d='M1.4.7 6 5.3 10.6.7 12 2.1 6 8.1 0 2.1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.conigx-b2b-form input:focus,
.conigx-b2b-form select:focus,
.conigx-b2b-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, .12);
}
.conigx-b2b-form input.is-invalid,
.conigx-b2b-form select.is-invalid,
.conigx-b2b-form textarea.is-invalid {
  border-color: #dc2626;
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
}
.b2b-field-error {
  margin: 6px 0 0;
  font-size: 12px;
  color: #dc2626;
  line-height: 1.45;
}

/* Radio group — card-style selectable tiles */
.b2b-form-field--radio {
  border: none;
  margin: 0 0 16px;
  padding: 0;
}
.b2b-radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.b2b-radio-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  height: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  user-select: none;
}
.b2b-radio-label:hover {
  border-color: rgba(21, 101, 192, .45);
  background: rgba(21, 101, 192, .03);
}
.b2b-radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.b2b-radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #c5cdd8;
  background: var(--white);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.b2b-radio-indicator::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  margin-top: -2px;
  transition: transform .15s ease;
}
.b2b-radio-text {
  line-height: 1.35;
}
.b2b-radio-label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(21, 101, 192, .07);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, .1);
}
.b2b-radio-label:has(input:checked) .b2b-radio-indicator {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(21, 101, 192, .28);
}
.b2b-radio-label:has(input:checked) .b2b-radio-indicator::after {
  transform: rotate(45deg) scale(1);
}
.b2b-radio-label:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.b2b-radio-label.is-invalid {
  border-color: #dc2626;
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .08);
}

/* Phone row */
.b2b-phone-row {
  display: grid;
  grid-template-columns: minmax(120px, .42fr) minmax(0, 1fr);
  gap: 10px;
}

/* File upload */
.b2b-file-wrap input[type="file"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--r);
  background: var(--off-white);
  font-size: 13px;
  color: var(--text-mid);
  cursor: pointer;
}
.b2b-file-wrap input[type="file"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, .12);
}
.b2b-file-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}
.b2b-file-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.b2b-file-list li {
  font-size: 13px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}
.b2b-file-list li i {
  color: var(--accent);
  font-size: 12px;
}

.b2b-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.b2b-form-actions {
  margin-top: 4px;
}
.b2b-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  border: none;
  border-radius: var(--r);
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--ease);
  box-shadow: var(--shadow-accent);
}
.b2b-form-submit:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.b2b-form-submit:disabled,
.b2b-form-submit.is-loading {
  opacity: .85;
  cursor: wait;
  transform: none;
}
.b2b-form-submit-icon {
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
  .b2b-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .b2b-benefits {
    padding: 56px 0;
  }
  .b2b-inquiry {
    padding: 56px 0 64px;
  }
  .b2b-inquiry-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .b2b-form-row--2 {
    grid-template-columns: 1fr;
  }
  .b2b-radio-group {
    grid-template-columns: 1fr;
  }
  .b2b-form-card {
    padding: 22px 18px 26px;
  }
  .b2b-phone-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .b2b-benefits-grid {
    grid-template-columns: 1fr;
  }
}
