/* =========================================================
   Get a Quote Form Styles
   Prefix: wqf- (Wescan Quote Form)

   Breakpoints:
   - Small phones: 480px
   - Large phones/small tablets: 768px
   - Tablets/small laptops: 1024px
   - Desktop: 1280px
   ========================================================= */

/* -------------------------
   CSS Custom Properties
   ------------------------- */
.wqf-form-wrapper {
  /* Brand colors (inherit from css2/theme.css, fallback defined) */
  --wqf-color-primary: var(--color-primary, #002b49);
  --wqf-color-accent: var(--color-accent, #e57200);
  --wqf-color-background: var(--surface-page, #f7f9fc);

  /* Accent variations */
  --wqf-accent-hover: var(--color-accent-dark, #b35a00);
  --wqf-accent-light: var(--color-accent-light, #fef5ec);
  --wqf-accent-muted: var(--color-accent-200, #f5c090);

  /* Neutrals */
  --wqf-neutral-900: var(--color-gray-900, #0f172a);
  --wqf-neutral-700: var(--color-gray-700, #334155);
  --wqf-neutral-600: var(--color-gray-600, #475569);
  --wqf-neutral-500: var(--color-gray-500, #64748b);
  --wqf-neutral-400: var(--color-gray-400, #94a3b8);
  --wqf-neutral-300: var(--color-gray-300, #cbd5e1);
  --wqf-neutral-200: var(--color-gray-200, #e2e8f0);
  --wqf-neutral-100: var(--color-gray-100, #f1f5f9);

  /* Semantic colors */
  --wqf-error: var(--color-error, #dc2626);
  --wqf-error-light: var(--color-error-light, #fef2f2);
  --wqf-success: var(--color-success, #16a34a);
  --wqf-success-light: var(--color-success-light, #f0fdf4);
  --wqf-warning: var(--color-warning, #d97706);
  --wqf-warning-light: var(--color-warning-light, #fffbeb);

  /* Surfaces */
  --wqf-surface-card: var(--surface-card, #ffffff);
  --wqf-surface-muted: var(--wqf-neutral-100);

  /* Borders */
  --wqf-border-default: var(--wqf-neutral-200);
  --wqf-border-strong: var(--wqf-neutral-300);

  /* Shadows */
  --wqf-shadow-sm: 0 1px 2px rgba(0, 43, 73, 0.05);
  --wqf-shadow-md: 0 4px 6px -1px rgba(0, 43, 73, 0.07), 0 2px 4px -1px rgba(0, 43, 73, 0.04);
  --wqf-shadow-lg: 0 10px 15px -3px rgba(0, 43, 73, 0.08), 0 4px 6px -2px rgba(0, 43, 73, 0.04);

  /* Spacing */
  --wqf-space-xs: 4px;
  --wqf-space-sm: 8px;
  --wqf-space-md: 16px;
  --wqf-space-lg: 24px;
  --wqf-space-xl: 32px;
  --wqf-space-2xl: 48px;

  /* Typography */
  --wqf-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --wqf-font-size-xs: 0.75rem;
  --wqf-font-size-sm: 0.875rem;
  --wqf-font-size-base: 1rem;
  --wqf-font-size-lg: 1.125rem;
  --wqf-font-size-xl: 1.25rem;
  --wqf-font-size-2xl: 1.5rem;
  --wqf-line-height-tight: 1.25;
  --wqf-line-height-normal: 1.5;

  /* Border radius */
  --wqf-radius-sm: 4px;
  --wqf-radius-md: 8px;
  --wqf-radius-lg: 12px;
  --wqf-radius-full: 9999px;

  /* Transitions */
  --wqf-transition-fast: 150ms ease;
  --wqf-transition-normal: 250ms ease;

  /* Z-index layers */
  --wqf-z-sidebar: 10;
  --wqf-z-progress-dots: 20;
  --wqf-z-toast: 100;
  --wqf-z-modal: 200;
}

/* -------------------------
   Base / Reset
   ------------------------- */
.wqf-form-wrapper {
  box-sizing: border-box;
  font-family: var(--wqf-font-family);
  font-size: var(--wqf-font-size-base);
  line-height: var(--wqf-line-height-normal);
  color: var(--wqf-neutral-900);
  background-color: var(--wqf-color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wqf-form-wrapper *,
.wqf-form-wrapper *::before,
.wqf-form-wrapper *::after {
  box-sizing: inherit;
}

/* -------------------------
   Layout: Main Container
   ------------------------- */

/* Fix sticky sidebar - parent containers need overflow: visible */
.dn-content:has(.wqf-form-wrapper) {
  overflow: visible !important;
}

/* Offset sidebar for CMS admin header when logged in */
.dn-admin-logged-in .wqf-form-wrapper {
  --wqf-sidebar-top: 74px;
}

.wqf-form-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.wqf-layout {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--wqf-space-lg);
  gap: var(--wqf-space-xl);
}

/* -------------------------
   Sidebar Navigation
   ------------------------- */
.wqf-sidebar {
  position: sticky;
  top: var(--wqf-sidebar-top, var(--wqf-space-lg));
  flex-shrink: 0;
  width: 240px;
  height: fit-content;
  max-height: calc(100vh - var(--wqf-sidebar-top, var(--wqf-space-xl)));
  overflow-y: auto;
  z-index: var(--wqf-z-sidebar);
}

.wqf-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: var(--wqf-space-xs);
  list-style: none;
  padding: 0;
  margin: 0;
}

.wqf-sidebar__title {
  font-size: var(--wqf-font-size-sm);
  font-weight: 600;
  color: var(--wqf-neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--wqf-space-sm) var(--wqf-space-md);
  margin-bottom: var(--wqf-space-sm);
}

.wqf-sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--wqf-space-sm);
  padding: var(--wqf-space-sm) var(--wqf-space-md);
  color: var(--wqf-neutral-700);
  text-decoration: none;
  font-size: var(--wqf-font-size-sm);
  border-left: 3px solid transparent;
  border-radius: 0 var(--wqf-radius-sm) var(--wqf-radius-sm) 0;
  transition: all var(--wqf-transition-fast);
}

.wqf-sidebar__link:hover {
  color: var(--wqf-neutral-900);
  background-color: var(--wqf-surface-muted);
}

.wqf-sidebar__link:focus-visible {
  outline: 2px solid var(--wqf-color-accent);
  outline-offset: 2px;
}

.wqf-sidebar__link--active {
  color: var(--wqf-color-accent);
  border-left-color: var(--wqf-color-accent);
  background-color: var(--wqf-accent-light);
  font-weight: 500;
}

.wqf-sidebar__link--completed {
  color: var(--wqf-success);
}

.wqf-sidebar__link--completed::after {
  content: '';
  width: 16px;
  height: 16px;
  margin-left: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231f7a4d'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.wqf-sidebar__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: var(--wqf-font-size-xs);
  font-weight: 600;
  border-radius: var(--wqf-radius-full);
  background-color: var(--wqf-neutral-200);
  color: var(--wqf-neutral-600);
  flex-shrink: 0;
}

.wqf-sidebar__link--active .wqf-sidebar__step-number {
  background-color: var(--wqf-color-accent);
  color: #ffffff;
}

.wqf-sidebar__link--completed .wqf-sidebar__step-number {
  background-color: var(--wqf-success);
  color: #ffffff;
}

/* -------------------------
   Mobile Progress Dots
   ------------------------- */
.wqf-progress-dots {
  display: none;
  position: fixed;
  right: var(--wqf-space-md);
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: var(--wqf-space-sm);
  z-index: var(--wqf-z-progress-dots);
  padding: var(--wqf-space-sm);
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--wqf-radius-lg);
  box-shadow: var(--wqf-shadow-md);
}

.wqf-progress-dot {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: var(--wqf-radius-full);
  background-color: var(--wqf-neutral-300);
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--wqf-transition-fast);
}

.wqf-progress-dot:focus-visible {
  outline: 2px solid var(--wqf-color-accent);
  outline-offset: 2px;
}

.wqf-progress-dot--active {
  background-color: var(--wqf-color-accent);
  transform: scale(1.2);
}

.wqf-progress-dot--completed {
  background-color: var(--wqf-success);
}

.wqf-progress-dot__tooltip {
  position: absolute;
  right: calc(100% + var(--wqf-space-sm));
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: var(--wqf-font-size-xs);
  padding: var(--wqf-space-xs) var(--wqf-space-sm);
  background-color: var(--wqf-neutral-900);
  color: #ffffff;
  border-radius: var(--wqf-radius-sm);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--wqf-transition-fast);
  pointer-events: none;
}

.wqf-progress-dot:hover .wqf-progress-dot__tooltip,
.wqf-progress-dot:focus .wqf-progress-dot__tooltip {
  opacity: 1;
  visibility: visible;
}

/* -------------------------
   Main Content Area
   ------------------------- */
.wqf-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--wqf-space-lg);
}

/* -------------------------
   Section Cards
   ------------------------- */
.wqf-section {
  background-color: var(--wqf-surface-card);
  border-radius: var(--wqf-radius-md);
  box-shadow: var(--wqf-shadow-sm);
  padding: var(--wqf-space-lg);
  scroll-margin-top: var(--wqf-space-lg);
}

.wqf-section__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--wqf-space-md);
  margin-bottom: var(--wqf-space-lg);
  /* Reset background from system header styles */
  background-color: transparent !important;
  padding: 0;
}

.wqf-section__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--wqf-color-accent);
}

.wqf-section__title {
  font-size: var(--wqf-font-size-xl);
  font-weight: 600;
  color: var(--wqf-neutral-900);
  margin: 0;
  line-height: var(--wqf-line-height-tight);
}

.wqf-section__subtitle {
  flex-basis: 100%;
  font-size: var(--wqf-font-size-sm);
  color: var(--wqf-neutral-600);
  margin: calc(-1 * var(--wqf-space-sm)) 0 0 calc(28px + var(--wqf-space-md));
}

.wqf-section__description {
  font-size: var(--wqf-font-size-sm);
  color: var(--wqf-neutral-600);
  margin-bottom: var(--wqf-space-lg);
  line-height: var(--wqf-line-height-normal);
}

/* -------------------------
   Form Elements: Labels
   ------------------------- */
.wqf-label {
  display: block;
  font-size: var(--wqf-font-size-sm);
  font-weight: 500;
  color: var(--wqf-neutral-900);
  margin-bottom: var(--wqf-space-sm);
}

.wqf-label--required::after {
  content: ' *';
  color: var(--wqf-error);
}

.wqf-label__hint {
  font-weight: 400;
  color: var(--wqf-neutral-500);
  margin-left: var(--wqf-space-xs);
}

/* -------------------------
   Form Elements: Inputs
   ------------------------- */
.wqf-input {
  display: block;
  width: 100%;
  padding: var(--wqf-space-sm) var(--wqf-space-md);
  font-family: inherit;
  font-size: var(--wqf-font-size-base);
  line-height: var(--wqf-line-height-normal);
  color: var(--wqf-neutral-900);
  background-color: #ffffff;
  border: 1px solid var(--wqf-border-default);
  border-radius: var(--wqf-radius-md);
  transition: border-color var(--wqf-transition-fast), box-shadow var(--wqf-transition-fast);
  min-height: 44px;
}

.wqf-input::placeholder {
  color: var(--wqf-neutral-400);
}

.wqf-input:hover:not(:disabled) {
  border-color: var(--wqf-border-strong);
}

.wqf-input:focus {
  outline: none;
  border-color: var(--wqf-color-accent);
  box-shadow: 0 0 0 3px rgba(229, 114, 0, 0.15);
}

.wqf-input:disabled {
  background-color: var(--wqf-surface-muted);
  color: var(--wqf-neutral-500);
  cursor: not-allowed;
}

.wqf-input--error {
  border-color: var(--wqf-error);
}

.wqf-input--error:focus {
  border-color: var(--wqf-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Textarea */
.wqf-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Select */
.wqf-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235c6f82'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--wqf-space-sm) center;
  background-size: 20px;
  padding-right: var(--wqf-space-xl);
  cursor: pointer;
}

/* -------------------------
   Form Elements: Checkboxes & Radios
   ------------------------- */
.wqf-checkbox-group,
.wqf-radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--wqf-space-sm);
}

.wqf-checkbox-group--inline,
.wqf-radio-group--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--wqf-space-md);
}

.wqf-checkbox,
.wqf-radio {
  display: flex;
  align-items: flex-start;
  gap: var(--wqf-space-sm);
  cursor: pointer;
  min-height: 44px;
  padding: var(--wqf-space-xs) 0;
}

.wqf-checkbox__input,
.wqf-radio__input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--wqf-color-accent);
  cursor: pointer;
}

.wqf-checkbox__label,
.wqf-radio__label {
  font-size: var(--wqf-font-size-sm);
  color: var(--wqf-neutral-700);
  line-height: 1.4;
}

/* -------------------------
   Fieldsets & Legends
   ------------------------- */
.wqf-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 var(--wqf-space-lg);
}

.wqf-fieldset:last-child {
  margin-bottom: 0;
}

.wqf-legend {
  display: block;
  font-size: var(--wqf-font-size-sm);
  font-weight: 500;
  color: var(--wqf-neutral-900);
  margin-bottom: var(--wqf-space-sm);
  padding: 0;
}

/* -------------------------
   Form Groups
   ------------------------- */
.wqf-form-group {
  margin-bottom: var(--wqf-space-lg);
}

.wqf-form-group:last-child {
  margin-bottom: 0;
}

.wqf-form-group__error {
  display: none;
  margin-top: var(--wqf-space-xs);
  font-size: var(--wqf-font-size-sm);
  color: var(--wqf-error);
}

.wqf-form-group__error::before {
  content: '⚠ ';
}

.wqf-form-group--full {
  grid-column: 1 / -1;
}

.wqf-form-row {
  display: grid;
  gap: var(--wqf-space-md);
}

.wqf-form-row--2 {
  grid-template-columns: repeat(2, 1fr);
}

.wqf-form-row--3 {
  grid-template-columns: repeat(3, 1fr);
}

.wqf-form-row--auto {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* -------------------------
   Validation Messages
   ------------------------- */
.wqf-error-message {
  display: flex;
  align-items: flex-start;
  gap: var(--wqf-space-xs);
  margin-top: var(--wqf-space-xs);
  font-size: var(--wqf-font-size-sm);
  color: var(--wqf-error);
}

.wqf-error-message::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23b42318'%3E%3Cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.wqf-help-text {
  margin-top: calc(-1 * var(--wqf-space-xs));
  margin-bottom: var(--wqf-space-sm);
  font-size: var(--wqf-font-size-sm);
  color: var(--wqf-neutral-500);
}

/* -------------------------
   Buttons
   ------------------------- */
.wqf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wqf-space-sm);
  padding: var(--wqf-space-sm) var(--wqf-space-lg);
  min-height: 44px;
  font-family: inherit;
  font-size: var(--wqf-font-size-base);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--wqf-radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--wqf-transition-fast);
}

.wqf-btn:focus-visible {
  outline: 2px solid var(--wqf-color-accent);
  outline-offset: 2px;
}

.wqf-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary Button */
.wqf-btn--primary {
  background-color: var(--wqf-color-accent);
  color: #ffffff;
}

.wqf-btn--primary:hover:not(:disabled) {
  background-color: var(--wqf-accent-hover);
}

.wqf-btn--primary:active:not(:disabled) {
  transform: translateY(1px);
}

/* Secondary Button */
.wqf-btn--secondary {
  background-color: transparent;
  color: var(--wqf-color-accent);
  border: 1px solid var(--wqf-color-accent);
}

.wqf-btn--secondary:hover:not(:disabled) {
  background-color: var(--wqf-accent-light);
}

/* Ghost Button */
.wqf-btn--ghost {
  background-color: transparent;
  color: var(--wqf-neutral-700);
}

.wqf-btn--ghost:hover:not(:disabled) {
  background-color: var(--wqf-surface-muted);
}

/* Danger Button */
.wqf-btn--danger {
  background-color: var(--wqf-error);
  color: #ffffff;
}

.wqf-btn--danger:hover:not(:disabled) {
  background-color: #9a1b12;
}

/* Button Sizes */
.wqf-btn--sm {
  padding: var(--wqf-space-xs) var(--wqf-space-md);
  min-height: 36px;
  font-size: var(--wqf-font-size-sm);
}

.wqf-btn--lg {
  padding: var(--wqf-space-md) var(--wqf-space-xl);
  min-height: 52px;
  font-size: var(--wqf-font-size-lg);
}

/* Button with icon */
.wqf-btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.wqf-btn--icon-only {
  padding: var(--wqf-space-sm);
  min-width: 44px;
}

/* Button group */
.wqf-btn-group {
  display: flex;
  gap: var(--wqf-space-md);
  flex-wrap: wrap;
}

.wqf-btn-group--end {
  justify-content: flex-end;
}

.wqf-btn-group--between {
  justify-content: space-between;
}

/* Submit section with Turnstile */
.wqf-btn-group--submit {
  flex-direction: column;
  align-items: flex-end;
  gap: var(--wqf-space-md);
}

.wqf-btn-group--submit .cf-turnstile {
  /* Ensure proper spacing for Turnstile widget */
}

@media (min-width: 480px) {
  .wqf-btn-group--submit {
    flex-direction: row;
    align-items: center;
  }
}

/* -------------------------
   Product Rows
   ------------------------- */
.wqf-products {
  display: flex;
  flex-direction: column;
  gap: var(--wqf-space-md);
}

.wqf-product-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto auto;
  gap: var(--wqf-space-md);
  align-items: start;
  padding: var(--wqf-space-md);
  background-color: var(--wqf-surface-muted);
  border-radius: var(--wqf-radius-md);
  border: 1px solid var(--wqf-border-default);
}

