/**
 * WC B2B Manager - Public Frontend Styles
 *
 * All classes prefixed with .b2b-f- to avoid conflicts.
 * Fonts: Syne (headings), DM Sans (body).
 */

/* =========================================================================
   CSS Custom Properties
   ========================================================================= */

:root {
  --b2b-f-bg: #ffffff;
  --b2b-f-bg-alt: #f7f8fc;
  --b2b-f-surface: #ffffff;
  --b2b-f-border: #e4e6f0;
  --b2b-f-text: #111827;
  --b2b-f-text-sub: #6b7280;
  --b2b-f-accent: #6c63ff;
  --b2b-f-accent-dark: #4f46e5;
  --b2b-f-success: #16a34a;
  --b2b-f-error: #dc2626;
  --b2b-f-warning: #f59e0b;
  --b2b-f-radius: 16px;
  --b2b-f-radius-sm: 8px;
  --b2b-f-radius-xs: 6px;
  --b2b-f-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --b2b-f-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --b2b-f-transition: 0.2s ease;
}

/* =========================================================================
   Keyframe Animations
   ========================================================================= */

@keyframes b2b-f-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes b2b-f-slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes b2b-f-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes b2b-f-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes b2b-f-strengthFill {
  from {
    width: 0;
  }
}

/* =========================================================================
   1. Registration Form
   ========================================================================= */

.b2b-f-registration-form {
  max-width: 800px;
  margin: 40px auto;
  background: var(--b2b-f-surface);
  padding: 48px;
  border-radius: var(--b2b-f-radius);
  box-shadow: var(--b2b-f-shadow);
  animation: b2b-f-slideUp 0.4s ease both;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--b2b-f-text);
  box-sizing: border-box;
}

.b2b-f-registration-form *,
.b2b-f-registration-form *::before,
.b2b-f-registration-form *::after {
  box-sizing: border-box;
}

/* Form Title */
.b2b-f-form-title {
  font-family: "Syne", "DM Sans", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--b2b-f-text);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.b2b-f-form-subtitle {
  font-size: 15px;
  color: var(--b2b-f-text-sub);
  margin: 0 0 32px 0;
  line-height: 1.5;
}

/* Form Sections */
.b2b-f-form-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--b2b-f-border);
}

.b2b-f-form-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.b2b-f-section-title {
  font-family: "Syne", "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--b2b-f-text);
  margin: 0 0 24px 0;
  line-height: 1.4;
}

/* Form Grid */
.b2b-f-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

/* Field Group */
.b2b-f-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.b2b-f-field-full {
  grid-column: 1 / -1;
}

/* Labels */
.b2b-f-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--b2b-f-text);
  line-height: 1.4;
  display: block;
}

.b2b-f-label-required {
  color: var(--b2b-f-error);
  margin-left: 2px;
}

.b2b-f-label-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--b2b-f-text-sub);
  margin-left: 4px;
}

/* Inputs, Selects, Textareas */
.b2b-f-input,
.b2b-f-select,
.b2b-f-textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--b2b-f-text);
  background: var(--b2b-f-bg);
  border: 1px solid var(--b2b-f-border);
  border-radius: var(--b2b-f-radius-sm);
  outline: none;
  transition: border-color var(--b2b-f-transition), box-shadow var(--b2b-f-transition);
  -webkit-appearance: none;
  appearance: none;
}

.b2b-f-input::placeholder,
.b2b-f-textarea::placeholder {
  color: var(--b2b-f-text-sub);
  opacity: 0.6;
}

.b2b-f-input:hover,
.b2b-f-select:hover,
.b2b-f-textarea:hover {
  border-color: #c5c8d6;
}

.b2b-f-input:focus,
.b2b-f-select:focus,
.b2b-f-textarea:focus {
  border-color: var(--b2b-f-accent);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.b2b-f-select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}

.b2b-f-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Input Wrapper - for icons inside fields */
.b2b-f-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.b2b-f-input-wrap .b2b-f-input {
  padding-right: 40px;
}

