/**
 * Website Cost Calculator Pro - Premium Styles
 * Modern, beautiful, and responsive design
 */

/* CSS Variables */
:root {
    --wcc-primary: #6366F1;
    --wcc-primary-hover: #4F46E5;
    --wcc-primary-light: #EEF2FF;
    --wcc-secondary: #10B981;
    --wcc-secondary-light: #D1FAE5;
    --wcc-accent: #F59E0B;
    --wcc-accent-light: #FEF3C7;
    --wcc-text: #1F2937;
    --wcc-text-light: #6B7280;
    --wcc-text-lighter: #9CA3AF;
    --wcc-background: #F8FAFC;
    --wcc-card: #FFFFFF;
    --wcc-border: #E5E7EB;
    --wcc-border-light: #F3F4F6;
    --wcc-success: #10B981;
    --wcc-error: #EF4444;
    --wcc-warning: #F59E0B;
    --wcc-gradient-start: #6366F1;
    --wcc-gradient-end: #8B5CF6;
    --wcc-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --wcc-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --wcc-shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --wcc-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --wcc-shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --wcc-radius-sm: 8px;
    --wcc-radius: 12px;
    --wcc-radius-lg: 16px;
    --wcc-radius-xl: 24px;
    --wcc-transition: all 0.15s ease;
    --wcc-transition-slow: all 0.25s ease;
}

/* ========================================
   MOBILE-FIRST RESPONSIVE BASE
   ======================================== */

/* Ensure proper viewport behavior */
.wcc-calculator-pro,
.wcc-calculator-pro *,
.wcc-calculator-pro *::before,
.wcc-calculator-pro *::after {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

/* Wrapper - isolates from theme overflow, ensures full width */
.wcc-calculator-wrapper {
    overflow: visible !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Base Container - NEVER clip content; use overflow visible. Same rounded design on all devices. */
.wcc-calculator-pro {
    font-family: 'Aptos', 'Aptos Display', 'Georgia', 'Times New Roman', serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    background: linear-gradient(135deg, var(--wcc-background) 0%, #EEF2FF 100%);
    border-radius: var(--wcc-radius-xl);
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin: 10px auto;
    box-shadow: var(--wcc-shadow-xl);
    overflow: visible;
    position: relative;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Force Aptos/Georgia font throughout plugin */
.wcc-calculator-pro,
.wcc-calculator-pro *,
.wcc-calculator-pro input,
.wcc-calculator-pro button,
.wcc-calculator-pro select,
.wcc-calculator-pro textarea,
.wcc-calculator-pro table,
.wcc-calculator-pro th,
.wcc-calculator-pro td {
    font-family: 'Aptos', 'Aptos Display', 'Georgia', 'Times New Roman', serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Force rounded borders on all plugin elements */
.wcc-calculator-pro * {
    border-radius: inherit;
}

.wcc-calculator-pro input,
.wcc-calculator-pro textarea,
.wcc-calculator-pro select,
.wcc-calculator-pro button,
.wcc-calculator-pro .wcc-btn,
.wcc-calculator-pro .wcc-modal-content,
.wcc-calculator-pro .wcc-breakdown-table,
.wcc-calculator-pro .wcc-breakdown-table th,
.wcc-calculator-pro .wcc-breakdown-table td {
    border-radius: var(--wcc-radius-sm) !important;
}

/* Tables - ensure cells have rounded corners */
.wcc-breakdown-table {
    border-radius: var(--wcc-radius-sm);
    overflow: hidden;
}

.wcc-breakdown-table th:first-child,
.wcc-breakdown-table td:first-child {
    border-top-left-radius: var(--wcc-radius-sm);
    border-bottom-left-radius: var(--wcc-radius-sm);
}

.wcc-breakdown-table th:last-child,
.wcc-breakdown-table td:last-child {
    border-top-right-radius: var(--wcc-radius-sm);
    border-bottom-right-radius: var(--wcc-radius-sm);
}

/* Steps - never clip; content must always be visible */
.wcc-calculator-pro .wcc-steps-container,
.wcc-calculator-pro .wcc-step,
.wcc-calculator-pro .wcc-step-body,
.wcc-calculator-pro .wcc-step-left {
    overflow: visible !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* Desktop: Limit width but never exceed parent container */
@media (min-width: 769px) {
    .wcc-calculator-pro {
        max-width: min(1100px, 100%);
        margin: 40px auto;
        border-radius: var(--wcc-radius-xl);
    }
}

/* Header - Centered Layout */
.wcc-header {
    padding: 28px clamp(16px, 5vw, 40px);
    background: linear-gradient(135deg, var(--wcc-gradient-start), var(--wcc-gradient-end));
    color: white;
    text-align: center;
}

.wcc-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.wcc-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.wcc-title svg {
    width: 32px;
    height: 32px;
}

.wcc-subtitle {
    margin: 0;
    font-size: 18px;
    opacity: 0.95;
}

.wcc-header-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.wcc-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--wcc-radius-sm);
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--wcc-transition);
}

.wcc-action-btn:hover {
    background: rgba(255,255,255,0.25);
}

.wcc-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Progress Bar */
.wcc-progress-wrapper {
    padding: 24px clamp(12px, 4vw, 40px);
    background: var(--wcc-card);
    border-bottom: 1px solid var(--wcc-border);
}

.wcc-progress-bar {
    height: 6px;
    background: var(--wcc-border);
    border-radius: var(--wcc-radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.wcc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wcc-gradient-start), var(--wcc-gradient-end));
    border-radius: var(--wcc-radius-sm);
    transition: width 0.4s ease;
    width: 0%;
}

.wcc-progress-steps {
    display: flex;
    justify-content: space-between;
}

.wcc-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0.4;
    transition: var(--wcc-transition);
}

.wcc-progress-step.active,
.wcc-progress-step.completed {
    opacity: 1;
}

.wcc-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--wcc-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wcc-text-light);
    transition: var(--wcc-transition);
}

.wcc-step-icon svg {
    width: 20px;
    height: 20px;
}

.wcc-progress-step.active .wcc-step-icon {
    background: linear-gradient(135deg, var(--wcc-gradient-start), var(--wcc-gradient-end));
    color: white;
    box-shadow: 0 0 0 4px var(--wcc-primary-light);
}

.wcc-progress-step.completed .wcc-step-icon {
    background: var(--wcc-secondary);
    color: white;
}

.wcc-step-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--wcc-text-light);
}

.wcc-progress-step.active .wcc-step-label {
    color: var(--wcc-primary);
    font-weight: 600;
}

/* Steps Container */
.wcc-steps-container {
    padding: clamp(16px, 5vw, 40px);
    min-height: 400px;
}

.wcc-step {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}

.wcc-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Header */
.wcc-step-header {
    text-align: center;
    margin-bottom: 40px;
}

.wcc-step-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--wcc-primary-light);
    color: var(--wcc-primary);
    font-size: 15px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
}

.wcc-step-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--wcc-text);
    margin: 0 0 10px;
}

.wcc-step-header p {
    font-size: 16px;
    color: var(--wcc-text-light);
    margin: 0;
}

/* Step body: single column (final amount shown only on summary step) */
.wcc-step-body {
    display: block;
    overflow: visible;
}
.wcc-step-left {
    min-width: 0;
    overflow: visible;
}

/* Section Title */
.wcc-section {
    margin-bottom: 32px;
}

/* Step 2 (Website Type) - allow badge to show; badge is now inside card */
#wcc-step-2 .wcc-step-body,
#wcc-step-2 .wcc-step-left,
#wcc-step-2 .wcc-section:has(.wcc-type-grid),
.wcc-features-grid.wcc-type-grid {
    overflow: visible !important;
}