/* Product row header (JS-generated structure) */
.wqf-product-row__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-column: 1 / -1;
  margin-bottom: var(--wqf-space-sm);
}

.wqf-product-row__number {
  font-weight: 600;
  font-size: var(--wqf-font-size-sm);
  color: var(--wqf-neutral-700);
}

.wqf-product-row__fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--wqf-space-md);
  grid-column: 1 / -1;
}

.wqf-product-row--header {
  background-color: transparent;
  border: none;
  padding: 0 var(--wqf-space-md);
  font-size: var(--wqf-font-size-sm);
  font-weight: 500;
  color: var(--wqf-neutral-600);
}

.wqf-product-row__name {
  grid-column: 1;
}

.wqf-product-row__qty {
  width: 80px;
}

.wqf-product-row__color {
  width: 120px;
}

.wqf-product-row__size {
  width: 100px;
}

.wqf-product-row__url {
  width: 180px;
}

.wqf-product-row__actions {
  display: flex;
  align-items: center;
  gap: var(--wqf-space-xs);
}

.wqf-product-row__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--wqf-radius-sm);
  color: var(--wqf-neutral-500);
  cursor: pointer;
  transition: all var(--wqf-transition-fast);
}

.wqf-product-row__remove:hover {
  background-color: var(--wqf-error-light);
  color: var(--wqf-error);
}