.b2b-f-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Error State */
.b2b-f-input-error .b2b-f-input,
.b2b-f-input-error .b2b-f-select,
.b2b-f-input-error .b2b-f-textarea {
  border-color: var(--b2b-f-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.b2b-f-input-error .b2b-f-input:focus,
.b2b-f-input-error .b2b-f-select:focus,
.b2b-f-input-error .b2b-f-textarea:focus {
  border-color: var(--b2b-f-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.b2b-f-error-message {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--b2b-f-error);
  margin-top: 2px;
  line-height: 1.4;
  animation: b2b-f-fadeIn 0.2s ease;
}

.b2b-f-error-message::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Success State */
.b2b-f-input-success .b2b-f-input,
.b2b-f-input-success .b2b-f-select,
.b2b-f-input-success .b2b-f-textarea {
  border-color: var(--b2b-f-success);
}

/* File Dropzone */
.b2b-f-input-file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.b2b-f-file-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  border: 2px dashed var(--b2b-f-border);
  border-radius: var(--b2b-f-radius-sm);
  background: var(--b2b-f-bg-alt);
  cursor: pointer;
  transition: border-color var(--b2b-f-transition), background var(--b2b-f-transition);
  text-align: center;
}

.b2b-f-file-dropzone:hover,
.b2b-f-file-dropzone.b2b-f-drag-over {
  border-color: var(--b2b-f-accent);
  background: rgba(108, 99, 255, 0.04);
}

.b2b-f-file-dropzone.b2b-f-has-file {
  border-style: solid;
  border-color: var(--b2b-f-success);
  background: rgba(22, 163, 74, 0.04);
}

.b2b-f-file-icon {
  width: 36px;
  height: 36px;
  color: var(--b2b-f-accent);
  flex-shrink: 0;
}

.b2b-f-file-dropzone.b2b-f-has-file .b2b-f-file-icon {
  color: var(--b2b-f-success);
}

.b2b-f-file-dropzone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--b2b-f-text-sub);
}

.b2b-f-file-dropzone-text strong {
  color: var(--b2b-f-text);
  font-size: 15px;
}

.b2b-f-file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--b2b-f-success);
  display: none;
  word-break: break-all;
  max-width: 100%;
}

.b2b-f-file-dropzone.b2b-f-has-file .b2b-f-file-name {
  display: block;
}

.b2b-f-file-dropzone.b2b-f-has-file .b2b-f-file-dropzone-text {
  display: none;
}

/* Field Hint */
.b2b-f-field-hint {
  font-size: 12px;
  color: var(--b2b-f-text-sub);
  margin-top: 4px;
}

.b2b-f-input-success .b2b-f-input-icon::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Password Strength Bar */
.b2b-f-password-strength {
  height: 4px;
  background: var(--b2b-f-border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
  position: relative;
}

.b2b-f-password-strength-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
  animation: b2b-f-strengthFill 0.4s ease;
}

.b2b-f-password-strength[data-strength="weak"] .b2b-f-password-strength-bar {
  width: 25%;
  background-color: var(--b2b-f-error);
}

.b2b-f-password-strength[data-strength="fair"] .b2b-f-password-strength-bar {
  width: 50%;
  background-color: #f97316;
}

.b2b-f-password-strength[data-strength="good"] .b2b-f-password-strength-bar {
  width: 75%;
  background-color: var(--b2b-f-warning);
}

.b2b-f-password-strength[data-strength="strong"] .b2b-f-password-strength-bar {
  width: 100%;
  background-color: var(--b2b-f-success);
}

.b2b-f-password-strength-label {
  font-size: 12px;
  margin-top: 4px;
  color: var(--b2b-f-text-sub);
}

/* Submit Button */
.b2b-f-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 28px;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  background: var(--b2b-f-accent);
  border: none;
  border-radius: var(--b2b-f-radius-sm);
  cursor: pointer;
  transition: background-color var(--b2b-f-transition), box-shadow var(--b2b-f-transition), transform var(--b2b-f-transition);
  margin-top: 12px;
  position: relative;
}