.wcc-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--wcc-text);
    margin: 0 0 18px;
}

.wcc-section-title svg {
    width: 24px;
    height: 24px;
    color: var(--wcc-primary);
}

/* Industry: readable cards – no clipping, no word-splitting */
#wcc-step-1 .wcc-step-left {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

#wcc-step-1 .wcc-features-grid.wcc-industry-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    min-height: min-content;
}

#wcc-step-1 .wcc-feature-card.wcc-industry-card {
    padding: 18px 20px;
    min-height: 76px;
    min-width: 0;
    max-width: 100%;
    border-radius: var(--wcc-radius);
    box-sizing: border-box;
}

#wcc-step-1 .wcc-feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

#wcc-step-1 .wcc-feature-icon svg {
    width: 20px;
    height: 20px;
}

#wcc-step-1 .wcc-feature-info {
    word-break: normal;
    overflow-wrap: break-word;
    min-width: 0;
    hyphens: none;
}

#wcc-step-1 .wcc-feature-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

#wcc-step-1 .wcc-feature-info p {
    font-size: 13px;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

#wcc-step-1 .wcc-feature-price {
    font-size: 13px;
}

.wcc-check-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--wcc-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: var(--wcc-transition);
}

.wcc-check-indicator svg {
    width: 14px;
    height: 14px;
}

/* All sections use .wcc-feature-card; selected check shown via .wcc-feature-card.selected .wcc-feature-check below */

/* Badge sits inside card so it's never clipped by parent overflow */
.wcc-feature-card.wcc-type-card.recommended {
    padding-top: 22px;
    border-color: var(--wcc-secondary);
}

.wcc-recommended-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    padding: 4px 10px;
    background: var(--wcc-secondary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 12px;
    white-space: nowrap;
    z-index: 1;
}

.wcc-feature-price .wcc-from {
    font-size: 11px;
    color: var(--wcc-text-lighter);
    display: block;
}

.wcc-feature-price .wcc-timeline-modifier.discount {
    color: var(--wcc-secondary);
}

.wcc-feature-price .wcc-timeline-modifier.rush {
    color: var(--wcc-accent);
}

.wcc-feature-price .wcc-timeline-modifier.standard {
    color: var(--wcc-text-light);
}

.wcc-range-price.wcc-included {
    color: var(--wcc-secondary);
}

/* Design & Content now use .wcc-features-grid + .wcc-feature-card (same as Feature section) */

.wcc-feature-price .wcc-included {
    color: var(--wcc-secondary);
}

.wcc-checkbox-visual {
    width: 22px;
    height: 22px;
    border: 2px solid var(--wcc-border);
    border-radius: var(--wcc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--wcc-transition);
    color: white;
    flex-shrink: 0;
}

.wcc-checkbox-visual svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: scale(0);
    transition: var(--wcc-transition);
}

.wcc-content-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wcc-content-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--wcc-text);
}

.wcc-content-desc {
    font-size: 12px;
    color: var(--wcc-text-light);
    line-height: 1.3;
    overflow-wrap: break-word;
}

.wcc-content-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--wcc-primary);
    flex-shrink: 0;
}

.wcc-free {
    color: var(--wcc-secondary);
}

/* Features Section */
.wcc-features-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    min-width: 0;
}

.wcc-select-btn {
    padding: 10px 18px;
    background: var(--wcc-primary);
    color: white;
    border: none;
    border-radius: var(--wcc-radius-sm);
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--wcc-transition);
}

.wcc-select-btn:hover {
    background: var(--wcc-primary-hover);
}

.wcc-select-btn.wcc-outline {
    background: transparent;
    border: 2px solid var(--wcc-border);
    color: var(--wcc-text);
}

.wcc-select-btn.wcc-outline:hover {
    border-color: var(--wcc-text);
}

/* Features Grid - compact single column by default to prevent any cropping */
.wcc-features-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1fr);
    grid-auto-rows: minmax(min-content, auto);
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Step 1 (Industry): full visibility so all blocks and checkmarks are visible */
#wcc-step-1.wcc-step,
#wcc-step-1 .wcc-step-body,
#wcc-step-1 .wcc-step-left,
#wcc-step-1 .wcc-features-grid {
    overflow: visible !important;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

/* Step 4: features + ecommerce - full visibility, no clipping */
#wcc-step-4.wcc-step,
#wcc-step-4 .wcc-step-body,
#wcc-step-4 .wcc-step-left,
#wcc-step-4 .wcc-section,
#wcc-step-4 .wcc-ecommerce-section {
    overflow: visible !important;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

/* Step 5 (Extras/Timeline/Hosting/Maintenance): full visibility so every block is visible to the user */
#wcc-step-5.wcc-step,
#wcc-step-5 .wcc-step-body,
#wcc-step-5 .wcc-step-left,
#wcc-step-5 .wcc-extras-layout,
#wcc-step-5 .wcc-section,
#wcc-step-5 .wcc-features-grid {
    overflow: visible !important;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

#wcc-step-5 .wcc-extras-layout .wcc-section {
    flex-shrink: 0;
    min-height: min-content;
}

#wcc-step-4 .wcc-step-left {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* Prevent feature grid from being shrunk by flex (stops cards being cut off) */
#wcc-step-4 .wcc-step-left > .wcc-features-grid,
#wcc-step-4 .wcc-step-left > .wcc-ecommerce-section {
    flex-shrink: 0;
    min-height: min-content;
}
/* Reduce step 4 padding to maximize content area */
.wcc-calculator-pro.wcc-step-4-active .wcc-steps-container,
.wcc-calculator-pro:has(#wcc-step-4.active) .wcc-steps-container {
    padding-left: clamp(12px, 3vw, 24px);
    padding-right: clamp(12px, 3vw, 24px);
}
#wcc-step-4 .wcc-features-grid,
#wcc-step-4 .wcc-ecommerce-section .wcc-features-grid {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* E-commerce section */
.wcc-ecommerce-section {
    margin-top: 8px;
}
.wcc-ecommerce-section .wcc-features-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1fr);
    grid-auto-rows: minmax(min-content, auto);
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

/* 2 columns only on wider screens (min 900px) */
@media (min-width: 900px) {
    .wcc-features-grid,
    .wcc-ecommerce-section .wcc-features-grid,
    .wcc-design-options,
    .wcc-extras-grid {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
        gap: 10px;
    }
}

/* 3 columns only on very wide screens (min 1200px) */
@media (min-width: 1200px) {
    .wcc-features-grid,
    .wcc-ecommerce-section .wcc-features-grid,
    .wcc-design-options,
    .wcc-extras-grid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        gap: 12px;
    }
}

/* Compact feature card - smaller to prevent cropping */
.wcc-feature-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    min-height: 56px;
    min-width: 0;
    max-width: 100%;
    background: var(--wcc-card);
    border: 2px solid var(--wcc-border);
    border-radius: var(--wcc-radius-sm);
    cursor: pointer;
    transition: var(--wcc-transition);
    box-sizing: border-box;
    overflow: visible;
}

.wcc-feature-card:hover {
    border-color: var(--wcc-primary);
}

.wcc-feature-card.selected {
    border-color: var(--wcc-primary);
    background: var(--wcc-primary-light);
}

.wcc-feature-card.popular {
    border-color: var(--wcc-accent);
}

.wcc-popular-tag {
    position: absolute;
    top: -4px;
    right: 8px;
    padding: 2px 5px;
    background: var(--wcc-accent);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
}

.wcc-feature-card input {
    position: absolute;
    opacity: 0;
}

.wcc-feature-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--wcc-primary-light);
    border-radius: var(--wcc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wcc-primary);
    flex-shrink: 0;
}