.wqf-product-row__remove:focus-visible {
  outline: 2px solid var(--wqf-color-accent);
  outline-offset: 2px;
}

/* Product Row Animations */
.wqf-product-row--entering {
  animation: wqf-slideIn var(--wqf-transition-normal) ease-out;
}

.wqf-product-row--highlight {
  animation: wqf-highlight 1s ease-out;
}

.wqf-product-row--leaving {
  animation: wqf-slideOut var(--wqf-transition-normal) ease-out forwards;
}

@keyframes wqf-slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wqf-highlight {
  0% {
    background-color: var(--wqf-accent-light);
  }
  100% {
    background-color: transparent;
  }
}

@keyframes wqf-slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
    height: 0;
    margin: 0;
    padding: 0;
  }
}

.wqf-add-product {
  display: flex;
  align-items: center;
  gap: var(--wqf-space-sm);
  padding: var(--wqf-space-sm) var(--wqf-space-md);
  background: transparent;
  border: 1px dashed var(--wqf-border-strong);
  border-radius: var(--wqf-radius-md);
  color: var(--wqf-color-accent);
  font-size: var(--wqf-font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--wqf-transition-fast);
  min-height: 44px;
}

.wqf-add-product:hover {
  background-color: var(--wqf-accent-light);
  border-color: var(--wqf-color-accent);
}