.b2b-f-submit:hover {
  background: var(--b2b-f-accent-dark);
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.b2b-f-submit:active {
  transform: translateY(1px);
}

.b2b-f-submit:disabled {
  background: #c4c1e8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Spinner */
.b2b-f-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: b2b-f-spin 0.6s linear infinite;
  flex-shrink: 0;
}

/* Honeypot - hidden */
.b2b-f-honeypot {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* Success Message */
.b2b-f-success-message {
  max-width: 500px;
  margin: 40px auto;
  padding: 48px 40px;
  background: var(--b2b-f-surface);
  border-radius: var(--b2b-f-radius);
  box-shadow: var(--b2b-f-shadow);
  text-align: center;
  animation: b2b-f-slideUp 0.5s ease both;
}

.b2b-f-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(22, 163, 74, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b2b-f-success-icon svg {
  width: 32px;
  height: 32px;
  color: var(--b2b-f-success);
}

.b2b-f-success-message h3 {
  font-family: "Syne", "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--b2b-f-text);
  margin: 0 0 12px 0;
}

.b2b-f-success-message p {
  font-size: 15px;
  color: var(--b2b-f-text-sub);
  line-height: 1.6;
  margin: 0;
}

/* =========================================================================
   2. Price Mask
   ========================================================================= */

.b2b-f-price-mask {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px dashed rgba(108, 99, 255, 0.4);
  border-radius: var(--b2b-f-radius-xs);
  background: rgba(108, 99, 255, 0.04);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--b2b-f-text);
  animation: b2b-f-fadeIn 0.3s ease;
}

.b2b-f-lock-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
}

.b2b-f-lock-icon svg {
  width: 100%;
  height: 100%;
  color: var(--b2b-f-accent);
}

.b2b-f-mask-text {
  font-size: 13px;
  color: var(--b2b-f-text-sub);
  line-height: 1.4;
}

.b2b-f-mask-cta {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--b2b-f-accent);
  background: transparent;
  border: 1px solid var(--b2b-f-accent);
  border-radius: var(--b2b-f-radius-xs);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--b2b-f-transition), color var(--b2b-f-transition);
  white-space: nowrap;
}

.b2b-f-mask-cta:hover {
  background: rgba(108, 99, 255, 0.08);
  color: var(--b2b-f-accent-dark);
}

.b2b-f-mask-cta:focus-visible {
  outline: 2px solid var(--b2b-f-accent);
  outline-offset: 2px;
}

/* Pending variant */
.b2b-f-price-mask-pending {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.04);
}

.b2b-f-price-mask-pending .b2b-f-lock-icon svg {
  color: var(--b2b-f-warning);
}

.b2b-f-price-mask-pending .b2b-f-mask-cta {
  color: #b45309;
  border-color: var(--b2b-f-warning);
}

.b2b-f-price-mask-pending .b2b-f-mask-cta:hover {
  background: rgba(245, 158, 11, 0.08);
}

/* Suspended variant */
.b2b-f-price-mask-suspended {
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(220, 38, 38, 0.04);
}

.b2b-f-price-mask-suspended .b2b-f-lock-icon svg {
  color: var(--b2b-f-error);
}

.b2b-f-price-mask-suspended .b2b-f-mask-cta {
  color: var(--b2b-f-error);
  border-color: var(--b2b-f-error);
}

.b2b-f-price-mask-suspended .b2b-f-mask-cta:hover {
  background: rgba(220, 38, 38, 0.08);
}

/* =========================================================================
   3. Pending Message Card
   ========================================================================= */

.b2b-f-pending-card {
  max-width: 500px;
  margin: 40px auto;
  padding: 48px 40px;
  background: var(--b2b-f-surface);
  border-radius: var(--b2b-f-radius);
  box-shadow: var(--b2b-f-shadow);
  text-align: center;
  animation: b2b-f-slideUp 0.5s ease both;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.b2b-f-pending-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: b2b-f-pulse 2s ease-in-out infinite;
}

.b2b-f-pending-icon svg {
  width: 36px;
  height: 36px;
  color: var(--b2b-f-warning);
}

.b2b-f-pending-card h3 {
  font-family: "Syne", "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--b2b-f-text);
  margin: 0 0 12px 0;
}

.b2b-f-pending-card p {
  font-size: 15px;
  color: var(--b2b-f-text-sub);
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.b2b-f-pending-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--b2b-f-accent);
  background: transparent;
  border: 1px solid var(--b2b-f-accent);
  border-radius: var(--b2b-f-radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--b2b-f-transition), color var(--b2b-f-transition);
}