.wcc-feature-icon svg {
    width: 16px;
    height: 16px;
}

.wcc-feature-info {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.wcc-feature-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--wcc-text);
    margin: 0 0 1px;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.wcc-feature-info p {
    font-size: 12px;
    color: var(--wcc-text-light);
    margin: 0;
    line-height: 1.3;
    overflow-wrap: break-word;
    display: block;
    min-height: 1.3em;
}

.wcc-feature-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--wcc-primary);
    flex-shrink: 0;
}

.wcc-feature-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: var(--wcc-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: var(--wcc-transition);
}

.wcc-feature-check svg {
    width: 10px;
    height: 10px;
}

.wcc-feature-card.selected .wcc-feature-check {
    opacity: 1;
    transform: scale(1);
}

/* Extras Layout - all 4 blocks stacked one after the other (1, then 2, then 3, then 4) */
.wcc-extras-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}

/* Extras, Timeline, Hosting, Maintenance use .wcc-features-grid + .wcc-feature-card */

.wcc-feature-card.wcc-timeline-option.recommended {
    border-color: var(--wcc-secondary);
}

.wcc-feature-price .wcc-timeline-modifier {
    font-size: 13px;
    font-weight: 600;
}

/* Summary Layout */
.wcc-summary-layout {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 380px);
    gap: 32px;
}

@media (max-width: 1024px) {
    .wcc-summary-layout {
        grid-template-columns: 1fr;
    }
}

/* Price Comparison */
.wcc-price-comparison {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.wcc-price-tier {
    position: relative;
    padding: 24px;
    background: var(--wcc-card);
    border: 2px solid var(--wcc-border);
    border-radius: var(--wcc-radius);
    text-align: center;
}

.wcc-price-tier.active {
    border-color: var(--wcc-primary);
    background: var(--wcc-primary-light);
}

.wcc-tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    background: var(--wcc-primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

.wcc-tier-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.wcc-tier-label {
    font-size: 17px;
    font-weight: 600;
    color: var(--wcc-text-light);
}

.wcc-tier-header svg {
    width: 16px;
    height: 16px;
    color: var(--wcc-text-lighter);
}

.wcc-tier-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--wcc-text);
    margin-bottom: 4px;
    font-family: 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.wcc-tier-standard .wcc-tier-price {
    color: var(--wcc-primary);
    font-size: 44px;
    text-shadow: 0 2px 4px rgba(99, 102, 241, 0.15);
}

.wcc-tier-desc {
    font-size: 16px;
    color: var(--wcc-text-light);
    margin: 0;
}

/* Breakdown Section */
.wcc-breakdown-section {
    background: var(--wcc-card);
    border-radius: var(--wcc-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--wcc-shadow-sm);
}

.wcc-breakdown-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--wcc-text);
    margin: 0 0 20px;
}

.wcc-breakdown-section svg {
    width: 20px;
    height: 20px;
    color: var(--wcc-primary);
}

.wcc-chart-container {
    height: 220px;
}

/* Detailed Summary */
.wcc-detailed-summary {
    background: var(--wcc-card);
    border-radius: var(--wcc-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--wcc-shadow-sm);
}

.wcc-detailed-summary h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--wcc-text);
    margin: 0 0 16px;
}

.wcc-summary-items {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.wcc-summary-group {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--wcc-border);
}

.wcc-summary-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.wcc-summary-group-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--wcc-text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}

.wcc-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.wcc-item-name {
    font-size: 18px;
    color: var(--wcc-text);
}

.wcc-item-price {
    font-size: 18px;
    font-weight: 500;
    color: var(--wcc-text);
}

/* Summary Totals */
.wcc-summary-totals {
    border-top: 2px solid var(--wcc-border);
    padding-top: 16px;
    margin-top: 16px;
}

.wcc-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 18px;
    color: var(--wcc-text-light);
}

.wcc-total-row.wcc-grand-total {
    font-size: 24px;
    font-weight: 700;
    color: var(--wcc-text);
    padding: 16px 0 8px;
    border-top: 2px solid var(--wcc-primary);
    margin-top: 8px;
}

.wcc-total-row.wcc-grand-total span:last-child {
    color: var(--wcc-primary);
    font-size: 28px;
    font-family: 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.5px;
}

.wcc-total-row.wcc-monthly {
    font-size: 18px;
    color: var(--wcc-secondary);
}

/* Cost Breakdown by Category - Professional Design */
.wcc-cost-breakdown-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.wcc-cost-breakdown-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 28px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.wcc-cost-breakdown-section h3 svg {
    width: 24px;
    height: 24px;
    color: var(--wcc-primary);
    stroke-width: 2.5;
}

.wcc-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.wcc-breakdown-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.wcc-breakdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wcc-primary), var(--wcc-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wcc-breakdown-item:hover {
    border-color: var(--wcc-primary);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.15), 0 4px 6px -2px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.wcc-breakdown-item:hover::before {
    opacity: 1;
}

.wcc-breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wcc-breakdown-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--wcc-primary) 0%, var(--wcc-secondary) 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    flex-shrink: 0;
}

.wcc-breakdown-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.wcc-breakdown-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wcc-breakdown-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.3px;
}

.wcc-breakdown-desc {
    font-size: 17px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

.wcc-breakdown-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--wcc-primary);
    font-family: 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.5px;
    margin-top: 4px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.wcc-breakdown-price .wcc-per-month {
    font-size: 18px;
    font-weight: 600;
    color: #64748b;
    margin-left: 0;
}

/* Empty state styling - when value is $0 */
.wcc-breakdown-item.wcc-breakdown-empty {
    opacity: 0.65;
    background: #f8fafc;
}

.wcc-breakdown-item.wcc-breakdown-empty .wcc-breakdown-icon {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.wcc-breakdown-item.wcc-breakdown-empty .wcc-breakdown-price {
    color: #94a3b8;
    font-weight: 600;
}

.wcc-breakdown-item.wcc-breakdown-empty:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wcc-cost-breakdown-section {
        padding: 24px 20px;
    }
    
    .wcc-breakdown-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .wcc-breakdown-item {
        padding: 18px;
    }
    
    .wcc-breakdown-price {
        font-size: 22px;
    }
    
    /* Summary items - remove scrollbar on tablet/mobile */
    .wcc-summary-items {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
    
    /* Detailed summary padding */
    .wcc-detailed-summary {
        padding: 20px;
    }
}

/* PDF Email Modal */
.wcc-pdf-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.wcc-pdf-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--wcc-primary), var(--wcc-secondary));
    border-radius: 50%;
    color: white;
}

.wcc-pdf-icon svg {
    width: 32px;
    height: 32px;
}

.wcc-pdf-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--wcc-text);
    margin: 0 0 8px 0;
}

.wcc-pdf-modal-header p {
    font-size: 14px;
    color: var(--wcc-text-light);
    margin: 0;
}

/* Same spacing for all email-gate modals (Download PDF, Share, Print) */
.wcc-email-gate-form {
    margin-top: 24px;
}

.wcc-email-gate-form .wcc-form-field {
    margin-bottom: 20px;
}

.wcc-email-gate-form .wcc-btn-block,
#wcc-pdf-email-form #wcc-pdf-submit-btn,
#wcc-lead-email-form #wcc-lead-submit-btn {
    margin-top: 28px;
}

.wcc-email-gate-form .wcc-form-note {
    margin-top: 12px;
}

/* Modal body (e.g. Share link + buttons) – same spacing as form below header */
.wcc-modal-body {
    margin-top: 24px;
}

.wcc-btn-block {
    width: 100%;
}