.wqf-add-product:focus-visible {
  outline: 2px solid var(--wqf-color-accent);
  outline-offset: 2px;
}

/* -------------------------
   Upload Zone
   ------------------------- */
.wqf-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--wqf-space-md);
  padding: var(--wqf-space-xl);
  min-height: 180px;
  background-color: var(--wqf-surface-muted);
  border: 2px dashed var(--wqf-border-strong);
  border-radius: var(--wqf-radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--wqf-transition-fast);
}

.wqf-upload-zone:hover {
  border-color: var(--wqf-color-accent);
  background-color: var(--wqf-accent-light);
}

.wqf-upload-zone:focus-within {
  outline: 2px solid var(--wqf-color-accent);
  outline-offset: 2px;
}

.wqf-upload-zone--dragover {
  border-style: solid;
  border-color: var(--wqf-color-accent);
  background-color: var(--wqf-accent-light);
}

.wqf-upload-zone--error {
  border-color: var(--wqf-error);
  background-color: var(--wqf-error-light);
}

.wqf-upload-zone__icon {
  width: 48px;
  height: 48px;
  color: var(--wqf-neutral-400);
}

.wqf-upload-zone--dragover .wqf-upload-zone__icon {
  color: var(--wqf-color-accent);
}

.wqf-upload-zone__text {
  font-size: var(--wqf-font-size-sm);
  color: var(--wqf-neutral-600);
}

