/**
 * WLC-5000 QUOTE REQUEST FORM - Widget Styles
 * ============================================
 * Companion styles for the Quote Request Form widget.
 * Uses design tokens from ../tokens.css
 *
 * STRUCTURE:
 * 1. Base / Reset
 * 2. Container & Overlay
 * 3. Slide-Over Panel
 * 4. Header & Progress
 * 5. Form Steps
 * 6. Form Fields
 * 7. Accessory Sections (Skip Logic)
 * 8. Buttons
 * 9. Success State
 * 10. Responsive / Mobile Bottom Sheet
 * 11. Animations
 */

/* ==========================================
   1. BASE / RESET
   ========================================== */

.quote-form-container *,
.quote-form-container *::before,
.quote-form-container *::after {
    box-sizing: border-box;
}

.quote-form-container {
    font-family: var(--font-body, 'Titillium Web', sans-serif);
    font-size: var(--font-size-base, 16px);
    line-height: var(--line-height-normal, 1.5);
    color: var(--color-text-body, #6d6d6d);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   2. CONTAINER & OVERLAY
   ========================================== */

.quote-form-container {
    position: relative;
}

.quote-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow, 0.3s ease),
                visibility var(--transition-slow, 0.3s ease);
    z-index: var(--z-modal, 300);
}