/* Summary Actions */
.wcc-summary-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wcc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--wcc-radius-sm);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--wcc-transition);
    border: none;
}

.wcc-btn svg {
    width: 16px;
    height: 16px;
}

.wcc-btn-primary {
    background: var(--wcc-primary);
    color: white;
}

.wcc-btn-primary:hover {
    background: var(--wcc-primary-hover);
}

.wcc-btn-outline {
    background: var(--wcc-card);
    color: var(--wcc-text);
    border: 2px solid var(--wcc-border);
}

.wcc-btn-outline:hover {
    border-color: var(--wcc-primary);
    color: var(--wcc-primary);
}

/* Contact Card */
.wcc-contact-card {
    background: var(--wcc-card);
    border-radius: var(--wcc-radius);
    padding: 28px;
    box-shadow: var(--wcc-shadow-md);
    position: sticky;
    top: 20px;
}

.wcc-contact-header {
    text-align: center;
    margin-bottom: 24px;
}

.wcc-contact-header svg {
    width: 40px;
    height: 40px;
    color: var(--wcc-primary);
    margin-bottom: 12px;
}

.wcc-contact-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--wcc-text);
    margin: 0 0 6px;
}

.wcc-contact-header p {
    font-size: 14px;
    color: var(--wcc-text-light);
    margin: 0;
}

/* Contact Form */
.wcc-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wcc-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wcc-form-field label {
    font-size: 17px;
    font-weight: 500;
    color: var(--wcc-text);
}

.wcc-form-field label .required {
    color: var(--wcc-error);
}

.wcc-input-wrapper {
    position: relative;
    display: block;
}

.wcc-input-wrapper svg,
.wcc-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--wcc-text-lighter);
    pointer-events: none;
    z-index: 1;
}

.wcc-form-field input,
.wcc-form-field textarea,
.wcc-form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--wcc-border);
    border-radius: var(--wcc-radius-sm);
    font-size: 18px;
    color: var(--wcc-text);
    transition: var(--wcc-transition);
    font-family: inherit;
    background: white;
}

.wcc-input-wrapper input,
.wcc-input-wrapper textarea,
.wcc-input-wrapper select {
    padding-left: 44px !important;
}

.wcc-form-field input:focus,
.wcc-form-field textarea:focus {
    outline: none;
    border-color: var(--wcc-primary);
    box-shadow: 0 0 0 3px var(--wcc-primary-light);
}

/* Placeholder styling */
.wcc-form-field input::placeholder,
.wcc-form-field textarea::placeholder {
    color: var(--wcc-text-lighter);
    opacity: 0.7;
    font-style: normal;
}

.wcc-form-field input::-webkit-input-placeholder,
.wcc-form-field textarea::-webkit-input-placeholder {
    color: var(--wcc-text-lighter);
    opacity: 0.7;
}

.wcc-form-field input::-moz-placeholder,
.wcc-form-field textarea::-moz-placeholder {
    color: var(--wcc-text-lighter);
    opacity: 0.7;
}

.wcc-form-field input:-ms-input-placeholder,
.wcc-form-field textarea:-ms-input-placeholder {
    color: var(--wcc-text-lighter);
    opacity: 0.7;
}

.wcc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Submit Button */
.wcc-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--wcc-gradient-start), var(--wcc-gradient-end));
    color: white;
    border: none;
    border-radius: var(--wcc-radius-sm);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wcc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wcc-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--wcc-shadow-md);
}

.wcc-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wcc-btn-text svg {
    width: 18px;
    height: 18px;
}

.wcc-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.wcc-form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--wcc-text-lighter);
    margin: 0;
}

.wcc-form-note svg {
    width: 14px;
    height: 14px;
}

/* Form Success */
.wcc-form-success {
    text-align: center;
    padding: 20px;
}

.wcc-success-animation {
    margin-bottom: 20px;
}

.wcc-checkmark {
    width: 80px;
    height: 80px;
}

.wcc-checkmark-circle {
    stroke: var(--wcc-secondary);
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.wcc-checkmark-check {
    stroke: var(--wcc-secondary);
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

.wcc-form-success h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--wcc-text);
    margin: 0 0 8px;
}

.wcc-form-success p {
    font-size: 14px;
    color: var(--wcc-text-light);
    margin: 0 0 20px;
}

.wcc-success-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wcc-success-buttons .wcc-btn {
    width: 100%;
    justify-content: center;
}

/* Navigation */
.wcc-navigation {
    display: flex;
    justify-content: space-between;
    padding: 24px clamp(12px, 4vw, 40px);
    background: var(--wcc-card);
    border-top: 1px solid var(--wcc-border);
}

.wcc-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--wcc-radius-sm);
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wcc-transition);
}

.wcc-nav-btn svg {
    width: 20px;
    height: 20px;
}

.wcc-prev-btn {
    background: var(--wcc-card);
    color: var(--wcc-text);
    border: 2px solid var(--wcc-border);
}

.wcc-prev-btn:hover {
    border-color: var(--wcc-text);
}

.wcc-next-btn {
    background: linear-gradient(135deg, var(--wcc-gradient-start), var(--wcc-gradient-end));
    color: white;
    border: none;
    margin-left: auto;
}

.wcc-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--wcc-shadow);
}

/* Estimated Total - Professional compact summary (replaces loud $ button) */
.wcc-estimate-summary {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 999;
    animation: slideIn 0.4s ease;
    cursor: pointer;
    user-select: none;
    background: var(--wcc-card);
    border: 1px solid var(--wcc-border);
    border-radius: var(--wcc-radius);
    box-shadow: var(--wcc-shadow-md);
    transition: var(--wcc-transition);
    min-width: 140px;
}

.wcc-estimate-summary:hover {
    box-shadow: var(--wcc-shadow-lg);
    border-color: var(--wcc-primary);
}

.wcc-estimate-summary-inner {
    padding: 14px 18px;
}

.wcc-estimate-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wcc-text-light);
    margin-bottom: 4px;
}

.wcc-estimate-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--wcc-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.wcc-estimate-amount.price-updated {
    animation: pricePulse 0.3s ease;
}

@keyframes pricePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.wcc-estimate-monthly {
    font-size: 12px;
    color: var(--wcc-text-light);
    margin-top: 4px;
}

.wcc-estimate-details {
    padding: 0 18px 14px;
    border-top: 1px solid var(--wcc-border-light);
    margin-top: 0;
    padding-top: 12px;
}

.wcc-estimate-summary.expanded .wcc-estimate-details {
    display: block !important;
}

.wcc-estimate-details-original {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.wcc-estimate-details .wcc-original-label {
    font-size: 11px;
    color: var(--wcc-text-lighter);
}

.wcc-estimate-details .wcc-original-amount {
    font-size: 13px;
    text-decoration: line-through;
    color: var(--wcc-text-lighter);
}

.wcc-estimate-details-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--wcc-primary);
}

.wcc-estimate-details-discount {
    font-size: 12px;
    color: var(--wcc-secondary);
    margin-top: 4px;
}

/* Validation error popup modal - visually appealing */
.wcc-validation-modal .wcc-modal-content {
    max-width: 420px;
    text-align: center;
    padding: 36px 32px;
}

.wcc-validation-popup-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #DC2626;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.2);
}

.wcc-validation-popup-icon svg {
    width: 36px;
    height: 36px;
}

.wcc-validation-popup-title {
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 12px;
}

.wcc-validation-popup-message {
    font-size: 17px;
    color: #6B7280;
    line-height: 1.5;
    margin: 0 0 24px;
}

.wcc-validation-popup-btn {
    min-width: 160px;
    padding: 14px 28px;
    font-size: 17px;
}

.wcc-validation-modal .wcc-modal-content {
    animation: wccValidationPopIn 0.3s ease;
}