.wqf-upload-zone__text strong {
  color: var(--wqf-color-accent);
  font-weight: 500;
}

.wqf-upload-zone__hint {
  font-size: var(--wqf-font-size-xs);
  color: var(--wqf-neutral-500);
}

.wqf-upload-zone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* -------------------------
   File List
   ------------------------- */
.wqf-file-list {
  display: flex;
  flex-direction: column;
  gap: var(--wqf-space-sm);
  margin-top: var(--wqf-space-md);
}

.wqf-file-item {
  display: flex;
  align-items: center;
  gap: var(--wqf-space-md);
  padding: var(--wqf-space-sm) var(--wqf-space-md);
  background-color: var(--wqf-surface-muted);
  border-radius: var(--wqf-radius-md);
  border: 1px solid var(--wqf-border-default);
}

.wqf-file-item--uploading {
  background-color: var(--wqf-accent-light);
  border-color: var(--wqf-accent-muted);
}

.wqf-file-item--error {
  background-color: var(--wqf-error-light);
  border-color: var(--wqf-error);
}

.wqf-file-item--removing {
  animation: wqf-fadeOut var(--wqf-transition-normal) ease-out forwards;
}

.wqf-file-item--highlight {
  animation: wqf-file-highlight 1s ease-out;
}

@keyframes wqf-file-highlight {
  0% {
    background-color: var(--wqf-accent-light);
    border-color: var(--wqf-color-accent);
  }
  100% {
    background-color: var(--wqf-surface-muted);
    border-color: var(--wqf-border-default);
  }
}

@keyframes wqf-fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

.wqf-file-item__thumbnail {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--wqf-radius-sm);
  object-fit: cover;
  background-color: var(--wqf-neutral-200);
}

.wqf-file-item__thumbnail--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wqf-neutral-500);
}

.wqf-file-item__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.wqf-file-item__info {
  flex: 1;
  min-width: 0;
}

.wqf-file-item__name {
  font-size: var(--wqf-font-size-sm);
  font-weight: 500;
  color: var(--wqf-neutral-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wqf-file-item__meta {
  display: flex;
  align-items: center;
  gap: var(--wqf-space-sm);
  font-size: var(--wqf-font-size-xs);
  color: var(--wqf-neutral-500);
  margin-top: 2px;
}

.wqf-file-item__error {
  font-size: var(--wqf-font-size-xs);
  color: var(--wqf-error);
  margin-top: 2px;
}

.wqf-file-item__actions {
  display: flex;
  gap: var(--wqf-space-xs);
}

.wqf-file-item__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--wqf-radius-sm);
  color: var(--wqf-neutral-500);
  cursor: pointer;
  transition: all var(--wqf-transition-fast);
}

.wqf-file-item__btn:hover {
  background-color: var(--wqf-neutral-200);
  color: var(--wqf-neutral-700);
}

.wqf-file-item__btn--delete:hover {
  background-color: var(--wqf-error-light);
  color: var(--wqf-error);
}

.wqf-file-item__btn--retry {
  color: var(--wqf-color-accent);
}

.wqf-file-item__btn--retry:hover {
  background-color: var(--wqf-accent-light);
  color: var(--wqf-accent-hover);
}

.wqf-file-item__btn:focus-visible {
  outline: 2px solid var(--wqf-color-accent);
  outline-offset: 2px;
}

/* Incomplete upload state */
.wqf-file-item--incomplete {
  background-color: var(--wqf-warning-light);
  border-color: var(--wqf-warning);
}

.wqf-file-item--incomplete .wqf-file-item__error {
  color: var(--wqf-warning);
}

/* -------------------------
   Progress Bar
   ------------------------- */
.wqf-progress {
  width: 100%;
  height: 6px;
  background-color: var(--wqf-neutral-200);
  border-radius: var(--wqf-radius-full);
  overflow: hidden;
}

.wqf-progress__bar {
  height: 100%;
  background-color: var(--wqf-color-accent);
  border-radius: var(--wqf-radius-full);
  transition: width var(--wqf-transition-normal);
}

.wqf-progress--sm {
  height: 4px;
}

.wqf-progress--success .wqf-progress__bar {
  background-color: var(--wqf-success);
}

.wqf-progress--error .wqf-progress__bar {
  background-color: var(--wqf-error);
}

/* File upload progress in file item */
.wqf-file-item__progress {
  margin-top: var(--wqf-space-xs);
}

/* File item fields (per-file design instructions) */
.wqf-file-item__fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--wqf-space-sm);
  width: 100%;
  margin-top: var(--wqf-space-sm);
  padding-top: var(--wqf-space-sm);
  border-top: 1px solid var(--wqf-border-default);
}

.wqf-file-item__fields .wqf-form-group {
  margin-bottom: 0;
}

.wqf-file-item__fields .wqf-label {
  font-size: var(--wqf-font-size-xs);
  margin-bottom: var(--wqf-space-xs);
}

.wqf-file-item__fields .wqf-input {
  font-size: var(--wqf-font-size-sm);
  padding: var(--wqf-space-xs) var(--wqf-space-sm);
  min-height: 36px;
}