.b2b-f-pending-cta:hover {
  background: rgba(108, 99, 255, 0.08);
  color: var(--b2b-f-accent-dark);
}

/* =========================================================================
   4. Suspended Message Card
   ========================================================================= */

.b2b-f-suspended-card {
  max-width: 500px;
  margin: 40px auto;
  padding: 48px 40px;
  background: var(--b2b-f-surface);
  border-radius: var(--b2b-f-radius);
  box-shadow: var(--b2b-f-shadow);
  text-align: center;
  animation: b2b-f-slideUp 0.5s ease both;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.b2b-f-suspended-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b2b-f-suspended-icon svg {
  width: 36px;
  height: 36px;
  color: var(--b2b-f-error);
}

.b2b-f-suspended-card h3 {
  font-family: "Syne", "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--b2b-f-text);
  margin: 0 0 12px 0;
}

.b2b-f-suspended-card p {
  font-size: 15px;
  color: var(--b2b-f-text-sub);
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.b2b-f-suspended-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--b2b-f-error);
  background: transparent;
  border: 1px solid var(--b2b-f-error);
  border-radius: var(--b2b-f-radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--b2b-f-transition), color var(--b2b-f-transition);
}

.b2b-f-suspended-cta:hover {
  background: rgba(220, 38, 38, 0.08);
}

/* =========================================================================
   5. My Account Tab
   ========================================================================= */

.b2b-f-myaccount {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--b2b-f-text);
  animation: b2b-f-fadeIn 0.3s ease;
}

.b2b-f-myaccount-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.b2b-f-myaccount-header-icon {
  width: 40px;
  height: 40px;
  background: rgba(108, 99, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.b2b-f-myaccount-header-icon svg {
  width: 20px;
  height: 20px;
  color: var(--b2b-f-accent);
}

.b2b-f-myaccount-title {
  font-family: "Syne", "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--b2b-f-text);
  margin: 0;
}

/* Status Badge */
.b2b-f-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.b2b-f-status-badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.b2b-f-status-badge-approved {
  background: rgba(22, 163, 74, 0.1);
  color: var(--b2b-f-success);
}

.b2b-f-status-badge-approved::before {
  background: var(--b2b-f-success);
}

.b2b-f-status-badge-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}

.b2b-f-status-badge-pending::before {
  background: var(--b2b-f-warning);
}

.b2b-f-status-badge-suspended {
  background: rgba(220, 38, 38, 0.1);
  color: var(--b2b-f-error);
}

.b2b-f-status-badge-suspended::before {
  background: var(--b2b-f-error);
}

/* My Account Form Grid */
.b2b-f-myaccount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.b2b-f-myaccount-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--b2b-f-border);
}

.b2b-f-myaccount-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.b2b-f-myaccount-section-title {
  font-family: "Syne", "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--b2b-f-text);
  margin: 0 0 20px 0;
  grid-column: 1 / -1;
}

/* Read-only State */
.b2b-f-readonly .b2b-f-input,
.b2b-f-readonly .b2b-f-select,
.b2b-f-readonly .b2b-f-textarea {
  background: var(--b2b-f-bg-alt);
  color: var(--b2b-f-text-sub);
  border-color: var(--b2b-f-border);
  cursor: not-allowed;
  opacity: 0.75;
  pointer-events: none;
}

.b2b-f-readonly .b2b-f-submit {
  display: none;
}

/* =========================================================================
   6. Notices
   ========================================================================= */

.b2b-f-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--b2b-f-radius-sm);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  animation: b2b-f-fadeIn 0.3s ease;
}

.b2b-f-notice-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.b2b-f-notice-icon svg {
  width: 100%;
  height: 100%;
}

.b2b-f-notice-content {
  flex: 1;
  min-width: 0;
}

.b2b-f-notice-content p {
  margin: 0;
}

.b2b-f-notice-info {
  background: rgba(108, 99, 255, 0.06);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: var(--b2b-f-text);
}

.b2b-f-notice-info .b2b-f-notice-icon svg {
  color: var(--b2b-f-accent);
}

.b2b-f-notice-success {
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.2);
  color: var(--b2b-f-text);
}

.b2b-f-notice-success .b2b-f-notice-icon svg {
  color: var(--b2b-f-success);
}

.b2b-f-notice-error {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--b2b-f-text);
}