@keyframes wccValidationPopIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Inline error - always visible in step when validation fails */
/* Minimal inline error below step header (no toast) */
.wcc-inline-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    background: rgba(254, 226, 226, 0.6);
    color: #B91C1C;
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: var(--wcc-radius-sm);
    font-weight: 500;
    font-size: 14px;
}

.wcc-inline-error svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.9;
}

/* Minimal error highlight on the options grid - no padding to avoid layout shift */
.wcc-options-error {
    border-radius: var(--wcc-radius-sm);
    background: rgba(254, 226, 226, 0.15);
    box-shadow: inset 0 0 0 2px rgba(220, 38, 38, 0.4);
    position: relative;
}

.wcc-options-error .wcc-feature-card {
    border-color: rgba(220, 38, 38, 0.4);
}

.admin-bar .wcc-estimate-summary {
    top: 132px;
}
@media screen and (max-width: 782px) {
    .admin-bar .wcc-estimate-summary {
        top: 146px;
    }
}

@keyframes pulse {
    50% { transform: scale(1.05); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Adjust for WordPress admin bar when logged in */
.admin-bar .wcc-floating-widget {
    top: 132px;
}

@media screen and (max-width: 782px) {
    .admin-bar .wcc-floating-widget {
        top: 146px;
    }
}

/* Notifications */
.wcc-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--wcc-radius-sm);
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 500;
}

.wcc-notification:not(.wcc-notification-toast) {
    animation: fadeSlideIn 0.3s ease;
}

.wcc-notification svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Error as toast - fixed at top, high z-index so it always appears */
.wcc-notification-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    margin: 0;
    max-width: calc(100% - 32px);
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: toastFadeIn 0.3s ease forwards;
}

@keyframes toastFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.wcc-notification-error {
    background: #FEE2E2;
    color: #B91C1C;
    border: 2px solid #DC2626;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.2);
}

.wcc-notification-success {
    background: var(--wcc-secondary-light);
    color: var(--wcc-secondary);
}

.wcc-notification-info {
    background: var(--wcc-primary-light);
    color: var(--wcc-primary);
}

/* Modals */
.wcc-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--wcc-transition);
}

.wcc-modal.active {
    opacity: 1;
    visibility: visible;
}

.wcc-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.wcc-modal-content {
    position: relative;
    background: white;
    padding: 32px;
    border-radius: var(--wcc-radius-lg);
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: var(--wcc-shadow-xl);
    transform: scale(0.9);
    transition: var(--wcc-transition);
}

.wcc-modal.active .wcc-modal-content {
    transform: scale(1);
}

.wcc-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: #f3f4f6;
    z-index: 10;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--wcc-text-light);
    transition: var(--wcc-transition);
}

.wcc-modal-close:hover {
    background: #e5e7eb;
    color: var(--wcc-text);
}

.wcc-modal-close:focus {
    outline: 2px solid var(--wcc-primary);
    outline-offset: 2px;
}

.wcc-modal-close svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.wcc-modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--wcc-text);
    margin: 0 0 8px;
}

.wcc-modal-content p {
    font-size: 14px;
    color: var(--wcc-text-light);
    margin: 0 0 20px;
}

.wcc-quote-code {
    font-family: monospace;
    font-size: 28px;
    font-weight: 700;
    color: var(--wcc-primary);
    background: var(--wcc-primary-light);
    padding: 16px;
    border-radius: var(--wcc-radius-sm);
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.wcc-share-link {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.wcc-share-link input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--wcc-border);
    border-radius: var(--wcc-radius-sm);
    font-size: 13px;
}

.wcc-share-link button {
    padding: 12px;
    background: var(--wcc-primary);
    color: white;
    border: none;
    border-radius: var(--wcc-radius-sm);
    cursor: pointer;
}

.wcc-share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.wcc-share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--wcc-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--wcc-transition);
}

.wcc-share-email {
    background: var(--wcc-text);
    color: white;
}

.wcc-share-twitter {
    background: #1DA1F2;
    color: white;
}

.wcc-share-linkedin {
    background: #0A66C2;
    color: white;
}

.wcc-share-btn svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   RESPONSIVE DESIGN - All Devices
   ======================================== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .wcc-calculator-pro {
        max-width: 1200px;
        margin: 40px auto;
    }
    
    .wcc-industry-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .wcc-type-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Features: keep 2 cols to avoid cards cutting */
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) {
    .wcc-calculator-pro {
        max-width: 1100px;
        margin: 30px auto;
    }
    
    .wcc-industry-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    /* Features & ecommerce: 2 cols so cards never cut */
}

/* Features & ecommerce: always 2 cols to prevent cards cutting (3/4 cols removed) */

/* Small Desktop / Large Tablet (1024px - 1199px) */
@media (max-width: 1199px) {
    .wcc-calculator-pro {
        margin: 24px;
    }
    
    .wcc-industry-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .wcc-type-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Features, Design, Extras: 1 column to prevent crop on medium screens */
    .wcc-features-grid,
    .wcc-ecommerce-section .wcc-features-grid,
    .wcc-design-options,
    .wcc-extras-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    
    .wcc-summary-layout {
        grid-template-columns: 1fr;
    }
    
    .wcc-extras-layout {
        grid-template-columns: 1fr;
    }
    
    .wcc-price-comparison {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1023px) {
    .wcc-calculator-pro {
        margin: 20px;
        border-radius: var(--wcc-radius-lg);
    }
    
    .wcc-header {
        padding: 24px 20px;
    }
    
    .wcc-title {
        font-size: 22px;
    }
    
    .wcc-header-actions {
        flex-direction: row;
        gap: 10px;
    }
    
    .wcc-action-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .wcc-steps-container {
        padding: 28px 24px;
    }
    
    .wcc-step-header h2 {
        font-size: 24px;
    }
    
    .wcc-industry-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 12px;
    }
    
    .wcc-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .wcc-features-grid,
    .wcc-ecommerce-section .wcc-features-grid,
    .wcc-design-options,
    .wcc-extras-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    
    .wcc-design-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wcc-floating-widget {
        right: 20px;
    }
    
    .wcc-widget-expanded {
        min-width: 180px;
    }
}