/* File item layout update for fields */
.wqf-file-item {
  flex-wrap: wrap;
}

.wqf-file-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wqf-file-item__name {
  display: block;
}

/* -------------------------
   Toast Notifications
   ------------------------- */
.wqf-toast-container {
  position: fixed;
  bottom: var(--wqf-space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--wqf-z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--wqf-space-sm);
  pointer-events: none;
}

.wqf-toast {
  display: flex;
  align-items: center;
  gap: var(--wqf-space-md);
  padding: var(--wqf-space-md) var(--wqf-space-lg);
  background-color: var(--wqf-neutral-900);
  color: #ffffff;
  border-radius: var(--wqf-radius-md);
  box-shadow: var(--wqf-shadow-lg);
  font-size: var(--wqf-font-size-sm);
  pointer-events: auto;
  animation: wqf-toast-in 0.3s ease;
}

.wqf-toast--success {
  background-color: var(--wqf-success);
}

.wqf-toast--error {
  background-color: var(--wqf-error);
}

.wqf-toast--warning {
  background-color: var(--wqf-warning);
}

/* Ensure hidden attribute is respected on inline toast elements */
.wqf-toast[hidden] {
  display: none;
}

.wqf-toast__message {
  flex: 1;
}

.wqf-toast__action {
  padding: var(--wqf-space-xs) var(--wqf-space-sm);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: var(--wqf-radius-sm);
  color: inherit;
  font-size: var(--wqf-font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--wqf-transition-fast);
}

.wqf-toast__action:hover {
  background: rgba(255, 255, 255, 0.3);
}

.wqf-toast__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--wqf-radius-sm);
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity var(--wqf-transition-fast);
}

.wqf-toast__close:hover {
  opacity: 1;
}

@keyframes wqf-toast-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wqf-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.wqf-toast--exiting {
  animation: wqf-toast-out 0.3s ease forwards;
}

@keyframes wqf-toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}


/* -------------------------
   Expandable Info Panel
   ------------------------- */
.wqf-expandable {
  border: 1px solid var(--wqf-border-default);
  border-radius: var(--wqf-radius-md);
  overflow: hidden;
}

.wqf-expandable__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--wqf-space-md);
  background-color: var(--wqf-surface-muted);
  border: none;
  font-family: inherit;
  font-size: var(--wqf-font-size-sm);
  font-weight: 500;
  color: var(--wqf-neutral-900);
  cursor: pointer;
  text-align: left;
  transition: background-color var(--wqf-transition-fast);
  min-height: 44px;
}

.wqf-expandable__trigger:hover {
  background-color: var(--wqf-neutral-200);
}

.wqf-expandable__trigger:focus-visible {
  outline: 2px solid var(--wqf-color-accent);
  outline-offset: -2px;
}

.wqf-expandable__icon {
  width: 20px;
  height: 20px;
  color: var(--wqf-neutral-500);
  transition: transform var(--wqf-transition-fast);
}

.wqf-expandable--open .wqf-expandable__icon {
  transform: rotate(180deg);
}

.wqf-expandable__content {
  display: none;
  padding: var(--wqf-space-md);
  background-color: #ffffff;
}

.wqf-expandable--open .wqf-expandable__content {
  display: block;
}

/* Info panel specific styling */
.wqf-info-panel {
  background-color: var(--wqf-accent-light);
  border-color: var(--wqf-accent-muted);
}

.wqf-info-panel .wqf-expandable__trigger {
  background-color: transparent;
}

.wqf-info-panel .wqf-expandable__content {
  background-color: transparent;
  font-size: var(--wqf-font-size-sm);
  color: var(--wqf-neutral-700);
}

.wqf-expandable__link {
  margin-top: var(--wqf-space-md);
}

.wqf-expandable__link a {
  display: inline-flex;
  align-items: center;
  gap: var(--wqf-space-xs);
  color: var(--wqf-color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--wqf-transition-fast);
}

.wqf-expandable__link a:hover {
  color: var(--wqf-accent-hover);
  text-decoration: underline;
}

.wqf-expandable__link a:focus-visible {
  outline: 2px solid var(--wqf-color-accent);
  outline-offset: 2px;
}

.wqf-expandable__link svg {
  flex-shrink: 0;
}

/* -------------------------
   Success Confirmation
   ------------------------- */
.wqf-success-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--wqf-space-2xl);
  min-height: 400px;
}

.wqf-success-view[hidden] {
  display: none;
}

.wqf-success-view__icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--wqf-space-lg);
  color: var(--wqf-success);
  animation: wqf-success-bounce 0.5s ease;
}

@keyframes wqf-success-bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.wqf-success-view__title {
  font-size: var(--wqf-font-size-2xl);
  font-weight: 600;
  color: var(--wqf-neutral-900);
  margin: 0 0 var(--wqf-space-sm);
}

.wqf-success-view__message {
  font-size: var(--wqf-font-size-base);
  color: var(--wqf-neutral-600);
  margin: 0 0 var(--wqf-space-sm);
  max-width: 400px;
}

.wqf-success-view__email {
  font-size: var(--wqf-font-size-sm);
  color: var(--wqf-neutral-500);
  margin: 0 0 var(--wqf-space-lg);
}

.wqf-success-view__email strong {
  color: var(--wqf-neutral-700);
}