.quote-form-container.quote-form-open .quote-form-overlay {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   3. SLIDE-OVER PANEL
   ========================================== */

.quote-form-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 540px; /* Increased from 500px to prevent label wrapping */
    height: 100%;
    background: var(--color-bg-white, #ffffff);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform var(--transition-slow, 0.3s ease);
    z-index: calc(var(--z-modal, 300) + 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.quote-form-container.quote-form-open .quote-form-panel {
    transform: translateX(0);
}

.quote-form-panel-inner {
    padding: var(--spacing-lg, 32px);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Close button */
.quote-form-close {
    position: absolute;
    top: var(--spacing-md, 24px);
    right: var(--spacing-md, 24px);
    width: 40px;
    height: 40px;
    background: var(--color-bg-light, #f8f8f8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast, 0.1s ease);
    z-index: 10;
}

.quote-form-close:hover {
    background: #e8e8e8;
}

.quote-form-close svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-body, #6d6d6d);
}

/* ==========================================
   4. HEADER & PROGRESS
   ========================================== */

.quote-form-header {
    margin-bottom: var(--spacing-md, 24px);
    padding-right: 48px; /* Space for close button */
}

.quote-form-product-badge {
    display: none;
    font-family: var(--font-heading, 'Teko', sans-serif);
    font-size: var(--font-size-sm, 14px);
    font-weight: var(--font-weight-semibold, 600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-primary, #047cec);
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: var(--spacing-xs, 8px);
}

.quote-form-product-name {
    font-size: var(--font-size-sm, 14px);
    color: var(--color-text-body, #6d6d6d);
    margin: 0 0 var(--spacing-sm, 16px);
    padding-bottom: var(--spacing-sm, 16px);
    border-bottom: 1px solid #e0e0e0;
}

.quote-form-title {
    font-family: var(--font-heading, 'Teko', sans-serif);
    font-size: var(--font-size-3xl, 36px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-text-heading, #202020);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 var(--spacing-xs, 8px);
    line-height: var(--line-height-tight, 1.1);
}

.quote-form-subtitle {
    font-size: var(--font-size-base, 16px);
    color: var(--color-text-muted, #999999);
    margin: 0;
}

/* Progress bar */
.quote-form-progress {
    margin-bottom: var(--spacing-lg, 32px);
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm, 16px);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.progress-connector {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 var(--spacing-xs, 8px);
    margin-top: -20px;
}

.progress-step.completed ~ .progress-connector,
.progress-step.active ~ .progress-connector {
    background: var(--color-primary, #047cec);
}

.progress-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: var(--color-text-body, #6d6d6d);
    font-family: var(--font-heading, 'Teko', sans-serif);
    font-size: var(--font-size-lg, 18px);
    font-weight: var(--font-weight-semibold, 600);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal, 0.2s ease);
}

.progress-step.active .progress-step-number {
    background: var(--color-primary, #047cec);
    color: white;
    box-shadow: 0 0 0 4px rgba(4, 124, 236, 0.2);
}

.progress-step.completed .progress-step-number {
    background: var(--color-primary, #047cec);
    color: white;
}

.progress-step-label {
    font-size: var(--font-size-xs, 12px);
    color: var(--color-text-muted, #999999);
    margin-top: var(--spacing-xs, 8px);
    text-align: center;
}

.progress-step.active .progress-step-label {
    color: var(--color-text-heading, #202020);
    font-weight: var(--font-weight-semibold, 600);
}

/* Progress bar fill */
.progress-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-primary, #047cec);
    transition: width var(--transition-slow, 0.3s ease);
}

/* ==========================================
   5. FORM STEPS
   ========================================== */

.quote-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quote-form-steps {
    flex: 1;
}

.quote-form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.quote-form-step.active {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: var(--spacing-md, 24px);
}

.step-title {
    font-family: var(--font-heading, 'Teko', sans-serif);
    font-size: var(--font-size-xl, 24px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-text-heading, #202020);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 var(--spacing-xs, 8px);
    line-height: var(--line-height-tight, 1.1);
}

.step-description {
    font-size: var(--font-size-sm, 14px);
    color: var(--color-text-muted, #999999);
    margin: 0;
}

.step-content {
    flex: 1;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-lg, 32px);
    padding-top: var(--spacing-md, 24px);
    border-top: 1px solid #e0e0e0;
}

.step-microcopy {
    text-align: center;
    font-size: var(--font-size-xs, 12px);
    color: var(--color-text-muted, #999999);
    margin-top: var(--spacing-sm, 16px);
}

/* ==========================================
   6. FORM FIELDS
   ========================================== */

.form-group {
    margin-bottom: var(--spacing-md, 24px);
}

.form-group.half {
    flex: 1;
    min-width: 0;
}

.field-row {
    display: flex;
    gap: var(--spacing-sm, 16px);
}

.form-label {
    display: block;
    font-size: var(--font-size-xs, 14px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-text-heading, #202020);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs, 8px);
}

.form-label .required {
    color: var(--color-cta-red, #e50000);
    margin-left: 2px;
}

.form-input,
.form-select {
    width: 100%;
    height: var(--form-input-height, 48px);
    padding: var(--form-input-padding, 12px 16px);
    font-family: var(--font-body, 'Titillium Web', sans-serif);
    font-size: var(--form-input-font-size, 16px);
    color: var(--form-input-color, #333333);
    background: var(--form-input-bg, #ffffff);
    border: var(--form-input-border, 1px solid #cccccc);
    border-radius: var(--form-input-radius, 0px);
    transition: border-color var(--transition-fast, 0.1s ease),
                box-shadow var(--transition-fast, 0.1s ease);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary, #047cec);
    box-shadow: 0 0 0 3px rgba(4, 124, 236, 0.1);
}

.form-input::placeholder {
    color: var(--form-input-placeholder, #999999);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.field-help {
    display: block;
    font-size: var(--font-size-xs, 12px);
    color: var(--color-text-muted, #999999);
    margin-top: 6px;
}

.field-error {
    display: block;
    font-size: var(--font-size-xs, 12px);
    color: var(--form-error-color, #e50000);
    margin-top: 6px;
    min-height: 18px;
}

.field-error:empty {
    display: none;
}

/* Submission failure alert (webhook 500 / network error / Make paused) */
.quote-form-error {
    display: none;
    padding: 12px 16px;
    margin: 16px 0;
    background: #fef2f2;
    border: 1px solid var(--form-error-color, #e50000);
    border-radius: var(--border-radius-sm, 4px);
    color: var(--form-error-color, #e50000);
    font-size: var(--font-size-sm, 14px);
    line-height: 1.4;
}

/* Error state */
.form-group.error .form-input,
.form-group.error .form-select {
    border-color: var(--form-error-color, #e50000);
}

.form-group.error .form-input:focus,
.form-group.error .form-select:focus {
    box-shadow: 0 0 0 3px rgba(229, 0, 0, 0.1);
}

/* Checkbox field */
.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs, 8px);
    cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-primary, #047cec);
    flex-shrink: 0;
}

.checkbox-label {
    font-size: var(--font-size-sm, 14px);
    color: var(--color-text-body, #6d6d6d);
    line-height: 1.4;
}

.help-link {
    margin-top: var(--spacing-md, 24px);
    padding-top: var(--spacing-md, 24px);
    border-top: 1px dashed #e0e0e0;
}

/* ==========================================
   7. ACCESSORY SECTIONS (Skip Logic)
   ========================================== */

/* Variation B — each Step 2 section is a bordered white card (required and
   optional alike). Replaces the old flat #f8f8f8 blocks. */
.accessory-section {
    background: var(--color-bg-white, #ffffff);
    border: 1px solid #e0e0e0;
    border-radius: 0;
    margin-bottom: var(--spacing-sm, 16px);
}

.accessory-section:last-child {
    margin-bottom: 0;
}

/* Active optional card (toggled on) gets the brand-blue border. */
.accessory-section.optional-section.section-on {
    border-color: var(--color-primary, #047cec);
}

/* Required-section header — static label inside the card. */
.section-header {
    padding: var(--spacing-sm, 16px) 18px 4px;
}

.section-label {
    font-family: var(--font-heading, 'Teko', sans-serif);
    font-size: var(--font-size-lg, 18px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-text-heading, #202020);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Optional-section header = a full-width button. The checkbox is welded
   immediately left of the section name — never a floating control. */
.section-toggle-btn {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: var(--spacing-sm, 16px) 18px;
    background: var(--color-bg-white, #ffffff);
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body, 'Titillium Web', sans-serif);
}

.accessory-section.section-on .section-toggle-btn {
    background: var(--color-bg-light, #f8f8f8);
}

.section-toggle-btn input[type="checkbox"] {
    width: 19px;
    height: 19px;
    accent-color: var(--color-primary, #047cec);
    margin-top: 1px;
    flex: none;
}

.section-toggle-btn .toggle-copy { flex: 1; }

.section-toggle-btn .toggle-name {
    display: block;
    font-family: var(--font-heading, 'Teko', sans-serif);
    font-size: var(--font-size-lg, 18px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-text-heading, #202020);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
}

.section-toggle-btn .toggle-vp {
    display: block;
    font-size: var(--font-size-xs, 13px);
    color: var(--color-text-body, #6d6d6d);
    margin-top: 3px;
}

.section-toggle-btn .toggle-action {
    margin-left: auto;
    flex: none;
    font-family: var(--font-heading, 'Teko', sans-serif);
    font-size: var(--font-size-sm, 14px);
    font-weight: var(--font-weight-medium, 500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary, #047cec);
    padding-top: 3px;
}

/* Section fields live in the card body. */
.section-fields {
    padding: 0 18px 18px;
    transition: all var(--transition-normal, 0.2s ease);
}

.accessory-section.required-section .section-fields {
    padding-top: 10px;
}

.accessory-section.collapsed .section-fields,
.accessory-section.collapsed .section-recommendation {
    display: none;
}

/* section-description + section-recommendation sit in the card, padded
   to align with the fields. */
.accessory-section .section-description {
    padding: 0 18px;
}

.accessory-section .section-recommendation {
    padding: 0 18px 16px;
}

/* Nested sub-section — e.g. Tank Depth inside the Sensors card. */
.section-subsection {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px dashed #e0e0e0;
}

.section-sub-label {
    font-size: var(--font-size-xs, 13px);
    font-weight: var(--font-weight-bold, 700);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-body, #6d6d6d);
}

.section-sub-help {
    font-size: var(--font-size-xs, 12px);
    color: var(--color-text-muted, #999999);
    margin: 3px 0 10px;
}

/* Section sublabels for grouped fields */
.section-sublabel {
    font-size: var(--font-size-xs, 12px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-text-muted, #999999);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: var(--spacing-sm, 16px) 0 var(--spacing-xs, 8px);
}

.section-sublabel:first-child {
    margin-top: 0;
}

/* Valve recommendation toggle */
.valve-recommendation {
    margin-bottom: var(--spacing-sm, 16px);
    padding-bottom: var(--spacing-sm, 16px);
    border-bottom: 1px dashed #e0e0e0;
}

.valve-recommendation .checkbox-label {
    font-style: italic;
    color: var(--color-primary, #047cec);
}

/* Disabled state for fields when recommendation is checked */
.valve-fields.fields-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.valve-fields.fields-disabled::after {
    content: "We'll recommend the best option based on your configuration";
    display: block;
    text-align: center;
    font-size: var(--font-size-xs, 12px);
    color: var(--color-text-muted, #999999);
    font-style: italic;
    margin-top: var(--spacing-sm, 16px);
    padding: var(--spacing-sm, 16px);
    background: rgba(4, 124, 236, 0.05);
    border-radius: var(--border-radius-sm, 4px);
}

/* Spec fields wrapper */
.spec-fields {
    transition: opacity var(--transition-normal, 0.2s ease);
}

.spec-fields.fields-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.spec-fields.fields-disabled::after {
    content: "Our team will help configure the right system for you";
    display: block;
    text-align: center;
    font-size: var(--font-size-xs, 12px);
    color: var(--color-text-muted, #999999);
    font-style: italic;
    margin-top: var(--spacing-sm, 16px);
    padding: var(--spacing-sm, 16px);
    background: rgba(4, 124, 236, 0.05);
    border-radius: var(--border-radius-sm, 4px);
}

/* Help toggle styling */
.help-toggle {
    margin-top: var(--spacing-md, 24px);
    padding-top: var(--spacing-md, 24px);
    border-top: 1px dashed #e0e0e0;
}

/* .required-section card + header + label rules removed 2026-05-19 —
   all redundant now that .accessory-section provides the card and
   .section-header / .section-label carry the shared treatment. The
   .required-section class is still emitted for any future targeting. */

/* Section recommendation checkbox at bottom */
.section-recommendation {
    margin-top: var(--spacing-sm, 16px);
    padding-top: var(--spacing-sm, 16px);
    border-top: 1px dashed #e0e0e0;
}

.section-recommendation .checkbox-label {
    font-style: italic;
    color: var(--color-primary, #047cec);
}

/* Generic fields-disabled state */
.fields-disabled {
    opacity: 0.5;
    pointer-events: none;
}

#sensors-fields.fields-disabled::after,
#cabinet-fields.fields-disabled::after,
#pumps-fields.fields-disabled::after {
    content: "We'll recommend the best option based on your configuration";
    display: block;
    text-align: center;
    font-size: var(--font-size-xs, 12px);
    color: var(--color-text-muted, #999999);
    font-style: italic;
    margin-top: var(--spacing-sm, 16px);
    padding: var(--spacing-sm, 16px);
    background: rgba(4, 124, 236, 0.05);
    border-radius: var(--border-radius-sm, 4px);
}

/* Individual field disabled state */
.field-disabled {
    opacity: 0.5;
}

.field-disabled .form-select,
.field-disabled .form-input {
    background: #f0f0f0;
    cursor: not-allowed;
}

/* Tank Height / Tank Depth field */
.tank-height-section {
    padding: var(--spacing-sm, 16px) var(--spacing-md, 24px);
}

.tank-height-field {
    max-width: 200px;
}

.input-with-suffix {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs, 8px);
}

.input-with-suffix .form-input {
    flex: 1;
}

.input-suffix {
    font-size: var(--font-size-sm, 14px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-text-muted, #999999);
    white-space: nowrap;
}

/* Step 1 split layout (Controller-FLA variant). Migrated to the same
   bordered, square card component as the Step 2 .accessory-section cards
   (A1 — harmonize all of Step 1). */
.spec-section {
    background: var(--color-bg-white, #ffffff);
    border: 1px solid #e0e0e0;
    border-radius: 0;
    margin-bottom: var(--spacing-sm, 16px);
}

.spec-section .section-header {
    padding: var(--spacing-sm, 16px) 18px 4px;
    margin-bottom: 0;
}

.spec-section .section-header .section-label {
    font-family: var(--font-heading, 'Teko', sans-serif);
    font-size: var(--font-size-lg, 18px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-text-heading, #202020);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Card body — fields padded to align with the bordered edge. */
.spec-section .section-fields,
.spec-section .spec-fields {
    padding: 10px 18px 0;
}

/* Help toggle ("Not Specified") sits inside the card, padded to match. */
.spec-section .help-toggle {
    margin-top: var(--spacing-sm, 16px);
    padding: 0 18px var(--spacing-sm, 16px);
    border-top: none;
}

.skip-hint {
    text-align: center;
    font-size: var(--font-size-sm, 14px);
    color: var(--color-primary, #047cec);
    margin-top: var(--spacing-sm, 16px);
}

/* Notes textarea */
.form-textarea {
    height: auto;
    min-height: 80px;
    resize: vertical;
}

/* Section description text */
.section-description {
    font-size: var(--font-size-sm, 14px);
    color: var(--color-text-muted, #999999);
    margin: 0 0 var(--spacing-sm, 16px);
    font-style: italic;
}

#panelAccessories-fields.fields-disabled::after {
    content: "We'll recommend the best option based on your configuration";
    display: block;
    text-align: center;
    font-size: var(--font-size-xs, 12px);
    color: var(--color-text-muted, #999999);
    font-style: italic;
    margin-top: var(--spacing-sm, 16px);
    padding: var(--spacing-sm, 16px);
    background: rgba(4, 124, 236, 0.05);
    border-radius: var(--border-radius-sm, 4px);
}

/* ==========================================
   8. BUTTONS
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs, 8px);
    font-family: var(--font-heading, 'Teko', sans-serif);
    font-size: var(--font-size-lg, 20px);
    font-weight: var(--font-weight-medium, 500);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 14px 28px 12px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-fast, 0.1s ease);
    line-height: 1;
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* Primary button - Red by default (landing pages) */
.btn-primary {
    background: var(--color-cta-red, #e50000);
    color: white;
}

.btn-primary:hover {
    background: var(--color-cta-red-dark, #cc0000);
}

/* Blue variant for non-landing pages */
.quote-form-container[data-cta-color="blue"] .btn-primary {
    background: var(--color-primary, #047cec);
}

.quote-form-container[data-cta-color="blue"] .btn-primary:hover {
    background: var(--color-primary-dark, #0366c7);
}

/* Secondary button */
.btn-secondary {
    background: transparent;
    color: var(--color-text-body, #777);
    border: 2px solid #ccc;
}

.btn-secondary:hover {
    border-color: #999;
    background: rgba(0, 0, 0, 0.02);
}

/* Submit button */
.btn-submit {
    flex: 1;
    max-width: 280px;
}

/* ==========================================
   9. SUCCESS STATE
   ========================================== */

.quote-form-success {
    text-align: center;
}

.success-content {
    padding: var(--spacing-xl, 48px) var(--spacing-md, 24px);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--color-accent-green, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md, 24px);
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.success-title {
    font-family: var(--font-heading, 'Teko', sans-serif);
    font-size: var(--font-size-2xl, 28px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-text-heading, #202020);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 var(--spacing-sm, 16px);
}

.success-message {
    font-size: var(--font-size-base, 16px);
    color: var(--color-text-body, #6d6d6d);
    max-width: 350px;
    margin: 0 auto var(--spacing-lg, 32px);
}

.success-contact {
    padding-top: var(--spacing-md, 24px);
    border-top: 1px solid #e0e0e0;
}

.success-contact p {
    font-size: var(--font-size-sm, 14px);
    color: var(--color-text-muted, #999999);
    margin: 0 0 var(--spacing-xs, 8px);
}

.success-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs, 8px);
    font-family: var(--font-heading, 'Teko', sans-serif);
    font-size: var(--font-size-xl, 24px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-primary, #047cec);
    text-decoration: none;
}

.success-phone:hover {
    text-decoration: underline;
}

.success-phone svg {
    width: 24px;
    height: 24px;
}

/* ==========================================
   10. CONFIG SUMMARY (Step 3)
   ========================================== */

.config-summary {
    background: var(--color-bg-light, #f8f8f8);
    border: 1px solid #e0e0e0;
    border-radius: 0; /* C4 — square containers to match inputs/buttons/cards */
    padding: var(--spacing-md, 24px);
    margin-bottom: var(--spacing-md, 24px);
}

.summary-title {
    font-family: var(--font-heading, 'Teko', sans-serif);
    font-size: var(--font-size-lg, 18px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-text-heading, #202020);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 var(--spacing-sm, 16px);
}

.summary-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.summary-list li {
    position: relative;
    padding: 6px 0 6px var(--spacing-md, 24px);
    font-size: var(--font-size-sm, 14px);
    color: var(--color-text-body, #6d6d6d);
    border-bottom: 1px solid #e8e8e8;
}

.summary-list li:last-child {
    border-bottom: none;
}

.summary-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-accent-green, #10b981);
    font-weight: bold;
}

/* ==========================================
   11. RESPONSIVE / MOBILE BOTTOM SHEET
   ========================================== */

/* Tablet */
@media (max-width: 992px) {
    .quote-form-panel {
        max-width: 400px;
    }

    .quote-form-panel-inner {
        padding: var(--spacing-md, 24px);
    }
}

/* Mobile - Bottom Sheet */
@media (max-width: 768px) {
    .quote-form-panel {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 85vh;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
    }

    .quote-form-container.quote-form-open .quote-form-panel {
        transform: translateY(0);
    }

    .quote-form-panel-inner {
        padding: var(--spacing-sm, 16px);
        padding-top: var(--spacing-md, 24px);
    }

    .quote-form-close {
        top: var(--spacing-sm, 16px);
        right: var(--spacing-sm, 16px);
        width: 36px;
        height: 36px;
    }

    .quote-form-title {
        font-size: var(--font-size-2xl, 28px);
    }

    .progress-step-label {
        font-size: 10px;
    }

    .progress-step-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .field-row {
        flex-direction: column;
    }

    .form-group.half {
        width: 100%;
    }

    .step-actions {
        flex-direction: column-reverse;
        gap: var(--spacing-sm, 16px);
    }

    .step-actions .btn {
        width: 100%;
    }

    .btn-submit {
        max-width: 100%;
    }

    .accessory-section {
        padding: var(--spacing-sm, 16px);
    }

    .section-fields {
        padding-left: 0;
        margin-top: var(--spacing-sm, 16px);
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .quote-form-panel {
        height: 90vh;
        max-height: 90vh;
    }

    .progress-connector {
        display: none;
    }

    .progress-steps {
        gap: var(--spacing-xs, 8px);
    }
}

/* ==========================================
   12. STANDARD FEATURES & SUMMARY SECTION LABELS
   ========================================== */

/* Section labels in config summary ("Standard Features" / "Your Configuration") */
.summary-list li.summary-section-label {
    font-family: var(--font-heading, 'Teko', sans-serif);
    font-size: var(--font-size-xs, 12px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-text-muted, #999999);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-left: 0;
    padding-top: var(--spacing-sm, 16px);
    padding-bottom: 4px;
    border-bottom: none;
}

.summary-list li.summary-section-label:first-child {
    padding-top: 0;
}

.summary-list li.summary-section-label::before {
    content: none;
}

/* Standard features (lighter styling than user-selected items) */
.summary-list li.standard-feature {
    color: var(--color-text-muted, #999999);
    font-style: italic;
}

.summary-list li.standard-feature::before {
    content: "\2022"; /* bullet instead of checkmark */
    color: var(--color-text-muted, #999999);
    font-weight: normal;
}

/* Tank depth "Not Specified" checkbox */
.tank-depth-not-specified {
    margin-top: var(--spacing-xs, 8px);
}

/* (.step1-panel-accessories CSS removed 2026-05-21 — Nexus Step 1 Panel
   Accessories now renders through the shared .accessory-section card
   component via accessorySection(), so the bespoke block is redundant. A1.) */

/* ==========================================
   13. EMBEDDED MODE
   ========================================== */

.quote-form-embedded {
    background: var(--color-bg-white, #ffffff);
    border-radius: var(--border-radius-md, 8px);
    box-shadow: var(--shadow-md, 0 4px 6px rgba(0,0,0,0.1));
    padding: var(--spacing-lg, 32px);
}

.quote-form-embedded .quote-form-header {
    padding-right: 0;
}

.quote-form-embedded .quote-form-title {
    font-size: var(--font-size-2xl, 28px);
}

/* ==========================================
   14. ANIMATIONS
   ========================================== */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .quote-form-panel,
    .quote-form-overlay,
    .quote-form-step,
    .progress-bar-fill,
    .progress-step-number,
    .section-fields,
    .spec-fields {
        transition: none;
        animation: none;
    }
}