/* Tablet Portrait (768px - 1023px) - same rounded design as big screen */
@media (max-width: 768px) {
    .wcc-calculator-pro {
        margin: 16px;
        border-radius: var(--wcc-radius-xl);
    }
    
    .wcc-header {
        padding: 20px 16px;
    }
    
    .wcc-title {
        font-size: 20px;
        gap: 8px;
    }
    
    .wcc-title svg {
        width: 24px;
        height: 24px;
    }
    
    .wcc-subtitle {
        font-size: 13px;
    }
    
    .wcc-header-actions {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
    
    .wcc-action-btn {
        flex: 1;
        max-width: 150px;
    }
    
    .wcc-progress-wrapper {
        padding: 16px 20px;
    }
    
    .wcc-progress-steps {
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .wcc-progress-step {
        flex-shrink: 0;
        min-width: 40px;
    }
    
    .wcc-step-label {
        display: none;
    }
    
    .wcc-step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .wcc-progress-line {
        width: 20px;
    }
    
    .wcc-steps-container {
        padding: 24px 16px;
    }
    
    .wcc-step-header {
        margin-bottom: 24px;
    }
    
    .wcc-step-header h2 {
        font-size: 20px;
    }
    
    .wcc-step-header p {
        font-size: 14px;
    }
    
    .wcc-industry-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 12px;
    }
    
    .wcc-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .wcc-industry-card,
    .wcc-type-card {
        padding: 16px 12px;
    }
    
    .wcc-industry-icon,
    .wcc-type-icon {
        width: 40px;
        height: 40px;
    }
    
    .wcc-industry-icon svg,
    .wcc-type-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .wcc-industry-name,
    .wcc-type-name {
        font-size: 13px;
    }
    
    .wcc-industry-desc {
        font-size: 11px;
    }
    
    .wcc-type-price {
        font-size: 14px;
    }
    
    .wcc-features-grid,
    .wcc-ecommerce-section .wcc-features-grid,
    .wcc-design-options,
    .wcc-extras-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    
    .wcc-feature-card {
        padding: 10px 12px;
        min-height: 56px;
    }
    
    .wcc-feature-info h4 {
        font-size: 15px;
    }
    
    .wcc-feature-info p {
        font-size: 13px;
    }
    
    .wcc-design-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    
    
    .wcc-price-comparison {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .wcc-price-card {
        padding: 20px 16px;
    }
    
    .wcc-price-card.featured {
        transform: none;
        margin: 0;
    }
    
    .wcc-price-amount {
        font-size: 32px;
    }
    
    .wcc-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .wcc-navigation {
        padding: 16px;
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .wcc-nav-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .wcc-next-btn {
        margin-left: 0;
    }
    
    .wcc-floating-widget {
        top: auto;
        bottom: 20px;
        right: 16px;
        left: 16px;
    }
    
    .wcc-widget-collapsed {
        justify-content: center;
    }
    
    .wcc-widget-expanded {
        min-width: auto;
    }
    
    .wcc-summary-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .wcc-summary-actions .wcc-btn {
        width: 100%;
        justify-content: center;
    }
    
    .wcc-contact-card {
        position: static;
        margin-top: 20px;
    }
    
    .wcc-modal-content {
        width: 95%;
        padding: 24px 20px;
        margin: 20px;
    }
    
    .wcc-quote-code {
        font-size: 22px;
    }
    
    .wcc-breakdown-table td,
    .wcc-breakdown-table th {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .wcc-extras-layout {
        grid-template-columns: 1fr;
    }
    
    .wcc-extras-grid {
        grid-template-columns: 1fr;
    }
}

/* Large Mobile (480px - 767px) - same rounded design as big screen */
@media (max-width: 640px) {
    .wcc-calculator-pro {
        margin: 12px;
        border-radius: var(--wcc-radius-xl);
    }
    
    .wcc-header {
        padding: 16px 14px;
    }
    
    .wcc-title {
        font-size: 18px;
    }
    
    .wcc-header-actions {
        gap: 8px;
    }
    
    .wcc-action-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .wcc-action-btn span {
        display: none;
    }
    
    .wcc-action-btn svg {
        margin: 0;
    }
    
    .wcc-steps-container {
        padding: 20px 14px;
    }
    
    .wcc-step-header h2 {
        font-size: 18px;
    }
    
    .wcc-step-header p {
        font-size: 13px;
    }
    
    .wcc-industry-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 8px;
    }
    
    .wcc-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .wcc-industry-card,
    .wcc-type-card {
        padding: 14px 10px;
    }
    
    .wcc-industry-icon,
    .wcc-type-icon {
        width: 36px;
        height: 36px;
    }
    
    .wcc-industry-name,
    .wcc-type-name {
        font-size: 12px;
    }
    
    .wcc-popular-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .wcc-feature-card {
        padding: 12px 14px;
    }
    
    .wcc-feature-checkbox {
        width: 20px;
        height: 20px;
    }
    
    .wcc-feature-price {
        font-size: 13px;
    }
    
    .wcc-features-toolbar {
        flex-direction: column;
        gap: 8px;
    }
    
    .wcc-features-actions {
        width: 100%;
        justify-content: center;
    }
    
    .wcc-features-actions button {
        flex: 1;
    }
    
    .wcc-navigation {
        padding: 14px;
    }
    
    .wcc-nav-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .wcc-floating-widget {
        bottom: 16px;
        right: 12px;
        left: 12px;
    }
    
    .wcc-widget-price {
        font-size: 24px;
    }
    
    .wcc-price-amount {
        font-size: 28px;
    }
    
    .wcc-section-title {
        font-size: 16px;
    }
    
    .wcc-breakdown-section {
        padding: 16px;
    }
    
    .wcc-chart-container {
        height: 200px;
    }
    
    /* Summary items - remove scrollbar on smaller screens */
    .wcc-summary-items {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
}

/* Small Mobile (320px - 479px) - same rounded design as big screen */
@media (max-width: 479px) {
    .wcc-calculator-pro {
        margin: 8px;
        border-radius: var(--wcc-radius-xl);
    }
    
    .wcc-header {
        padding: 14px 12px;
    }
    
    .wcc-title {
        font-size: 16px;
    }
    
    .wcc-subtitle {
        font-size: 12px;
    }
    
    .wcc-header-actions {
        margin-top: 12px;
    }
    
    .wcc-progress-wrapper {
        padding: 12px 14px;
    }
    
    .wcc-step-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .wcc-progress-line {
        width: 16px;
    }
    
    .wcc-steps-container {
        padding: 16px 12px;
    }
    
    .wcc-step-header {
        margin-bottom: 20px;
    }
    
    .wcc-step-header h2 {
        font-size: 16px;
    }
    
    .wcc-step-header p {
        font-size: 12px;
    }
    
    .wcc-industry-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 8px;
    }
    
    .wcc-type-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .wcc-industry-card,
    .wcc-type-card {
        padding: 14px 10px;
    }
    
    .wcc-industry-icon,
    .wcc-type-icon {
        width: 32px;
        height: 32px;
    }
    
    .wcc-industry-icon svg,
    .wcc-type-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .wcc-industry-name,
    .wcc-type-name {
        font-size: 11px;
    }
    
    .wcc-industry-desc {
        display: none;
    }
    
    .wcc-type-price {
        font-size: 12px;
    }
    
    .wcc-feature-card {
        padding: 12px 14px;
        min-height: 64px;
    }
    
    .wcc-feature-info h4 {
        font-size: 15px;
    }
    
    .wcc-feature-info p {
        font-size: 13px;
    }
    
    .wcc-feature-price {
        font-size: 15px;
    }
    
    
    .wcc-range-details {
        font-size: 11px;
    }
    
    .wcc-range-price {
        font-size: 13px;
    }
    
    .wcc-price-card {
        padding: 16px 14px;
    }
    
    .wcc-price-label {
        font-size: 13px;
    }
    
    .wcc-price-amount {
        font-size: 24px;
    }
    
    .wcc-price-desc {
        font-size: 11px;
    }
    
    .wcc-form-field label {
        font-size: 13px;
    }
    
    .wcc-form-field input,
    .wcc-form-field select,
    .wcc-form-field textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .wcc-navigation {
        padding: 12px;
        gap: 8px;
    }
    
    .wcc-nav-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .wcc-floating-widget {
        bottom: 12px;
        right: 8px;
        left: 8px;
        border-radius: 12px;
    }
    
    .wcc-widget-collapsed {
        padding: 10px 14px;
    }
    
    .wcc-widget-expanded {
        padding: 14px 16px;
    }
    
    .wcc-widget-price {
        font-size: 22px;
    }
    
    .wcc-widget-mini-price {
        font-size: 14px;
    }
    
    .wcc-modal-content {
        width: 100%;
        margin: 10px;
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .wcc-modal-content h3 {
        font-size: 18px;
    }
    
    .wcc-quote-code {
        font-size: 18px;
        padding: 12px;
    }
    
    .wcc-breakdown-table td,
    .wcc-breakdown-table th {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .wcc-total-row td {
        font-size: 14px;
    }
    
    .wcc-section-title {
        font-size: 14px;
    }
    
    .wcc-chart-container {
        height: 180px;
    }
    
    .wcc-success-buttons {
        gap: 8px;
    }
    
    .wcc-success-buttons .wcc-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Extra Small Mobile (below 320px) - same rounded design as big screen */
@media (max-width: 319px) {
    .wcc-calculator-pro {
        margin: 4px;
        border-radius: var(--wcc-radius-xl);
    }
    
    .wcc-header {
        padding: 12px 10px;
    }
    
    .wcc-title {
        font-size: 14px;
    }
    
    .wcc-industry-grid,
    .wcc-type-grid {
        grid-template-columns: 1fr;
    }
    
    .wcc-industry-card,
    .wcc-type-card {
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }
    
    .wcc-step-header h2 {
        font-size: 14px;
    }
    
    .wcc-price-amount {
        font-size: 20px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .wcc-feature-card {
        min-height: 48px; /* Minimum touch target size */
    }
    
    .wcc-nav-btn,
    .wcc-btn,
    .wcc-action-btn {
        min-height: 44px;
    }
    
    .wcc-modal-close {
        width: 44px;
        height: 44px;
    }
}

/* Landscape Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .wcc-floating-widget {
        top: 10px;
        bottom: auto;
        right: 16px;
        left: auto;
    }
    
    .wcc-widget-collapsed {
        padding: 8px 12px;
    }
    
    .wcc-price-comparison {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .wcc-industry-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
    
    .wcc-type-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print Styles */
@media print {
    /* Reset everything for print */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Hide WordPress/theme elements */
    header,
    footer,
    nav,
    aside,
    .site-header,
    .site-footer,
    .site-navigation,
    .sidebar,
    .comments-area,
    .post-navigation,
    .related-posts,
    .wp-block-comments,
    #comments,
    .comment-respond,
    .navigation,
    .breadcrumbs,
    .share-buttons,
    .social-share,
    .entry-meta,
    .post-meta,
    #masthead,
    #colophon,
    .menu,
    .widget-area,
    .admin-bar,
    #wpadminbar {
        display: none !important;
    }
    
    /* Calculator base styles for print */
    .wcc-calculator-pro {
        box-shadow: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        background: white !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Hide calculator UI elements */
    .wcc-header,
    .wcc-progress-wrapper,
    .wcc-navigation,
    .wcc-floating-widget,
    .wcc-summary-actions,
    .wcc-summary-sidebar,
    .wcc-header-actions,
    .wcc-contact-card,
    .wcc-modal,
    .wcc-action-buttons,
    .wcc-share-section,
    .wcc-form-success,
    #wcc-contact-form,
    .wcc-chart-container {
        display: none !important;
    }
    
    .wcc-steps-container {
        padding: 20px !important;
    }
    
    /* Hide steps 1-5, show only step 6 */
    #wcc-step-1,
    #wcc-step-2,
    #wcc-step-3,
    #wcc-step-4,
    #wcc-step-5 {
        display: none !important;
    }
    
    /* Force show step 6 (summary) */
    #wcc-step-6 {
        display: block !important;
    }
    
    /* Print header */
    .wcc-steps-container::before {
        content: "Website Project Quote";
        display: block !important;
        font-size: 24px;
        font-weight: 700;
        text-align: center;
        padding: 20px;
        border-bottom: 2px solid #6366f1;
        margin-bottom: 20px;
        color: #1e1e1e;
    }
    
    /* Layout adjustments */
    .wcc-summary-layout {
        display: block !important;
    }
    
    .wcc-summary-main {
        width: 100% !important;
    }
    
    /* Price comparison in a row */
    .wcc-price-comparison {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }
    
    .wcc-price-card {
        flex: 1 !important;
        min-width: 150px !important;
        padding: 15px !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
    }
    
    .wcc-price-card.featured {
        transform: none !important;
        border-color: #6366f1 !important;
        border-width: 2px !important;
    }
    
    /* Breakdown section */
    .wcc-breakdown-section,
    .wcc-detailed-summary {
        page-break-inside: avoid;
        margin-top: 20px;
    }
    
    .wcc-breakdown-table {
        width: 100% !important;
        border-collapse: collapse !important;
    }
    
    .wcc-breakdown-table th,
    .wcc-breakdown-table td {
        padding: 10px !important;
        border: 1px solid #ddd !important;
        text-align: left !important;
    }
    
    .wcc-breakdown-table th {
        background: #f5f5f5 !important;
    }
    
    .wcc-total-row td {
        font-weight: bold !important;
        background: #f0f0ff !important;
    }
    
    .wcc-step-header {
        margin-bottom: 20px;
    }
    
    .wcc-step-badge {
        display: none !important;
    }
    
    /* Footer */
    .wcc-steps-container::after {
        content: "This is an estimate. Final pricing may vary based on specific requirements.";
        display: block !important;
        font-size: 11px;
        color: #666;
        text-align: center;
        margin-top: 30px;
        padding-top: 15px;
        border-top: 1px solid #ddd;
    }
}

/* Keyboard Focus Styles for Accessibility */
.wcc-calculator-pro *:focus {
    outline: 2px solid var(--wcc-primary);
    outline-offset: 2px;
}

.wcc-calculator-pro *:focus:not(:focus-visible) {
    outline: none;
}

.wcc-calculator-pro *:focus-visible {
    outline: 2px solid var(--wcc-primary);
    outline-offset: 2px;
}

.wcc-feature-card:focus-within {
    box-shadow: 0 0 0 3px var(--wcc-primary-light);
    border-color: var(--wcc-primary);
}

.wcc-nav-btn:focus-visible,
.wcc-submit-btn:focus-visible,
.wcc-action-btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--wcc-primary);
}

/* Skip Link for Screen Readers */
.wcc-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--wcc-primary);
    color: white;
    padding: 8px 16px;
    z-index: 10001;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 var(--wcc-radius-sm) 0;
}

.wcc-skip-link:focus {
    top: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .wcc-calculator-pro *,
    .wcc-calculator-pro *::before,
    .wcc-calculator-pro *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    .wcc-calculator-pro {
        border: 3px solid var(--wcc-text);
    }
    
    .wcc-feature-card {
        border-width: 3px;
    }
}

/* ========================================
   FINAL MOBILE OVERRIDES (HIGHEST PRIORITY)
   Ensures mobile responsiveness on all devices
   ======================================== */

/* Reset all fixed widths on mobile */
@media screen and (max-width: 991px) {
    /* Summary layout - stack sidebar below main */
    .wcc-summary-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Extras layout - stack columns */
    .wcc-extras-layout {
        grid-template-columns: 1fr !important;
    }
    
    /* Price comparison - stack on tablet */
    .wcc-price-comparison {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

@media screen and (max-width: 767px) {
    /* Keep same rounded card design on all devices */
    .wcc-calculator-pro {
        width: 100% !important;
        max-width: 100% !important;
        margin: 12px auto !important;
        border-radius: var(--wcc-radius-xl) !important;
        min-height: auto;
        box-shadow: var(--wcc-shadow-xl);
    }
    
    /* Header responsive */
    .wcc-header {
        padding: 16px 12px !important;
    }
    
    .wcc-title {
        font-size: 18px !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .wcc-title svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    .wcc-subtitle {
        font-size: 12px !important;
    }
    
    .wcc-header-actions {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 8px !important;
        width: 100%;
        justify-content: center;
    }
    
    .wcc-action-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        flex: 1;
        min-width: 100px;
        max-width: 140px;
    }
    
    .wcc-action-btn span {
        display: inline !important;
        font-size: 11px;
    }
    
    /* Progress bar responsive */
    .wcc-progress-wrapper {
        padding: 12px 8px !important;
        overflow-x: auto;
    }
    
    .wcc-progress-steps {
        gap: 4px !important;
        min-width: max-content;
    }
    
    .wcc-step-number {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }
    
    .wcc-step-label {
        display: none !important;
    }
    
    .wcc-progress-line {
        width: 15px !important;
    }
    
    /* Steps container */
    .wcc-steps-container {
        padding: 16px 12px !important;
    }
    
    .wcc-step-header {
        margin-bottom: 16px !important;
    }
    
    .wcc-step-header h2 {
        font-size: 18px !important;
        line-height: 1.3;
    }
    
    .wcc-step-header p {
        font-size: 13px !important;
    }
    
    .wcc-step-badge {
        font-size: 11px !important;
        padding: 4px 10px !important;
    }
    
    /* Grids - industry keeps min width so no card is cut off */
    .wcc-industry-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        gap: 10px !important;
    }
    
    .wcc-type-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .wcc-industry-card,
    .wcc-type-card {
        padding: 12px 8px !important;
    }
    
    .wcc-industry-icon,
    .wcc-type-icon {
        width: 36px !important;
        height: 36px !important;
    }
    
    .wcc-industry-icon svg,
    .wcc-type-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .wcc-industry-name,
    .wcc-type-name {
        font-size: 12px !important;
    }
    
    .wcc-industry-desc {
        display: none !important;
    }
    
    .wcc-type-price {
        font-size: 12px !important;
    }
    
    /* Features, Design, Extras - Single column to prevent crop */
    .wcc-features-grid,
    .wcc-ecommerce-section .wcc-features-grid,
    .wcc-design-options,
    .wcc-extras-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
    }
    
    .wcc-feature-card {
        padding: 10px 12px !important;
        min-height: 56px !important;
    }
    
    .wcc-feature-info h4 {
        font-size: 15px !important;
    }
    
    .wcc-feature-info p {
        font-size: 13px !important;
    }
    
    .wcc-features-toolbar {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .wcc-features-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Design cards */
    .wcc-design-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    /* Range options */
    
    
    /* Price comparison */
    .wcc-price-comparison {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .wcc-price-tier {
        padding: 16px 12px !important;
    }
    
    .wcc-tier-price {
        font-size: 24px !important;
    }
    
    .wcc-tier-standard .wcc-tier-price {
        font-size: 28px !important;
    }
    
    /* Summary layout */
    .wcc-summary-layout {
        grid-template-columns: 1fr !important;
    }
    
    /* Navigation buttons */
    .wcc-navigation {
        padding: 12px !important;
        flex-direction: column-reverse !important;
        gap: 8px !important;
    }
    
    .wcc-nav-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 16px !important;
    }
    
    /* Floating widget - Bottom of screen */
    .wcc-floating-widget {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        border-radius: 16px 16px 0 0 !important;
        z-index: 9999 !important;
    }
    
    .wcc-floating-widget.expanded {
        bottom: 0;
    }
    
    .wcc-widget-collapsed {
        justify-content: center;
        padding: 12px 16px !important;
    }
    
    .wcc-widget-expanded {
        padding: 16px !important;
    }
    
    .wcc-widget-price {
        font-size: 24px !important;
    }
    
    /* Form fields */
    .wcc-form-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .wcc-form-field input,
    .wcc-form-field select,
    .wcc-form-field textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px 14px !important;
    }
    
    /* Preserve icon padding on mobile */
    .wcc-input-wrapper input,
    .wcc-input-wrapper select,
    .wcc-input-wrapper textarea {
        padding-left: 44px !important;
    }
    
    .wcc-input-wrapper svg,
    .wcc-input-wrapper i {
        left: 12px !important;
    }
    
    /* Modals */
    .wcc-modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px !important;
        padding: 20px 16px !important;
    }
    
    .wcc-modal-content h3 {
        font-size: 18px !important;
    }
    
    .wcc-quote-code {
        font-size: 20px !important;
    }
    
    /* Extras section */
    .wcc-extras-layout {
        grid-template-columns: 1fr !important;
    }
    
    .wcc-extras-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Breakdown table */
    .wcc-breakdown-table td,
    .wcc-breakdown-table th {
        padding: 8px 6px !important;
        font-size: 12px !important;
    }
    
    /* Contact card */
    .wcc-contact-card {
        position: static !important;
        margin-top: 16px;
        padding: 20px 16px !important;
    }
    
    .wcc-contact-header {
        margin-bottom: 16px !important;
    }
    
    .wcc-contact-header svg {
        width: 36px !important;
        height: 36px !important;
    }
    
    .wcc-contact-header h3 {
        font-size: 18px !important;
    }
    
    .wcc-contact-header p {
        font-size: 13px !important;
    }
    
    .wcc-contact-form {
        gap: 14px !important;
    }
    
    .wcc-form-field label {
        font-size: 13px !important;
    }
    
    /* Summary actions */
    .wcc-summary-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .wcc-summary-actions .wcc-btn {
        width: 100% !important;
    }
    
    /* Chart container */
    .wcc-chart-container {
        height: 180px !important;
    }
    
    /* Fix summary items scrollbar issue on mobile - let content flow naturally */
    .wcc-summary-items {
        max-height: none !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
    }
    
    /* Detailed summary - full width, no constraints */
    .wcc-detailed-summary {
        padding: 16px !important;
        margin-bottom: 20px !important;
    }
    
    .wcc-detailed-summary h3 {
        font-size: 16px !important;
    }
    
    .wcc-summary-totals {
        padding-top: 12px !important;
        margin-top: 12px !important;
    }
    
    .wcc-total-row {
        font-size: 18px !important;
    }
    
    .wcc-total-amount {
        font-size: 22px !important;
    }
    
    /* Cost breakdown section - mobile optimized */
    .wcc-cost-breakdown-section {
        padding: 16px !important;
        margin-bottom: 20px !important;
    }
    
    .wcc-cost-breakdown-section h3 {
        font-size: 16px !important;
        margin-bottom: 16px !important;
        padding-bottom: 12px !important;
    }
    
    .wcc-breakdown-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .wcc-breakdown-item {
        padding: 14px !important;
    }
    
    .wcc-breakdown-icon {
        width: 44px !important;
        height: 44px !important;
    }
    
    .wcc-breakdown-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .wcc-breakdown-content h4 {
        font-size: 15px !important;
    }
    
    .wcc-breakdown-desc {
        font-size: 13px !important;
    }
    
    .wcc-breakdown-price {
        font-size: 20px !important;
    }
    
    /* Price tier cards - mobile friendly */
    .wcc-price-tier {
        padding: 14px 12px !important;
    }
    
    .wcc-tier-label {
        font-size: 14px !important;
    }
    
    .wcc-tier-desc {
        font-size: 12px !important;
    }
    
    /* Contact form card - mobile */
    .wcc-contact-card {
        padding: 16px !important;
    }
    
    .wcc-contact-card h3 {
        font-size: 18px !important;
    }
    
    .wcc-contact-card > p {
        font-size: 13px !important;
    }
}

/* Extra small screens (320px and below) */
@media screen and (max-width: 359px) {
    .wcc-industry-grid,
    .wcc-type-grid {
        grid-template-columns: 1fr !important;
    }
    
    .wcc-industry-card,
    .wcc-type-card {
        flex-direction: row !important;
        text-align: left !important;
        gap: 12px !important;
        align-items: center !important;
    }
    
    .wcc-step-header h2 {
        font-size: 16px !important;
    }
    
    .wcc-action-btn {
        min-width: 80px !important;
    }
    
    .wcc-action-btn span {
        display: none !important;
    }
}