.wqf-success-view__reference {
  display: inline-block;
  padding: var(--wqf-space-sm) var(--wqf-space-md);
  background-color: var(--wqf-surface-muted);
  border-radius: var(--wqf-radius-md);
  font-size: var(--wqf-font-size-sm);
  color: var(--wqf-neutral-700);
  margin-bottom: var(--wqf-space-lg);
}

.wqf-success-view__reference strong {
  color: var(--wqf-neutral-900);
  font-weight: 600;
}

/* Success state: hide navigation, center success view in viewport */
.wqf-form-wrapper--success .wqf-sidebar,
.wqf-form-wrapper--success .wqf-progress-dots {
  display: none;
}

.wqf-form-wrapper--success .wqf-layout {
  justify-content: center;
}

/* Remove extra progress-dot padding on mobile in success state */
@media (max-width: 768px) {
  .wqf-form-wrapper--success .wqf-layout {
    padding-right: var(--wqf-space-md);
  }
}

@media (max-width: 480px) {
  .wqf-form-wrapper--success .wqf-layout {
    padding-right: var(--wqf-space-sm);
  }
}

.wqf-form-wrapper--success .wqf-main {
  justify-content: center;
  min-height: calc(100vh - 200px);
}

.wqf-form-wrapper--success .wqf-success-view {
  animation: wqf-success-fade-in 0.4s ease;
}

@keyframes wqf-success-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------
   Loading States
   ------------------------- */
.wqf-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--wqf-neutral-200);
  border-top-color: var(--wqf-color-accent);
  border-radius: 50%;
  animation: wqf-spin 0.8s linear infinite;
}

.wqf-spinner--sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.wqf-spinner--lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

@keyframes wqf-spin {
  to {
    transform: rotate(360deg);
  }
}

.wqf-skeleton {
  background: linear-gradient(90deg, var(--wqf-neutral-200) 25%, var(--wqf-neutral-100) 50%, var(--wqf-neutral-200) 75%);
  background-size: 200% 100%;
  animation: wqf-shimmer 1.5s infinite;
  border-radius: var(--wqf-radius-sm);
}

@keyframes wqf-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* -------------------------
   Dividers
   ------------------------- */
.wqf-divider {
  height: 1px;
  background-color: var(--wqf-border-default);
  border: none;
  margin: var(--wqf-space-lg) 0;
}

.wqf-divider--strong {
  background-color: var(--wqf-border-strong);
}

/* -------------------------
   Utility Classes
   ------------------------- */
.wqf-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;
}

