/* =========================================
   QUOTE PAGE - ADVANCED MULTI-STEP STYLES
   ========================================= */

.quote-wrapper {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
}

/* PROGRESS BAR STYLES */
.steps-progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 0 10px;
}
.progress-bar-line {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-border, #e5e7eb);
    z-index: 1;
}
.progress-line-fill {
    height: 100%;
    background: var(--color-accent, #b8905b);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}
.step-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.node-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--color-border, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-text-muted, #6b7280);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.node-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted, #6b7280);
    font-family: 'Inter', sans-serif;
    transition: color 0.3s;
}
.step-node.active .node-circle {
    border-color: var(--color-accent, #b8905b);
    background: var(--color-accent, #b8905b);
    color: white;
    box-shadow: 0 4px 10px rgba(184, 144, 91, 0.2);
}
.step-node.active .node-label {
    color: var(--color-primary, #111827);
}

/* PANES INFRASTRUCTURE */
.form-step-pane {
    display: none;
    animation: stepFadeIn 0.4s forwards;
}
.form-step-pane.active {
    display: block;
}
@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 1.3rem;
    margin: 0 0 24px;
    border-bottom: 2px solid var(--color-border, #e5e7eb);
    padding-bottom: 12px;
    color: var(--color-primary);
    font-family: 'Lora', serif;
}

/* Service Selection Cards */
.service-selector { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    margin-bottom: 30px;
}
.service-option input { display: none; }
.s-card {
    background: white; 
    border: 2px solid var(--color-border, #e5e7eb); 
    border-radius: var(--radius-md, 8px);
    padding: 30px 16px; 
    text-align: center; 
    cursor: pointer; 
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.s-card i { font-size: 2rem; color: #9ca3af; margin-bottom: 14px; transition: 0.25s;}
.s-card h4 { font-size: 1.1rem; margin-bottom: 6px; font-family: 'Inter', sans-serif; color: var(--color-primary);}
.s-card span { font-size: 0.85rem; color: #6b7280; }

.service-option:hover .s-card { 
    border-color: var(--color-accent, #b8905b); 
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}
.service-option.active .s-card { 
    border-color: var(--color-accent, #b8905b); 
    background-color: rgba(184, 144, 91, 0.04); 
    box-shadow: 0 4px 10px rgba(184, 144, 91, 0.08);
}
.service-option.active .s-card i { color: var(--color-accent, #b8905b); }

/* Dynamic Sections */
.dynamic-section { display: none; }
.dynamic-section.active-section { display: block; }

/* Visual Items Grid */
.visual-items-grid {
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 24px; 
    margin-bottom: 35px;
}
.v-card {
    background: white; 
    border: 1px solid var(--color-border, #e5e7eb); 
    border-radius: var(--radius-md, 8px);
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.v-card:hover { 
    box-shadow: 0 10px 20px rgba(0,0,0,0.06); 
    border-color: #cbd5e1; 
}
.v-card.active-item { 
    border-color: var(--color-accent, #b8905b); 
    box-shadow: 0 0 0 1px var(--color-accent, #b8905b), 0 8px 16px rgba(184, 144, 91, 0.06); 
}
.v-info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.v-info h4 { font-size: 1.1rem; margin-bottom: 6px; font-family: 'Inter', sans-serif; color: var(--color-primary); }
.v-info .desc { font-size: 0.88rem; color: #6b7280; margin-bottom: 16px; flex-grow: 1; line-height: 1.5; }
.v-info .price-tag { font-weight: 700; color: var(--color-accent, #b8905b); font-size: 1rem; margin-bottom: 16px; display: inline-block;}

/* Plus / Minus Counters */
.qty-control {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    background: #f8fafc;
    border-radius: 8px; 
    overflow: hidden; 
    border: 1px solid var(--color-border, #e5e7eb);
    padding: 2px;
}
.qty-btn {
    background: white; 
    border: 1px solid var(--color-border, #e5e7eb); 
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--color-primary); 
    transition: all 0.2s; 
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.qty-btn:hover { background: var(--color-accent, #b8905b); color: white; border-color: var(--color-accent, #b8905b); }
.qty-input {
    width: 45px; 
    text-align: center; 
    border: none; 
    background: transparent;
    font-weight: 800; 
    font-size: 1.05rem; 
    color: var(--color-primary); 
    pointer-events: none;
}

/* Factors / Options */
.options-group {
    background: white; 
    border: 1px solid var(--color-border, #e5e7eb);
    padding: 24px; 
    border-radius: var(--radius-md, 8px); 
    margin-bottom: 24px;
}
.options-group label.group-label {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: 600; 
    font-size: 1.05rem; 
    margin-bottom: 18px; 
    color: var(--color-primary);
}
.options-group label.group-label i { color: var(--color-accent, #b8905b); }
.custom-select, .quote-input {
    width: 100%; 
    padding: 14px; 
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 8px; 
    font-family: 'Inter', sans-serif; 
    font-size: 0.95rem;
    background: #f8fafc; 
    transition: all 0.3s;
    color: var(--color-primary);
}
.custom-select:focus, .quote-input:focus { 
    outline: none; 
    border-color: var(--color-accent, #b8905b); 
    background: white; 
    box-shadow: 0 0 0 3px rgba(184, 144, 91, 0.15);
}

/* Radio Options */
.radio-options { display: flex; flex-direction: column; gap: 12px; }
.radio-label {
    display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--color-text-body); cursor: pointer;
    padding: 14px; border: 1px solid var(--color-border, #e5e7eb); border-radius: 8px; transition: all 0.2s;
    background: #f8fafc;
}
.radio-label:hover { border-color: #cbd5e1; background: #f1f5f9; }
.radio-label input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--color-accent, #b8905b); }
.radio-text strong { display: block; color: var(--color-primary); margin-bottom: 4px; }

/* Color Swatch Selector */
.color-swatch-container { display: flex; gap: 12px; margin-bottom: 18px; }
.color-swatch-label input { display: none; }
.swatch-box {
    padding: 12px 20px; 
    border: 2px solid var(--color-border, #e5e7eb); 
    border-radius: 8px;
    cursor: pointer; 
    font-size: 0.95rem; 
    font-weight: 600; 
    text-align: center; 
    transition: all 0.2s;
    background: white;
}
.color-swatch-label input:checked + .swatch-box { 
    border-color: var(--color-accent, #b8905b); 
    background: rgba(184, 144, 91, 0.08); 
    color: var(--color-primary); 
}

/* Step Navigation Footer Component */
.step-navigation-ui {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border, #e5e7eb);
}
.step-navigation-ui .btn {
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.step-navigation-ui .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Right Side: Summary Box */
.summary-box {
    background: var(--color-primary, #111827); 
    color: white;
    padding: 35px; 
    border-radius: var(--radius-lg, 12px);
    position: sticky; 
    top: 100px; 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}
.summary-box h3 { color: white; font-family: 'Lora', serif; font-size: 1.4rem; margin: 0;}
.summary-divider { height: 1px; background: rgba(255,255,255,0.12); margin: 20px 0; }
.s-row { display: flex; justify-content: space-between; font-size: 0.95rem; margin-bottom: 12px;}
.s-row strong { color: var(--color-accent, #b8905b); }
.s-items { min-height: 40px; }
.item-detail { color: #d1d5db; font-size: 0.9rem; margin-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 10px;}
.item-detail span:last-child { font-weight: 600; color: white; }
.modifier-detail { color: #ffb100; font-size: 0.85rem; font-style: italic; margin-bottom: 10px; display: flex; justify-content: space-between;}
.empty-msg { color: #9ca3af; font-style: italic; font-size: 0.9rem; margin: 10px 0;}
.s-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem;}
.s-total strong { font-size: 2.2rem; color: white; font-family: 'Inter', sans-serif; font-weight: 800;}

.disclaimer-alert {
    background: rgba(255, 255, 255, 0.04); 
    border-left: 3px solid var(--color-accent, #b8905b);
    padding: 14px; 
    margin-top: 20px; 
    border-radius: 0 6px 6px 0;
}
.disclaimer-alert p { font-size: 0.82rem; color: #9ca3af; margin: 0; line-height: 1.5; }

.summary-header-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-toggle-icon {
    display: none;
    color: white;
    font-size: 1.2rem;
}

/* =========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================= */
@media (max-width: 992px) {
    .quote-wrapper { grid-template-columns: 1fr; margin-bottom: 100px; }
    
    /* Sticky Bottom Sheet for Mobile */
    .quote-summary-container {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
    .summary-box {
        position: static;
        border-radius: 20px 20px 0 0;
        padding: 20px 24px;
        box-shadow: 0 -10px 25px rgba(0,0,0,0.15);
        background: #111827;
    }
    .summary-body-content {
        display: none; /* Hidden by default on mobile */
        max-height: 250px;
        overflow-y: auto;
        padding-bottom: 15px;
    }
    .summary-box.expanded .summary-body-content {
        display: block;
    }
    .mobile-toggle-icon {
        display: block;
        transition: transform 0.3s;
    }
    .summary-box.expanded .mobile-toggle-icon {
        transform: rotate(180deg);
    }
    .mobile-hidden-divider { display: none; }
    .s-total { margin-top: 5px; }
    .s-total strong { font-size: 1.8rem; }
    .summary-box .btn { margin-top: 10px !important; }
}

@media (max-width: 768px) {
    .service-selector { grid-template-columns: 1fr; gap: 12px; }
    .visual-items-grid { grid-template-columns: 1fr; gap: 16px; }
    .steps-progress-container { margin-bottom: 30px; }
    .node-circle { width: 36px; height: 36px; font-size: 0.9rem; }
    .progress-bar-line { top: 16px; }
}