.b2b-f-notice-error .b2b-f-notice-icon svg {
  color: var(--b2b-f-error);
}

/* =========================================================================
   Accessibility
   ========================================================================= */

.b2b-f-input:focus-visible,
.b2b-f-select:focus-visible,
.b2b-f-textarea:focus-visible {
  outline: 2px solid var(--b2b-f-accent);
  outline-offset: 2px;
}

.b2b-f-submit:focus-visible {
  outline: 2px solid var(--b2b-f-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.2);
}

.b2b-f-pending-cta:focus-visible,
.b2b-f-suspended-cta:focus-visible {
  outline: 2px solid var(--b2b-f-accent);
  outline-offset: 2px;
}

/* Screen reader only utility */
.b2b-f-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================================
   Responsive - Tablet (< 768px)
   ========================================================================= */

@media screen and (max-width: 767px) {
  .b2b-f-registration-form {
    padding: 28px 20px;
    margin: 24px auto;
    border-radius: 12px;
  }

  .b2b-f-form-title {
    font-size: 24px;
  }

  .b2b-f-form-grid,
  .b2b-f-myaccount-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .b2b-f-field-full {
    grid-column: auto;
  }

  .b2b-f-form-section {
    margin-top: 24px;
    padding-top: 24px;
  }

  .b2b-f-section-title {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .b2b-f-pending-card,
  .b2b-f-suspended-card,
  .b2b-f-success-message {
    padding: 36px 24px;
    margin: 20px auto;
  }

  .b2b-f-myaccount-header {
    margin-bottom: 20px;
  }

  .b2b-f-myaccount-title {
    font-size: 20px;
  }

  .b2b-f-price-mask {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* =========================================================================
   Responsive - Small Mobile (< 480px)
   ========================================================================= */

@media screen and (max-width: 479px) {
  .b2b-f-registration-form {
    padding: 20px 16px;
    margin: 16px 8px;
    border-radius: 10px;
  }

  .b2b-f-form-title {
    font-size: 20px;
  }

  .b2b-f-form-subtitle {
    font-size: 14px;
  }

  .b2b-f-section-title {
    font-size: 15px;
  }

  .b2b-f-label {
    font-size: 13px;
  }

  .b2b-f-input,
  .b2b-f-select,
  .b2b-f-textarea {
    font-size: 14px;
    padding: 10px 12px;
  }

  .b2b-f-submit {
    font-size: 15px;
    padding: 12px 20px;
  }

  .b2b-f-pending-card,
  .b2b-f-suspended-card,
  .b2b-f-success-message {
    padding: 28px 16px;
    margin: 16px 8px;
    border-radius: 10px;
  }

  .b2b-f-pending-card h3,
  .b2b-f-suspended-card h3,
  .b2b-f-success-message h3 {
    font-size: 19px;
  }

  .b2b-f-pending-card p,
  .b2b-f-suspended-card p,
  .b2b-f-success-message p {
    font-size: 14px;
  }

  .b2b-f-pending-icon,
  .b2b-f-suspended-icon {
    width: 60px;
    height: 60px;
  }

  .b2b-f-pending-icon svg,
  .b2b-f-suspended-icon svg {
    width: 28px;
    height: 28px;
  }

  .b2b-f-notice {
    padding: 12px 14px;
    font-size: 13px;
  }

  .b2b-f-myaccount-title {
    font-size: 18px;
  }

  .b2b-f-status-badge {
    font-size: 11px;
    padding: 4px 12px;
  }

  .b2b-f-mask-cta {
    width: 100%;
    justify-content: center;
    padding: 6px 12px;
  }
}

/* =========================================================================
   Reduced Motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .b2b-f-pending-icon {
    animation: none;
  }

  .b2b-f-spinner {
    animation: none;
    border-style: dotted;
  }
}

/* =========================================================================
   Print Styles
   ========================================================================= */

@media print {
  .b2b-f-registration-form,
  .b2b-f-pending-card,
  .b2b-f-suspended-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .b2b-f-submit,
  .b2b-f-mask-cta,
  .b2b-f-pending-cta,
  .b2b-f-suspended-cta {
    display: none;
  }

  .b2b-f-price-mask {
    border-style: solid;
  }
}