.wqf-visually-hidden:not(:focus):not(:active) {
  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 (768-1024px)
   ------------------------- */
@media (max-width: 1024px) {
  .wqf-layout {
    padding: var(--wqf-space-md);
    gap: var(--wqf-space-lg);
  }

  .wqf-sidebar {
    width: 200px;
  }

  .wqf-sidebar__link {
    font-size: var(--wqf-font-size-xs);
    padding: var(--wqf-space-xs) var(--wqf-space-sm);
  }

  .wqf-sidebar__step-number {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .wqf-section {
    padding: var(--wqf-space-md);
  }

  .wqf-form-row--2,
  .wqf-form-row--3 {
    grid-template-columns: 1fr;
  }

  .wqf-product-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .wqf-product-row__name {
    grid-column: 1 / -1;
  }

  .wqf-product-row__actions {
    grid-column: 2;
    justify-self: end;
  }
}

/* -------------------------
   Responsive: Mobile (<=768px)
   ------------------------- */
@media (max-width: 768px) {
  .wqf-layout {
    flex-direction: column;
    padding: var(--wqf-space-md);
    padding-right: calc(var(--wqf-space-md) + 30px); /* Space for progress dots */
  }

  .wqf-sidebar {
    display: none;
  }

  .wqf-progress-dots {
    display: flex;
  }

  .wqf-main {
    width: 100%;
  }

  .wqf-section {
    padding: var(--wqf-space-md);
  }

  .wqf-section__title {
    font-size: var(--wqf-font-size-lg);
  }

  .wqf-form-row--2,
  .wqf-form-row--3,
  .wqf-form-row--auto {
    grid-template-columns: 1fr;
  }

  .wqf-product-row {
    grid-template-columns: 1fr;
    gap: var(--wqf-space-sm);
  }

  .wqf-product-row--header {
    display: none;
  }

  .wqf-product-row__name,
  .wqf-product-row__qty,
  .wqf-product-row__color,
  .wqf-product-row__size,
  .wqf-product-row__url {
    width: 100%;
  }

  .wqf-product-row__actions {
    position: absolute;
    top: var(--wqf-space-sm);
    right: var(--wqf-space-sm);
  }

  .wqf-product-row {
    position: relative;
    padding-right: calc(var(--wqf-space-md) + 40px);
  }

  .wqf-btn-group {
    flex-direction: column;
  }

  .wqf-btn-group--end {
    align-items: stretch;
  }

  .wqf-btn {
    width: 100%;
    justify-content: center;
  }

  .wqf-upload-zone {
    padding: var(--wqf-space-lg);
    min-height: 150px;
  }

  .wqf-file-item {
    flex-wrap: wrap;
  }

  .wqf-file-item__info {
    flex-basis: calc(100% - 64px);
  }

  .wqf-file-item__actions {
    margin-left: auto;
  }

  .wqf-file-item__fields {
    grid-template-columns: 1fr;
  }

  .wqf-toast-container {
    left: var(--wqf-space-md);
    right: var(--wqf-space-md);
    transform: none;
  }

  .wqf-toast {
    flex-wrap: wrap;
  }

  .wqf-success-view {
    padding: var(--wqf-space-lg);
    min-height: 300px;
  }

  .wqf-success-view__icon {
    width: 64px;
    height: 64px;
  }

  .wqf-success-view__title {
    font-size: var(--wqf-font-size-xl);
  }
}

/* -------------------------
   Responsive: Small Mobile (<=480px)
   ------------------------- */
@media (max-width: 480px) {
  .wqf-layout {
    padding: var(--wqf-space-sm);
    padding-right: calc(var(--wqf-space-sm) + 26px);
  }

  .wqf-section {
    padding: var(--wqf-space-sm);
    border-radius: var(--wqf-radius-sm);
  }

  .wqf-section__title {
    font-size: var(--wqf-font-size-base);
  }

  .wqf-section__subtitle,
  .wqf-section__description {
    font-size: var(--wqf-font-size-xs);
  }

  .wqf-label {
    font-size: var(--wqf-font-size-xs);
  }

  .wqf-input {
    font-size: var(--wqf-font-size-sm);
    padding: var(--wqf-space-sm);
  }

  .wqf-btn {
    font-size: var(--wqf-font-size-sm);
    padding: var(--wqf-space-sm) var(--wqf-space-md);
  }

  .wqf-btn--lg {
    padding: var(--wqf-space-sm) var(--wqf-space-lg);
    min-height: 48px;
    font-size: var(--wqf-font-size-base);
  }

  .wqf-progress-dots {
    right: var(--wqf-space-sm);
    padding: var(--wqf-space-xs);
  }

  .wqf-progress-dot {
    width: 8px;
    height: 8px;
  }

  .wqf-upload-zone {
    padding: var(--wqf-space-md);
    min-height: 120px;
  }

  .wqf-upload-zone__icon {
    width: 36px;
    height: 36px;
  }

  .wqf-upload-zone__text {
    font-size: var(--wqf-font-size-xs);
  }

  .wqf-file-item {
    padding: var(--wqf-space-sm);
  }

  .wqf-file-item__thumbnail {
    width: 40px;
    height: 40px;
  }

  .wqf-file-item__name {
    font-size: var(--wqf-font-size-xs);
  }

  .wqf-toast {
    padding: var(--wqf-space-sm) var(--wqf-space-md);
    font-size: var(--wqf-font-size-xs);
  }

  .wqf-success-view__title {
    font-size: var(--wqf-font-size-lg);
  }

  .wqf-success-view__message {
    font-size: var(--wqf-font-size-sm);
  }
}

/* -------------------------
   Accessibility: Reduced Motion
   ------------------------- */
@media (prefers-reduced-motion: reduce) {
  .wqf-form-wrapper *,
  .wqf-form-wrapper *::before,
  .wqf-form-wrapper *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .wqf-spinner {
    animation: none;
    border-top-color: var(--wqf-color-accent);
    opacity: 0.7;
  }

  .wqf-skeleton {
    animation: none;
    background: var(--wqf-neutral-200);
  }

  .wqf-progress__bar {
    transition: none;
  }

  .wqf-toast {
    animation: none;
  }

  .wqf-success-view__icon {
    animation: none;
  }
}

/* -------------------------
   Accessibility: Focus Visible
   ------------------------- */
@supports selector(:focus-visible) {
  .wqf-input:focus:not(:focus-visible),
  .wqf-btn:focus:not(:focus-visible),
  .wqf-sidebar__link:focus:not(:focus-visible),
  .wqf-progress-dot:focus:not(:focus-visible),
  .wqf-expandable__trigger:focus:not(:focus-visible),
  .wqf-file-item__btn:focus:not(:focus-visible),
  .wqf-product-row__remove:focus:not(:focus-visible),
  .wqf-add-product:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
  }
}

/* -------------------------
   High Contrast Mode
   ------------------------- */
@media (prefers-contrast: high) {
  .wqf-form-wrapper {
    --wqf-border-default: var(--wqf-neutral-700);
    --wqf-border-strong: var(--wqf-neutral-900);
  }

  .wqf-input {
    border-width: 2px;
  }

  .wqf-btn {
    border: 2px solid currentColor;
  }

  .wqf-progress {
    border: 1px solid var(--wqf-neutral-700);
  }
}

/* -------------------------
   Utility: Noscript Message
   ------------------------- */
.wqf-noscript {
  padding: var(--wqf-space-xl);
  text-align: center;
  background-color: var(--wqf-warning-light);
  border: 1px solid var(--wqf-warning);
  border-radius: var(--wqf-radius-md);
  color: var(--wqf-warning);
  font-size: var(--wqf-font-size-base);
}

/* -------------------------
   Utility: Honeypot (Hidden)
   ------------------------- */
.wqf-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* -------------------------
   Utility: Draft Loader
   ------------------------- */
.wqf-draft-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: var(--wqf-z-modal);
}

.wqf-draft-loader.visible {
  display: flex;
}

.wqf-draft-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--wqf-space-md);
  font-size: var(--wqf-font-size-base);
  color: var(--wqf-neutral-700);
}

/* -------------------------
   Print Styles
   ------------------------- */
@media print {
  .wqf-sidebar,
  .wqf-progress-dots,
  .wqf-toast-container,
  .wqf-upload-zone,
  .wqf-btn {
    display: none !important;
  }

  .wqf-form-wrapper {
    background: white;
  }

  .wqf-section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .wqf-layout {
    display: block;
    max-width: none;
    padding: 0;
  }

  .wqf-main {
    width: 100%;
  }
}
