/* ============================================
   KONFIGURATOR KONSTRUKCJI - FRONTEND STYLES
   ============================================ */

/* Inter - lokalne pliki czcionek */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* General Sans - lokalne pliki czcionek */
@font-face {
    font-family: 'General Sans Variable';
    src: url('../fonts/GeneralSans-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'General Sans Variable';
    src: url('../fonts/GeneralSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'General Sans Variable';
    src: url('../fonts/GeneralSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'General Sans Variable';
    src: url('../fonts/GeneralSans-Semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'General Sans Variable';
    src: url('../fonts/GeneralSans-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --dark-blue: #133759;
    --orange: #F07913;
    --blue-extra: #90AFCE;
    --to-belki: #F7FAFD;
    --obrys-belki: rgba(19, 55, 89, 0.10);
    --sidebar-width: 400px;
    --sidebar-collapsed-width: 72px;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.konfigurator-wizard-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #fff;
}

/* ============================================
   LOGO SVG
   ============================================ */
.konfigurator-logo {
    position: fixed;
    left: -112px;
    bottom: 15%;
    width: 77px;
    height: 403px;
    z-index: 10;
    pointer-events: none;
}

/* ============================================
   MAIN LAYOUT (Flex)
   ============================================ */
.konfigurator-main-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
}

/* ============================================
   OLD SECTIONS (HIDDEN)
   ============================================ */
.konfigurator-top-section {
    display: none !important;
}

.konfigurator-wizard-steps-section {
    display: none !important;
}

/* ============================================
   SIDEBAR (LEFT PANEL)
   ============================================ */
.konfigurator-sidebar {
    position: relative;
    width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    height: 100vh;
    background: var(--to-belki);
    border: 0.3px solid var(--obrys-belki);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 600;
    border-radius: 17px;
    overflow: hidden;
    
}

.konfigurator-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
    max-width: var(--sidebar-collapsed-width);
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border:none !important;
    background: transparent !important;
}

.sidebar-toggle:hover {
    opacity: 0.7;
}

.sidebar-toggle svg {
    width: 12px;
    height: 9px;
    transition: transform 0.3s ease;
}

.sidebar-toggle .toggle-text {
    color: var(--dark-blue);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.konfigurator-sidebar.collapsed .toggle-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.konfigurator-sidebar.collapsed .sidebar-toggle {
    right: 10px;
}

/* Sidebar Content */
.sidebar-content {
    padding: 80px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.sidebar-logo-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sidebar-logo-img {
    max-height: 48px;
    width: auto;
}

.sidebar-header-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.konfigurator-sidebar.collapsed .sidebar-content {
    opacity: 0;
    visibility: hidden;
    width: 0;
    padding: 80px 0 30px 0;
    overflow: hidden;
}

/* Sidebar Header */
.sidebar-header {
    color: var(--dark-blue);
    font-family: 'General Sans Variable', sans-serif;
    font-size: 36px !important;
    font-style: normal;
    font-weight: 500;
    line-height: 40px !important;
    margin: 0;
}

.assembly-element{
    margin-bottom: 12px;
}

.sidebar-subtitle {
    color: var(--dark-blue);
    font-family: 'General Sans Variable', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    margin: 8px 0 0 0;
    opacity: 0.7;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.konfigurator-progress {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-text {
    color: var(--dark-blue);
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 24px;
}

.progress-bar-container {
    position: relative;
    width: 100%;
 
    height: 1px;
    background: #90afce57;

    display: flex;
    align-items: center;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 5px;
    background: var(--orange);
    border-radius: 40px;
    transition: width 0.4s ease;
    width: 0%;
}

/* ============================================
   WIZARD STEPS & NAVIGATION
   ============================================ */
.konfigurator-wizard-steps-wrapper {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 10px;
    margin-right: -10px;
}

.konfigurator-wizard-steps {
    display: flex;
    flex-direction: column;
}

.konfigurator-wizard-steps-wrapper .konfigurator-wizard-navigation {
    position: sticky;
    bottom: 0;
    background: var(--to-belki);
    
    z-index: 2;
}

/* Scrollbar Styling - na całym panelu */
.konfigurator-wizard-steps-wrapper::-webkit-scrollbar {
    width: 6px;
}

.konfigurator-wizard-steps-wrapper::-webkit-scrollbar-track {
    background: #f7fafd;
    border-radius: 40px;
}

.konfigurator-wizard-steps-wrapper::-webkit-scrollbar-thumb {
    background: #90AFCE;
    opacity: 0.5;
    border-radius: 40px;
}

.konfigurator-wizard-steps-wrapper::-webkit-scrollbar-thumb:hover {
    opacity: 0.7;
}

/* Firefox Scrollbar */
.konfigurator-wizard-steps-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(144, 175, 206, 0.5) #f7fafd;
}

.wizard-step {

    overflow: visible !important;
}

.step-content {
    overflow: visible !important;
}

.step-title {
    color: var(--dark-blue);
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    display: none;
}

.step-content {
    display: flex;
    flex-direction: column;
}

.sidebar-content .konfigurator-wizard-navigation {
    flex-shrink: 0;
}

/* ============================================
   INPUT FIELDS
   ============================================ */
.konfigurator-field {
    display: flex;
    flex-direction: column;

    overflow: visible !important;
}

.konfigurator-field label {
    color: var(--dark-blue);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 13px;
    margin-top: 24px;
}

.konfigurator-input {
    display: flex;
    height: 48px;
    padding: 8px 24px;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    border: 2px solid rgba(19, 55, 89, 0.10);
    background: #FFF;
    color: #133759 !important;
    font-family: 'Inter', sans-serif;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 24px;
    transition: all 0.3s ease-in-out;
    outline: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.konfigurator-input::placeholder {
    color: #133759;
    opacity: 0.5;
}

.konfigurator-input:focus {
    outline: none !important;
    border-color: #133759 !important;
    box-shadow: 0 10px 20px 0 rgba(19, 55, 89, 0.10) !important;
}

.konfigurator-input:focus-visible {
    outline: none !important;
    border-color: #133759 !important;
    box-shadow: 0 10px 20px 0 rgba(19, 55, 89, 0.10) !important;
}

/* Select/Dropdown - bez cienia */
select.konfigurator-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23133759' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

select.konfigurator-input:focus,
select.konfigurator-input:focus-visible {
    box-shadow: none !important;
}

/* ============================================
   NAVIGATION BUTTONS
   ============================================ */
.konfigurator-wizard-navigation {
    display: flex;
    flex-direction: column;
    width: 100% !important;
   margin-top:24px;
    overflow: visible;
}

.wizard-nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.wizard-nav-skip {
    margin-top:12px;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.wizard-nav-skip span{
    padding-right: 11px;

}

.option-desc{
    color: #133759;
   
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 18px; /* 86.667% */
}

.step-content-inactive .hall-type-btn,
.step-content-inactive .option-btn,
.step-content-inactive .counter-btn,
.step-content-inactive .entrance-door-toggle-btn {
    pointer-events: none !important;
    opacity: 0.45 !important;
}
.step-content-inactive .hall-type-btn.selected,
.step-content-inactive .option-btn.selected {
    opacity: 1 !important;
}

.wizard-btn {
    display: flex;
    width: 92px !important;
    height: 42px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    border-radius: 200px !important;
    border: 0 solid #133759 !important;
    background: #133759 !important;
    color: #FFF !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    opacity: 1 !important;
}

.wizard-btn:hover:not(:disabled) {
    background: #0f2a45 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(19, 55, 89, 0.2);
}

.wizard-btn:active:not(:disabled) {
    transform: translateY(0);
}

.wizard-btn:disabled {
    opacity: 0.5 !important;
    background: #90AFCE !important;
    cursor: not-allowed !important;
}

.wizard-btn svg {
    width: 4px;
    height: 7px;
    flex-shrink: 0;
}

/* Przycisk Dalej z strzałką */
.wizard-btn-next {
    width: 92px !important;
}

/* Przycisk Poprzedni/Wróć */
.wizard-btn-prev {
    width: 92px !important;
}

.wizard-btn-prev svg path {
    fill: #FFF;
}

.wizard-btn-prev:hover:not(:disabled) {
    background: #0f2a45 !important;
}

/* Przycisk Zakończ ofertę */
.wizard-btn-finish {
    width: 113px !important;
    background: #F07913 !important;
}

.wizard-btn-finish:hover:not(:disabled) {
    background: #d66a10 !important;
}

/* Przycisk Pomiń */
.wizard-btn-skip {
    width: auto !important;
    background: transparent !important;
    border: none !important;
    color: #133759 !important;
    text-align: right !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 18px !important;
    text-decoration: underline !important;
    text-decoration-style: solid !important;
    text-decoration-skip-ink: auto !important;
    height: auto !important;
    padding: 0 !important;
    justify-content: flex-end !important;
}

.wizard-btn-skip:hover:not(:disabled) {
    background: transparent !important;
    color: #0f2a45 !important;
    transform: none !important;
    box-shadow: none !important;
}

.wizard-btn-skip:disabled {
    opacity: 0.5 !important;
    background: transparent !important;
    cursor: not-allowed !important;
}

/* ============================================
   RIGHT SIDE - 3D VISUALIZATION AREA
   ============================================ */
.konfigurator-visualization-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.konfigurator-visualization {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8ecf1 100%);
    border: none;
    border-radius: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visualization-3d-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

#hall-3d-canvas {
    width: 100%;
    height: 100%;
    border-radius: 0;
    outline: none;
    cursor: grab;
    display: block;
    touch-action: none;
}

#hall-3d-canvas:active {
    cursor: grabbing;
}

#viewer3d-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(200,215,230,0.18) 100%);
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    transition: opacity 0.3s ease;
    border: 1px solid rgba(255,255,255,0.18);
}

#viewer3d-loading-overlay.is-resizing {
    background: linear-gradient(135deg, rgba(248,249,250,0.88) 0%, rgba(232,236,241,0.88) 100%);
    backdrop-filter: blur(32px) saturate(1.4);
    -webkit-backdrop-filter: blur(32px) saturate(1.4);
}


.viewer3d-spinner-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 36px;
    background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.25) 100%);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 8px 32px rgba(19,55,89,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
}

.viewer3d-spinner {
    width: 48px;
    height: 48px;
    position: relative;
}

#viewer3d-spinner-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #133759;
    pointer-events: none;
    line-height: 1;
}

.viewer3d-spinner.is-progress .loader-snake {
    animation: none;
}

.viewer3d-spinner svg {
    width: 100%;
    height: 100%;
}

.viewer3d-spinner .loader-track {
    fill: none;
    stroke: rgba(19,55,89,0.10);
    stroke-width: 2.8;
}

.viewer3d-spinner .loader-snake {
    fill: none;
    stroke: #f07913;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-dasharray: 0 129.2;
    animation: unified-loader-grow 2.4s ease-in-out infinite;
}

.viewer3d-spinner-label {
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #133759;
    letter-spacing: 0.01em;
    text-align: center;
    line-height: 1.4;
    max-width: 200px;
    opacity: 0.85;
    min-height: 18px;
}

@keyframes unified-loader-grow {
    0%   { stroke-dasharray: 0 129.2; }
    50%  { stroke-dasharray: 129.2 0; }
    51%  { stroke-dasharray: 0 129.2; opacity: 0; }
    52%  { stroke-dasharray: 0 129.2; opacity: 1; }
    100% { stroke-dasharray: 0 129.2; }
}

#konfigurator-panel-blocker {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 100;
    background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(200,215,230,0.2) 100%);
    backdrop-filter: blur(3px) saturate(1.1);
    -webkit-backdrop-filter: blur(3px) saturate(1.1);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: wait;
}

.camera-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.camera-control-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #e8ecf1 !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #133759 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.camera-control-btn:hover {
    background: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

.camera-control-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.camera-control-btn.active {
    background: linear-gradient(135deg, #F07913 0%, #e86d0f 100%) !important;
    color: white !important;
    border-color: #e86d0f !important;
}

.camera-control-btn.active:hover {
    background: linear-gradient(135deg, #e86d0f 0%, #d96209 100%) !important;
}

.konfigurator-location-widget {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    background: #F7FAFD !important;
    border: 1px solid rgba(19, 55, 89, 0.15) !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    box-shadow: 0 4px 16px rgba(19, 55, 89, 0.12) !important;
    opacity: 0.9 !important;
    transition: all 0.3s ease !important;
    max-width: 240px !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

.konfigurator-location-widget:hover {
    opacity: 1 !important;
    box-shadow: 0 6px 20px rgba(19, 55, 89, 0.18) !important;
}

.konfigurator-location-widget h3 {
    margin: 0 0 10px 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #133759 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 1px solid rgba(19, 55, 89, 0.12) !important;
    padding-bottom: 8px !important;
}

.location-widget-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    font-size: 12px !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    color: #133759 !important;
    gap: 8px !important;
}

.location-widget-item:last-child {
    margin-bottom: 0 !important;
}

.location-widget-item--distance {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(19, 55, 89, 0.12) !important;
}

.location-widget-item .label {
    font-weight: 600 !important;
    color: rgba(19, 55, 89, 0.65) !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

.location-widget-item .value {
    color: #133759 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    display: block !important;
}

.location-widget-value-group {
    display: inline-flex !important;
    align-items: flex-end !important;
    gap: 4px !important;
}

.widget-unit {
    font-size: 10px !important;
    color: rgba(19, 55, 89, 0.5) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    display: block !important;
}

@media (max-width: 1024px) {
    .konfigurator-location-widget {
        position: static !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
        opacity: 1 !important;
    }
}

.konfigurator-summary {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    min-height: 400px;
}

.konfigurator-summary h3 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 17px;
    font-weight: 700;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.summary-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-of-type {
    border-bottom: none;
}

.summary-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.summary-value {
    display: block;
    color: #0073aa;
    font-weight: 600;
    font-size: 14px;
}

.summary-divider {
    height: 2px;
    background: linear-gradient(90deg, #0073aa 0%, #005a87 100%);
    margin: 12px 0;
}

.summary-price,
.summary-transport,
.summary-montaz,
.summary-covering,
.summary-gates,
.summary-entrance-doors,
.summary-windows,
.summary-skylights,
.summary-gutters,
.summary-sheetwork,
.summary-assembly-covering {
    padding: 8px 0;
}

.summary-assembly {
    margin: 8px 0;
}

.assembly-details {
    margin: 8px 0;
}

.assembly-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid #e8ecf1;
}

.assembly-item:last-child {
    border-bottom: none;
}

.assembly-item-inactive {
    opacity: 0.6;
}

.assembly-item-inactive .assembly-name,
.assembly-item-inactive .assembly-calc {
    color: #999;
}

.assembly-name {
    font-weight: 500;
    color: #2c3e50;
    flex: 0 0 140px;
}

.assembly-calc {
    flex: 1;
    color: #666;
    font-size: 12px;
    text-align: left;
    padding: 0 8px;
}

.assembly-price {
    font-weight: 600;
    color: #27ae60;
    font-size: 13px;
    text-align: right;
    min-width: 100px;
}

.assembly-total {
    font-weight: 600;
}

.transport-assembly-section,
.covering-type-options,
.windows-type-options,
.skylights-type-options,
.sheetmetal-gutters-options,
.sheetmetal-sheetwork-options {
    margin-top:24px;
    display: flex;
    flex-direction: column;
}

.covering-type-options,.skylights-type-options, .sheetmetal-gutters-options, .sheetmetal-sheetwork-options{
    gap:12px;
}

.windows-distribution-options {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-top:16px;
}



.option-details {
    margin-top: 10px;
    font-size: 13px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #e8ecf1;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item.detail-total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 2px solid #e0e0e0;
    border-bottom: none;
    font-weight: 700;
}

.detail-item.detail-total .detail-label {
    font-weight: 700;
    color: #2c3e50;
}

.detail-item.detail-total .detail-value {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
}

.detail-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-label {
    font-weight: 600;
    color: #666;
    font-size: 13px;
    line-height: 1.3;
}

.detail-value {
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
    font-size: 14px;
    white-space: nowrap;
}

.detail-info {
    font-size: 11px;
    color: #999;
    line-height: 1.3;
}



.covering-options {
    margin-top: 24px;
}

.covering-options h3 {
    color: #133759;

font-size: 15px;
font-style: normal;
font-weight: 600;
line-height: 13px; /* 86.667% */
}







.covering-calc-info {
    margin-top: 15px;
    font-size: 13px;
    color: #2c3e50;
}

.covering-calc-info strong {
    color: #27ae60;
    font-weight: 600;
}

.covering-total {
    margin-top: 20px;
    font-size: 16px;
}

.covering-total .price-label {
    font-weight: 600;
    color: #666;
}

.covering-total .price-value {
    font-weight: 600;
    color: #2c3e50;
}

.info-note {
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}


.summary-total {
    padding: 12px 0 0 0;
    margin-top: 8px;
    border-top: 2px solid #0073aa;
}

.summary-value-price,
.summary-value-total {
    display: block;
    color: #27ae60;
    font-weight: 700;
    font-size: 16px;
    margin-top: 4px;
}

.summary-value-price small,
.summary-value-total small {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

.summary-value-total {
    font-size: 20px;
}

.konfigurator-wizard-steps-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Stare style progress-bar usunięte - nowe są na górze pliku */

.wizard-step {
    animation: fadeIn 0.3s ease;
}

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

.step-title {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    display: none;
}

.step-description,
.step-desc {
    margin-top: 24px !important;
    color: #133759;
    font-family: Inter;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px; /* 86.667% */

}






.windows-info {
    margin-top: 12px;
}

.windows-info .info-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.windows-info strong {
    font-size: 14px;
    font-weight: 700;
}



.option-label small {
    display: block;
    font-size: 11px;
    margin-top: 5px;
    color: #666;
    font-weight: normal;
}

.options-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.options-grid-medium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.options-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

@media (max-width: 1024px) {
    .options-grid-small,
    .options-grid-medium,
    .options-grid-large {
        grid-template-columns: 1fr;
    }
}

.konfigurator-field {
    display: flex;
    flex-direction: column;
   
    
}

.konfigurator-field label {
    font-weight: 400;
    color: #133759;
    font-size: 15px;
    line-height: 13px;
   
}

.konfigurator-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible !important;
    margin-top:24px;
}

.konfigurator-input {
   
    padding: 12px 24px !important;
    border: 2px solid #e8ecf1 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    width: 100%!important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    background-color: #fafbfc !important;
}

.konfigurator-input:focus {
    outline: none !important;
    border-color: #0073aa !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1) !important;
}

.konfigurator-input:disabled {
    background-color: #f0f2f5 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    border-color: #e0e0e0 !important;
}

.konfigurator-spinner {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.konfigurator-spinner svg {
    width: 100%;
    height: 100%;
}

.spinner-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.spinner-icon svg {
    width: 100%;
    height: 100%;
}

.unified-loader-sm .loader-track {
    fill: none;
    stroke: rgba(19,55,89,0.10);
    stroke-width: 2.8;
}

.unified-loader-sm .loader-snake {
    fill: none;
    stroke: #f07913;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-dasharray: 0 129.2;
    animation: unified-loader-grow 2.4s ease-in-out infinite;
}

.konfigurator-status {
    font-size: 12px;
    font-weight: 600;
    min-height: 0px;
   
}

.konfigurator-status.status-success {
    color: #27ae60;
}

.konfigurator-status.status-error {
    color: #e74c3c;
}

.konfigurator-suggestions {
    position: fixed;
    background: #FFF;
    border: 1px solid var(--obrys-belki);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10000;
    box-shadow: 0 4px 16px rgba(19, 55, 89, 0.12);
    margin-top: 0;
    display: none;
}

.konfigurator-suggestions[style*="display: block"],
.konfigurator-suggestions[style]:not([style*="display: none"]) {
    display: block;
}

.suggestion-item {
    height: 48px;
    box-sizing: border-box;
    padding: 0 24px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    border-bottom: 1px solid var(--obrys-belki);
    transition: all 0.2s ease;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--dark-blue);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: rgba(240, 121, 19, 0.08);
    color: var(--orange);
    font-weight: 400;
}

.konfigurator-place-wrapper {
    position: relative;
    margin-top:24px;
}

.location-details,
.config-details {
    margin-top:24px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.location-details h4,
.config-details h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e8ecf1;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 600;
    color: #666;
    font-size: 13px;
}

.detail-row .value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.konfigurator-error {
    padding: 14px 16px;
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 8px;
    color: #c33;
    margin-top: 16px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(255, 0, 0, 0.1);
}

.konfigurator-hall-types {
    margin-top:24px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
}

.hall-type-btn {
    display: flex !important;
    width: 100% !important;
    height: 48px !important;
    padding: 8px 24px !important;
    align-items: center !important;
    gap: 12px !important;
    border-radius: 10px !important;
    border: 2px solid rgba(19, 55, 89, 0.10) !important;
    background: rgba(232, 239, 246, 0.50) !important;
    cursor: pointer;
    transition: all 0.3s ease-in-out !important;
    text-align: left !important;
    overflow: visible;
    outline: none !important;
}

.hall-type-btn:focus {
    outline: none !important;
}

.hall-type-btn.btn-hidden {
    display: none !important;
}

.hall-type-btn:focus-visible {
    outline: none !important;
}

.hall-type-btn .btn-checkbox {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    transition: all 0.3s ease-in-out;
}

.hall-type-btn .btn-title {
    color: #133759 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 24px !important;
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
}

.hall-type-btn.selected {
    border-color: #133759 !important;
    background: #FFF !important;
    box-shadow: 0 10px 20px 0 rgba(19, 55, 89, 0.10) !important;
}

.hall-type-btn:hover {
    border-color: #133759 !important;
    background: #FFF !important;
    box-shadow: 0 10px 20px 0 rgba(19, 55, 89, 0.10) !important;
}

.hall-type-btn.selected .btn-title {
    opacity: 1;
}

.hall-type-btn:hover .btn-title {
    opacity: 1;
}

.hall-type-btn .checkbox-outline {
    display: block;
}

.hall-type-btn .checkbox-fill,
.hall-type-btn .checkbox-inner {
    display: none;
}

.hall-type-btn.selected .checkbox-outline {
    display: none;
}

.hall-type-btn:hover .checkbox-outline {
    display: none;
}

.hall-type-btn.selected .checkbox-fill,
.hall-type-btn.selected .checkbox-inner {
    display: block;
}

.hall-type-btn:hover .checkbox-fill,
.hall-type-btn:hover .checkbox-inner {
    display: block;
}

.options-grid {
    margin-top:16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    overflow: visible;
}

@media (max-width: 600px) {
    .options-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
}

#heights-list {
    grid-template-columns: repeat(2, 1fr);
}

.option-btn {
    display: flex !important;
    height: 48px !important;
    padding: 8px 4px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    border-radius: 10px !important;
    border: 2px solid rgba(19, 55, 89, 0.10) !important;
    background: rgba(232, 239, 246, 0.50) !important;
    cursor: pointer;
    transition: all 0.3s ease-in-out !important;
    text-align: center !important;
    outline: none !important;
    color: #133759 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 24px !important;
    opacity: 0.5;
}

.option-btn:focus {
    outline: none !important;
}

.option-btn:focus-visible {
    outline: none !important;
}

.option-btn:hover {
    border-color: #133759 !important;
    background: #FFF !important;
    box-shadow: 0 10px 20px 0 rgba(19, 55, 89, 0.10) !important;
    opacity: 1;
}

.option-btn.selected,
.option-btn.active {
    border-color: #133759 !important;
    background: #FFF !important;
    box-shadow: 0 10px 20px 0 rgba(19, 55, 89, 0.10) !important;
    opacity: 1;
}

#frame-spacing-selector {
    background: #f8f9fa;
    padding: 0px;
    border-radius: 8px;
  
}



.error-message {
    color: #e74c3c;
    font-weight: 600;
    padding: 16px;
    background: #fee;
    border-radius: 8px;
    text-align: center;
}

.konfigurator-spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.konfigurator-spinner-wrapper svg {
    width: 40px;
    height: 40px;
}

.konfigurator-spinner-wrapper .loader-track {
    fill: none;
    stroke: rgba(19,55,89,0.10);
    stroke-width: 2.8;
}

.konfigurator-spinner-wrapper .loader-snake {
    fill: none;
    stroke: #f07913;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-dasharray: 0 129.2;
    animation: unified-loader-grow 2.4s ease-in-out infinite;
}

/* Stare style usunięte - nowe są na górze pliku */



.assembly-element .element-title {
    
    color: #133759;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 13px;
     padding: 0;
    margin-bottom: 16px !important;
}

.assembly-element .element-title .element-optional {
    color: #133759;
    font-size: 15px;
    font-style: normal;
    font-weight: 300;
    line-height: 13px;
    padding: 0;
    margin-bottom: 16px;
}

/* Element Counter Row */
.element-counter-row {
   
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.element-counter-label {
    flex: 1;
    align-items: center;
}

.element-counter-label .element-title {
     color: #133759;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 13px;
    padding: 0;
        font-family: 'Inter', sans-serif;
}

.element-counter-label .element-title .element-optional {
    color: #133759;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 13px;
        font-family: 'Inter', sans-serif;
}

.element-price {
    color: #133759;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-left: auto;
}

.element-counter-control {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 134px !important;
    height: 36px !important;
    border-radius: 60px !important;
    border: 1px solid rgba(19, 55, 89, 0.10) !important;
    background: #FFF !important;
    box-shadow: 0 5px 10px 0 rgba(19, 55, 89, 0.05) !important;
    transition: box-shadow 0.3s ease-in-out !important;
    gap: 0 !important;
    position: relative !important;
}

.element-counter-control:hover {
    box-shadow: 0 10px 20px 0 rgba(19, 55, 89, 0.10);
}

.counter-btn {
    position: relative !important;
    width: 44px !important;
    height: 36px !important; 
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: all 0.3s ease-in-out !important;
    outline: none !important;
    border:none !important;
}

.counter-btn:focus {
    outline: none !important;
}

.counter-btn:focus-visible {
    outline: none !important;
}

.counter-btn > svg {
    display: none;
}

.counter-icon-minus,
.counter-icon-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.counter-icon-minus svg {
    width: 7.93px;
    height: 1px;
    display: block;
}

.counter-icon-plus svg {
    width: 7.93px;
    height: 7.93px;
    display: block;
}

.counter-btn:hover .counter-icon-minus rect,
.counter-btn:hover .counter-icon-plus path {
    fill: #133759;
    stroke: #133759;
}

.counter-value {
    width: 43px;
    text-align: center;
    color: #133759;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 13px;
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.counter-value::before,
.counter-value::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background: rgba(144, 175, 206, 0.3);
    top: 0;
}

.counter-value::before {
    left: 0;
}

.counter-value::after {
    right: 0;
}

/* Element Toggle Button */
.element-toggle-btn {
    display: flex !important;
    width: 80px !important;
    height: 32px !important;
    padding: 4px 0 !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(19, 55, 89, 0.10) !important;
    background: #FFF !important;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
    outline: none !important;
    border:none !important;
}

.element-toggle-btn:focus {
    outline: none !important;
}

.element-toggle-btn:focus-visible {
    outline: none !important;
}

.element-toggle-btn .toggle-text {
    color: #90AFCE;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 13px;
    transition: color 0.3s ease-in-out;
}

.element-toggle-btn .toggle-icon-add {
    display: block;
    width: 9px;
    height: 9px;
}

.element-toggle-btn .toggle-icon-remove {
    display: none !important;
    width: 7.93px;
    height: 7.93px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
}

.element-toggle-btn:hover {
    border-color: #133759;
    
}

.element-toggle-btn:hover .toggle-text {
    color: #133759;
}

.element-toggle-btn:hover .toggle-icon-add path {
    fill: #133759;
    stroke: #133759;
}

/* Active state (Usuń) */
.element-toggle-btn.active {
    border-color: #133759;
}

.element-toggle-btn.active .toggle-text {
    color: #133759;
}

.element-toggle-btn.active .toggle-icon-add {
    display: none;
}

.element-toggle-btn.active .toggle-icon-remove {
    display: block !important;
}

/* Hover na aktywnym przycisku (odwrotna kolorystyka) */
.element-toggle-btn.active:hover {
    border-color: #133759;
}

.element-toggle-btn.active:hover .toggle-text {
    color: #133759;
}

.element-toggle-btn.active:hover .toggle-icon-remove path {
    fill: #133759;
    stroke: #133759;
}

.ryglowka-options,
.rygle-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow: visible;
}

.element-info {
    margin-top: 8px;
    color: #666;
    font-size: 13px;
}

.element-price {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.element-price .price-label {
    font-weight: 600;
}

.element-price .price-value {
    font-weight: 600;
    color: #2c3e50;
}

@media (max-width: 1024px) {
    .konfigurator-wizard-steps-section {
        padding: 20px;
    }

    .finalize-navigation{
        margin-bottom: 24px;
    }

    .summary-actions{
        margin-bottom: 24px;
    }

    .konfigurator-wizard-navigation{
        margin-bottom:24px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .konfigurator-visualization {
        min-height: 400px;
        padding: 30px;
    }
}

@media (max-width: 600px) {
    .konfigurator-wizard-steps-section {
        padding: 16px;
    }
    
    .konfigurator-summary {
        padding: 16px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .konfigurator-visualization {
        min-height: 350px;
        padding: 20px;
    }
    
    .hall-wireframe {
        width: 200px;
        height: 140px;
    }
}

/* Finalize Offer Button */
.finalize-offer-btn {
    width: 100%;
    padding: 14px 20px;
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.finalize-offer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Finalize Modal */
.finalize-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.finalize-modal {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.finalize-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.finalize-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.finalize-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.finalize-modal-close:hover {
    color: #2c3e50;
}

.finalize-modal-body {
    padding: 20px;
}

.finalize-section {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.finalize-section h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

/* Pricing Section */

.finalize-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e8ecf1;
}

.finalize-price-row:last-child {
    border-bottom: none;
}

.finalize-price-row.finalize-price-total {
    padding-top: 10px;
    margin-top: 8px;
    border-top: 2px solid #28a745;
    border-bottom: none;
}

.finalize-price-label {
    font-size: 13px;
    color: #666;
}

.finalize-price-total .finalize-price-label {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.finalize-price-value {
    font-size: 14px;
    font-weight: 600;
    color: #28a745;
}

.finalize-price-total .finalize-price-value {
    font-size: 18px;
    font-weight: 700;
}

/* Includes Section */

.finalize-includes ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.finalize-includes li {
    padding: 5px 0;
    padding-left: 24px;
    position: relative;
    color: #2c3e50;
    line-height: 1.5;
    font-size: 13px;
}

.finalize-includes li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 14px;
}

/* Form Section */

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

.finalize-form-row:has(textarea),
.finalize-form-row:has([name="company"]),
.finalize-form-row:has([name="investment_date"]) {
    grid-template-columns: 1fr;
}

.finalize-form-field {
    display: flex;
    flex-direction: column;
}

.finalize-form-field label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
}

.finalize-form-field input,
.finalize-form-field textarea {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.finalize-form-field input:focus,
.finalize-form-field textarea:focus {
    outline: none;
    border-color: #667eea;
}

.finalize-form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.finalize-form-actions {
    margin-top: 15px;
    text-align: center;
}

.finalize-submit-btn {
    padding: 10px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.finalize-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

.finalize-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 1024px) {
    .finalize-modal-overlay {
        padding: 0;
    }
    
    .finalize-modal {
        max-width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .finalize-modal-header {
        padding: 12px 15px;
    }
    
    .finalize-modal-header h2 {
        font-size: 18px;
    }
    
    .finalize-modal-body {
        padding: 15px;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .finalize-section {
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    
    .finalize-section h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .finalize-form-row {
        grid-template-columns: 1fr;
    }
    
    .finalize-form-label {
        font-size: 12px;
    }
    
    .finalize-form-input,
    .finalize-form-textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .finalize-submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Gates Step (Krok 9) */


.gates-size-list{
    margin-top:24px;
}

#gates-count-section{
    margin-top:16px;
}

.gates-type-options {
    margin-top:24px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 12px;
    overflow: visible;
}

.entrance-door-toggle-btn {
    width: 100% !important;
    margin-top:24px;
}

.windows-type-options{
    gap:12px;
}

.gate-type-btn .checkbox-fill,
.gate-type-btn .checkbox-inner,
.entrance-door-toggle-btn .checkbox-fill,
.entrance-door-toggle-btn .checkbox-inner {
    display: none;
}

.gate-type-btn.selected .checkbox-outline,
.entrance-door-toggle-btn.selected .checkbox-outline {
    display: none;
}

.gate-type-btn.selected .checkbox-fill,
.gate-type-btn.selected .checkbox-inner,
.entrance-door-toggle-btn.selected .checkbox-fill,
.entrance-door-toggle-btn.selected .checkbox-inner {
    display: block;
}

.gate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.gate-item .gate-label {
    color: #133759;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 24px;
    flex-shrink: 0;
}

.gate-item .gate-size-select {
    flex: 1;
    max-width: 300px;
}

.gate-item .window-wall-select {
    flex: 1;
    max-width: 300px;
}

#windows-per-wall-section .gate-item .window-wall-select {
    max-width: 88px;
}

.gate-wicket-option {
    margin-bottom: 16px;
}

.custom-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.custom-checkbox-label .gate-wicket-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.custom-checkbox {
    position: relative;
    width: 11px;
    height: 11px;
    border: 1px solid #133759;
    opacity: 0.5;
    flex-shrink: 0;
    transition: all 0.3s ease-in-out;
}

.custom-checkbox-label .checkbox-text {
    margin-left: 12px;
    color: #133759;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
}

.custom-checkbox-label .gate-wicket-checkbox:checked ~ .custom-checkbox {
    background: #133759;
    border-color: #133759;
    opacity: 1;
}

.custom-checkbox-label .gate-wicket-checkbox:checked ~ .checkbox-text {
    opacity: 1;
}

.gates-total {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8ecf1 100%);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.gates-total strong {
    color: #2c3e50;
}

.gates-total .price-value {
    color: #28a745;
    font-weight: 700;
    font-size: 22px;
}

@media (max-width: 1024px) {
    .gate-size-options {
        grid-template-columns: repeat(2, 1fr);
    }
}





.entrance-door-info {
    background: white;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.entrance-door-info h4 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}





.entrance-doors-total {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.entrance-doors-total .price-value {
    font-size: 24px;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .entrance-door-count-options {
        grid-template-columns: 1fr;
    }
}

.windows-info {
    background: #f8f9fa;
}

.windows-info .info-note {
    color: #555;
}

.windows-info strong {
    color: #2c3e50;
}

@media (max-width: 1024px) {
    /* Mobile Carousel Mode */
    html, body {
        overflow-x: hidden;
        position: relative;
    }
    
    .konfigurator-container {
        margin: 0;
        padding: 0;
        gap: 0;
        max-width: 100%;
        overflow: hidden;
        width: 100vw;
    }
    
    .konfigurator-top-section {
        display: flex;
        flex-direction: column-reverse;
        gap: 0;
    }
    
    /* Hide visualization on mobile */
    .konfigurator-visualization {
        display: none;
    }
    
    /* Summary stays on top - compact */
    .konfigurator-summary {
        position: sticky;
        top: 0;
        z-index: 100;
        margin: 0;
        border-radius: 0;
        padding: 12px 15px;
        min-height: auto;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        background: white;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .konfigurator-summary h3 {
        font-size: 14px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .summary-item,
    .summary-price,
    .summary-transport,
    .summary-montaz,
    .summary-covering,
    .summary-gates,
    .summary-entrance-doors,
    .summary-windows,
    .summary-skylights,
    .summary-gutters,
    .summary-sheetwork,
    .summary-assembly-covering {
        padding: 4px 0;
    }
    
    .summary-label {
        font-size: 11px;
    }
    
    .summary-value,
    .summary-value-price {
        font-size: 12px;
    }
    
    .summary-total {
        padding: 6px 0 4px 0;
        margin-top: 6px;
    }
    
    .summary-total .summary-label {
        font-size: 12px;
    }
    
    .summary-total .summary-value-total {
        font-size: 16px;
    }
    
    /* Hide progress bar on mobile to save space */
    .konfigurator-progress {
        display: none;
    }
    
    /* Wizard steps as full-height carousel */
    .konfigurator-wizard-steps-section {
        position: relative;
        overflow: visible;
        min-height: 400px;
        border-radius: 0;
        border: none;
        padding: 0;
        margin: 0;
        box-shadow: none;
    }
    
    .wizard-step {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        min-height: 400px;
        overflow: visible;
        padding: 15px;
        box-sizing: border-box;
        transition: transform 0.3s ease-out, opacity 0.3s ease-out;
        background: white;
    }
    
    /* Visible step */
    .wizard-step:not([style*="display: none"]) {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
        z-index: 10;
        display: block !important;
    }
    
    /* Hidden steps */
    .wizard-step[style*="display: none"] {
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        z-index: 1;
    }
    
    /* Slide animations - disabled, JS uses fade instead */
    
    /* Step title smaller on mobile */
    .step-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    /* Compact step content */
    .step-content {
        padding-bottom: 80px; /* Space for navigation */
    }
    
 
    
    .wizard-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .wizard-btn-prev {
        flex: 0 0 auto;
        min-width: 80px;
    }
    
  
    
    .wizard-btn-skip {
        flex: 0 0 auto;
        min-width: 70px;
    }
    
    /* Finalize button in summary */
    .finalize-offer-btn {
        width: 100%;
        padding: 10px 15px;
        font-size: 13px;
        margin-top: 8px;
    }
    
    /* Compact sections on mobile */
    .covering-section,
    .gates-section,
    .entrance-doors-section,
    .windows-section,
    .skylights-section,
    .sheetmetal-section,
    .assembly-covering-section,
    .transport-assembly-section,
    .covering-type-section,
    .assembly-element {
        padding: 0;
        margin-bottom: 15px;
    }
    
    .covering-section h4,
    .gates-section h4,
    .entrance-doors-section h4,
    .windows-section h4,
    .skylights-section h4,
    .sheetmetal-section h4,
    .assembly-covering-section h4,
    .transport-assembly-section h4,
    .covering-type-section h4,
    .element-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .element-desc {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .ryglowka-options,
    .rygle-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Touch-friendly swipe hint */
    .konfigurator-wizard-steps-section::before {
        content: '← Przesuń palcem →';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 12px;
        color: rgba(0, 0, 0, 0.1);
        pointer-events: none;
        z-index: -1;
        white-space: nowrap;
    }
    
    /* Optimize buttons for mobile touch */
    .option-btn,
    .option-btn-toggle {
        padding: 12px;
     
        touch-action: manipulation;
    }
    
    .option-btn .option-icon,
    .option-btn-toggle .option-icon {
        font-size: 24px;
        margin-bottom: 4px;
    }
    
    .option-btn .option-label,
    .option-btn-toggle .option-label {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .option-btn .option-label small,
    .option-btn-toggle .option-label small {
        font-size: 11px;
        margin-top: 2px;
    }
    
    /* Grid optimizations */
    .options-grid-small,
    .options-grid-medium,
    .options-grid-large {
        gap: 10px;
        margin-top: 10px;
    }
    

    
    .konfigurator-input {
        padding: 10px 12px;
        font-size: 14px;
        touch-action: manipulation;
    }
    
    /* Option details */
    .option-details {
        padding: 8px;
        margin-top: 10px;
    }
    
    .detail-item {
        padding: 4px 0;
        font-size: 12px;
    }
    
    .detail-label {
        font-size: 11px;
    }
    
    .detail-value {
        font-size: 12px;
    }
    
    /* Gate items etc. */
    .gate-item {
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    
    .gate-item h5 {
        font-size: 14px;
        margin-bottom: 8px;
    }
}

/* ============================================
   RESPONSIVE - NEW LAYOUT
   ============================================ */
@media (max-width: 1024px) {
    .konfigurator-main-layout {
        flex-direction: column;
    }
    
    .konfigurator-sidebar {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: auto;
    }
    
    .konfigurator-sidebar.collapsed {
        height: 60px;
    }
    
    .konfigurator-visualization-area {
        height: 60vh;
    }
    
    .konfigurator-visualization {
        height: 60vh;
    }
    
    .konfigurator-logo {
        display: none;
    }
}

/* ===================================
   CUSTOM SLIDER (Krok 12 - Świetliki)
   =================================== */

.custom-slider-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
    align-items: flex-start;
}

.custom-slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 182px;
    height: 11.106px;
    border-radius: 32.308px;
    background: rgba(144, 175, 206, 0.25);
    outline: none;
    position: relative;
    cursor: pointer;
}

.custom-slider-input::-webkit-slider-track {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 11.106px;
    border-radius: 32.308px;
    background: transparent;
}

.custom-slider-input::-moz-range-track {
    width: 100%;
    height: 11.106px;
    border-radius: 32.308px;
    background: transparent;
    border: none;
}

.custom-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 31.5px;
    height: 31.5px;
    border-radius: 31.5px;
    border: 0.808px solid rgba(19, 55, 89, 0.10);
    background-color: #FFF;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="5.149" fill="%2390AFCE"/></svg>');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    cursor: pointer;
    position: relative;
    box-shadow: 
        0 28.269px 8.077px 0 rgba(144, 175, 206, 0.00),
        0 18.577px 7.269px 0 rgba(144, 175, 206, 0.01),
        0 10.5px 6.462px 0 rgba(144, 175, 206, 0.05),
        0 4.846px 4.846px 0 rgba(144, 175, 206, 0.09),
        0 0.808px 2.423px 0 rgba(144, 175, 206, 0.10);
    /* Smooth rendering fixes */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

.custom-slider-input::-moz-range-thumb {
    width: 31.5px;
    height: 31.5px;
    border-radius: 31.5px;
    border: 0.808px solid rgba(19, 55, 89, 0.10);
    background-color: #FFF;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="5.149" fill="%2390AFCE"/></svg>');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    cursor: pointer;
    position: relative;
    box-shadow: 
        0 28.269px 8.077px 0 rgba(144, 175, 206, 0.00),
        0 18.577px 7.269px 0 rgba(144, 175, 206, 0.01),
        0 10.5px 6.462px 0 rgba(144, 175, 206, 0.05),
        0 4.846px 4.846px 0 rgba(144, 175, 206, 0.09),
        0 0.808px 2.423px 0 rgba(144, 175, 206, 0.10);
    /* Smooth rendering fixes */
    backface-visibility: hidden;
    transform: translateZ(0);
    -moz-osx-font-smoothing: grayscale;
}

.custom-slider-value {
    color: #133759;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 13px;
    text-align: left;
}

/* ===================================
   MEDIA QUERIES
   =================================== */

@media (max-width: 1024px) {
    .sidebar-header {
        font-size: 24px !important;
        line-height: 28px !important;
    }

    
    .progress-text {
        font-size: 14px;
    }
    
    .wizard-btn {
        font-size: 11px;
        height: 38px;
    }
    
    .wizard-btn-next {
        width: 80px;
    }
}

/* ========================================
   KROK 15: Formularz kontaktowy
======================================== */

.finalize-title {
    color: var(--Dark-Blue, #133759);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 26px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    margin-bottom: 8px !important;
}

.finalize-subtitle {
    color: var(--Dark-Blue, #133759);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 26px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    margin-bottom: 24px;
}

.step-finalize-form {
    padding: 0 !important;
}

.finalize-contact-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.finalize-contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.finalize-contact-form label {
    display: none; /* Labele ukryte - używamy placeholderów */
}

.finalize-contact-form label .required {
    color: #F07913;
}

.finalize-contact-form input[type="text"],
.finalize-contact-form input[type="email"],
.finalize-contact-form input[type="tel"],
.finalize-contact-form input[type="date"],
.finalize-contact-form textarea {
    display: flex;
    padding: 12px 16px;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    border: 2px solid rgba(19, 55, 89, 0.10);
    background: rgba(232, 239, 246, 0.50);
    color: #133759;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    outline: none;
    transition: all 0.3s ease;
}

.finalize-contact-form input:focus,
.finalize-contact-form textarea:focus {
    border-color: #90AFCE;
    background: #FFF;
}

.finalize-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon input {
    width: 100%;
    padding-right: 40px;
}

.input-with-icon input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 32px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
}

.input-with-icon .input-icon-calendar {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 15px;
    height: 14px;
    transition: fill 0.2s ease;
}

.input-with-icon:hover .input-icon-calendar path,
.input-with-icon input:focus ~ .input-icon-calendar path {
    fill: #133759;
}

/* Nawigacja w formularzu finalizacyjnym (krok 15) */
.finalize-navigation {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: space-between;
}

/* ========================================
   KROK 16: Podsumowanie oferty
======================================== */

.summary-title {
    color: var(--Dark-Blue, #133759);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: 40px;
    margin-bottom: 24px !important;
}

.step-summary-final {
    padding: 0 !important;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
    padding: 16px 0;
    border-top: 1px solid rgba(19, 55, 89, 0.10);
    border-bottom: 1px solid rgba(19, 55, 89, 0.10);
}

.summary-list-item {
    color: #133759;
    font-size: 12px;
    font-family: Inter;
    font-style: normal;
    font-weight: 400;
    line-height: 19px;
    padding-left: 16px;
    position: relative;
}

.summary-list-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #133759;
    font-weight: 600;
}

.summary-price-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}

.summary-total-price {
    color: var(--Dark-Blue, #133759);
    font-size: 26px;
    font-style: normal;
    font-weight: 500;
    line-height: 26px;
}

.summary-vat-note {
    color: var(--Dark-Blue, #133759);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-send-quote,
.btn-back-config {
    display: flex !important;
    width: 193px !important;
    height: 42px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    border-radius: 200px !important;
    border: 0 solid !important;
    color: #FFF !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.btn-send-quote {
    background: #133759  !important;
    border-color: #133759 !important;
}

.btn-send-quote:hover {
    background: #0f2a44 !important;
}

.btn-back-config {
    background: #F07913 !important;
    border-color: #F07913 !important;
}

.btn-back-config:hover {
    background: #d66a10 !important;
}

/* ============================================
   MOBILE DRAWER TOGGLE (hidden on desktop)
   ============================================ */
.konfigurator-mobile-header {
    display: none;
}

.mobile-drawer-bar {
    display: none;
}

.sidebar-logo-section{
    display: none;
}

/* ============================================
   MOBILE LAYOUT (≤1024px)
   ============================================ */
@media (max-width: 1024px) {

    /* --- Kontener: przezroczysty, nie przeszkadza --- */
    .konfigurator-wizard-container {
        background: transparent !important;
        min-height: 100vh;
        position: relative;
    }

    .konfigurator-main-layout {
        display: block;
        min-height: 0;
        padding: 0;
        gap: 0;
    }
    .sidebar-logo-section{
    display: block;
}

    /* --- Ukryj desktop sygnet i toggle --- */
    .konfigurator-logo {
        display: none !important;
    }

    .sidebar-toggle {
        display: none !important;
    }

    /* --- Ukryj logo na renderze 3D na mobile --- */
    .konfigurator-render-logo {
        display: none !important;
    }

    /* --- Logo mobile: ukryj stary fixed header (logo jest teraz w sidebar-logo-section) --- */
    .konfigurator-mobile-header {
        display: none !important;
    }

    .konfigurator-mobile-logo {
        max-height: 44px;
        width: auto;
        pointer-events: auto;
    }

    /* --- Logo sekcja w sidebarze --- */
    .sidebar-logo-section {
        width: 151.486px !important;
        height: 155px !important;
        border-radius: 0 0 100px 100px !important;
        background: #FFF !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        align-self: center !important;
    }

    .sidebar-logo-img {
        width: 117px !important;
        height: 117px !important;
        aspect-ratio: 3/4 !important;
        object-fit: contain !important;
        max-height: none !important;
    }

    /* --- Render 3D: fixed pełny ekran w tle --- */
    .konfigurator-visualization-area {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 1 !important;
        pointer-events: auto !important;
        flex: none !important;
    }

    .konfigurator-visualization {
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
    }

    .visualization-3d-container {
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
    }

    #hall-3d-canvas {
        width: 100% !important;
        height: 100% !important;
    }

    #render-placeholder {
        z-index: 3 !important;
    }

    /* --- Loading overlay: zawsze na pierwszym planie --- */
    #viewer3d-loading-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 9990 !important;
    }

    /* --- Widget lokalizacji: ukryty na mobile/tablet --- */
    /* (przeniesiony do własnego @media poniżej) */

    /* --- Panel wizard: fixed, rośnie od dołu w górę --- */
    .konfigurator-sidebar {
        position: fixed !important;
      
        left: 5% !important;
        width: 90% !important;
        max-width: 90% !important;
       
        height: calc(92svh) !important;
        min-height: 0 !important;
        max-height: none !important;
        background: var(--To-Belki, #F7FAFD) !important;
        opacity: 0.95;
        border-radius: 20px !important;
        border: 0px solid var(--obrys-belki) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        z-index: 100 !important;
        transform: translateY(0) !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
    }

    /* --- Sidebar content: scrolluje w środku panelu --- */
    .sidebar-content {
        padding: 0px 24px 16px !important;
        overflow-y: auto !important;
        flex: 1 !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        background: transparent !important;
        height: auto !important;
    }

    /* --- Ukryj natywny scrollbar (zastępuje custom JS scrollbar) --- */
    .sidebar-content {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .sidebar-content::-webkit-scrollbar {
        display: none !important;
    }

    /* --- Custom scrollbar: track --- */
    .cs-track {
        position: absolute !important;
        right: 13px !important;
        width: 6.334px !important;
        pointer-events: none !important;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    /* --- Custom scrollbar: thumb --- */
    .cs-thumb {
        position: absolute !important;
        left: 0 !important;
        width: 6.334px !important;
        min-height: 24px !important;
        border-radius: 40px !important;
        background: #133759 !important;
        pointer-events: auto !important;
        cursor: grab !important;
    }

    .cs-thumb:active {
        cursor: grabbing !important;
    }

    /* --- Resetuj STARY 768px carousel: position:absolute na krokach --- */
    .wizard-step {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        transform: none !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .step-content {
        background: transparent !important;
        padding-bottom: 0 !important;
    }

    .konfigurator-wizard-steps-wrapper,
    .konfigurator-wizard-steps,
    .sidebar-header-section {
        background: transparent !important;
    }

    /* --- Pokaż progress bar --- */
    .konfigurator-progress {
        display: flex !important;
    }

    /* --- Kroki: bez wewnętrznego scrolla (sidebar scrolluje) --- */
    .konfigurator-wizard-steps-wrapper {
        flex: none !important;
        overflow: visible !important;
        padding-right: 0 !important;
        margin-right: 0 !important;
    }

    .konfigurator-wizard-steps {
        max-height: none !important;
        overflow: visible !important;
        height: auto !important;
    }

    /* --- Nagłówek panelu --- */
    .sidebar-header {
        font-size: 22px !important;
        line-height: 1.3 !important;
        text-align: center;
        margin-top: 14px;
    }

    /* --- Nawigacja: resetuj stary position:fixed, zostaje w panelu --- */
    .konfigurator-wizard-navigation {
        position: static !important;
        width: 100% !important;
        background: transparent !important;
      
        border-top: none !important;
        box-shadow: none !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
       
    }

    /* --- Przycisk Zwiń/Rozwiń: ZAWSZE fixed na dole ekranu --- */
    .mobile-drawer-bar {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 61px !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px 0 12px !important;
        background: transparent !important;
        border-top: none !important;
        z-index: 200 !important;
        box-sizing: border-box !important;
    }

    .mobile-drawer-toggle {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 189px !important;
        height: 41px !important;
        padding: 9.111px 29.611px !important;
        background: #F07913 !important;
        border: none !important;
        border-radius: 113.889px !important;
        cursor: pointer !important;
        transition: background 0.2s ease !important;
    }

    .mobile-drawer-toggle:hover {
        background: #d96c0e !important;
    }

    .mobile-drawer-text {
        color: #FFF !important;
        font-size: 12.173px !important;
        font-weight: 500 !important;
        line-height: 22.473px !important;
        white-space: nowrap !important;
    }

    .mobile-drawer-icon {
        display: flex;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    /* --- Zwinięty: panel wyjeżdża w dół (szufladka) --- */
    .konfigurator-sidebar.mobile-collapsed {
        transform: translateY(calc(100% + 61px)) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* --- Kamera: nad panelem --- */
    .camera-controls {
        position: fixed !important;
        bottom: 72px !important;
        right: 12px !important;
        z-index: 110 !important;
    }
}

#step-8 h4{
    color: #133759;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 13px; /* 86.667% */
    padding: 0;
}


.gates-section .option-desc{
    margin:16px 0px !important;
}

#entrance-doors-counter-section .element-counter-row{
    margin-top:16px !important;
}

#windows-distribution-section{
    margin-top:16px !important;
}

.assembly-covering-section{
    margin-top:24px !important;
}

.windows-section .element-counter-row{
    margin-top: 16px !important;
}

#step-13 .sheetmetal-sheetwork-options{
    margin-top:16px !important;
}

.sheetmetal-section .option-desc{
    margin-top:16px !important;
}

.trapezowa-options{
    grid-template-columns: repeat(1, 1fr);
    margin-bottom:16px !important;
}

.skylights-section .option-desc{
    margin-top:16px !important;
}

.wall-choice-options {

    grid-template-columns: repeat(2, 1fr);
}

#step-15 .step-desc{
    color: var(--Dark-Blue, #133759);

font-size: 26px;
font-style: normal;
font-weight: 500;
line-height: 32px; /* 123.077% */
margin-bottom:46px;
}

/* ============================================
   UKRYCIE WYŚWIETLANIA CEN I OBLICZEŃ
   (DEBUG tabela pozostaje widoczna)
   ============================================ */

/* Panel podsumowania po prawej stronie */
.konfigurator-top-section,
.konfigurator-summary {
    display: none !important;
}

/* Sekcje cen i obliczeń wewnątrz kroków wizarda */
.option-details,
.element-price,
.detail-item,
#assembly-covering-price,
#ryglowka-price,
#slupy-price,
#sruby-price,
#kotwy-price,
#transport-price,
#montaz-price,
#hall-price-section,
#hall-price-display,
#hall-price-details,
.hall-price-display,
.price-breakdown,
.price-details,
[id$="-total-section"],
[id$="-price-section"],
[id$="-calc-section"] {
    display: none !important;
}


#step-6 .step-desc{
margin-bottom:24px !important;

}

#pir-walls-section{
    margin-top:24px;
}

#step-15 .form-group input,
#step-15 .form-group textarea {
    background: #FFF;
    color: #133759;
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 24px;
}

#step-15 .form-group input::placeholder,
#step-15 .form-group textarea::placeholder {
    color: #133759;
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    opacity: 0.5;
}

.mc-title{
    color: var(--Dark-Blue, #133759);
    font-family: "General Sans Variable";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px; /* 100% */
}

#debug-calc-container{
    z-index: 10;
    position: relative;
}

.sidebar-subtitle{

    color: #133759 !important;
    font-family: "General Sans Variable";
    font-size: 26px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px; /* 123.077% */
    margin-bottom: 46px !important;
    opacity: 1 !important;
}

#frame-spacing-list{
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    #location-widget {
        display: none !important;
    }
}

/* ===== Warning Modal (snow zone) ===== */
.kfg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 55, 89, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 16px;
    box-sizing: border-box;
}

.kfg-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(19, 55, 89, 0.2);
    animation: kfgModalIn 0.25s ease;
    text-align: center;
}

@keyframes kfgModalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.kfg-modal-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.kfg-modal-title {
    margin: 0 0 14px 0 !important;
    color: #133759 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    font-family: 'Inter', sans-serif !important;
}

.kfg-modal-message {
    color: #546e8a;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 24px;
    font-weight: 400;
}

.kfg-modal-contact {
    background: rgba(19, 55, 89, 0.05);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: left;
}

.kfg-modal-contact-row {
    margin-bottom: 14px;
}

.kfg-modal-contact-row:last-child {
    margin-bottom: 0;
}

.kfg-modal-contact-label {
    font-size: 11px;
    color: #90AFCE;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.kfg-modal-contact-value {
    font-size: 15px;
    color: #133759;
    font-weight: 600;
}

.kfg-modal-contact-link {
    color: #133759 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

.kfg-modal-contact-link:hover {
    text-decoration: underline !important;
}

.kfg-modal-btn {
    width: 100% !important;
    height: 44px !important;
    border-radius: 200px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

#windows-per-wall-section h4{
    color: #133759 !important;
    font-family: Inter !important;
    font-size: 15px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 18px !important /* 86.667% */
}

#viewer-5m-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f5fa;
    pointer-events: none;
}

.viewer-5m-message {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(19, 55, 89, 0.18);
    border-radius: 12px;
    padding: 14px 22px;
    box-shadow: 0 4px 24px rgba(19, 55, 89, 0.12);
}

.viewer-5m-message span {
    color: #133759;
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}


#skylights-polaciowe-count-section .element-counter-row{
    margin-top: 16px !important;
}

/* ─── Step 14: Assembly Covering redesign ─── */

.assembly-covering-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.assembly-choice-btn.hall-type-btn {
    height: auto !important;
    min-height: 56px !important;
    padding: 12px 20px !important;
    align-items: center !important;
    gap: 14px !important;
}

.assembly-btn-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.assembly-choice-btn .btn-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    opacity: 1 !important;
}

.assembly-choice-btn.selected .btn-title,
.assembly-choice-btn:hover .btn-title {
    opacity: 1 !important;
}

.assembly-btn-price {
    color: #F07913;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.assembly-choice-btn.selected .assembly-btn-price {
    color: #F07913;
}

.assembly-btn-sub {
    color: #6B829A;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

.assembly-price-preview {
    background: rgba(240, 121, 19, 0.08);
    border: 1px solid rgba(240, 121, 19, 0.25);
    border-radius: 8px;
    padding: 9px 14px;
    margin-top: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #7a4010;
    line-height: 1.5;
}

#assembly-covering-details {
    margin-top: 10px;
    padding: 9px 14px;
    background: rgba(19, 55, 89, 0.05);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #133759;
    line-height: 1.5;
}

/* ─── Assembly viewer badge ─── */

.assembly-viewer-badge {
    position: absolute;
    bottom: 56px;
    left: 16px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(240, 121, 19, 0.45);
    box-shadow: 0 4px 16px rgba(19, 55, 89, 0.14);
    backdrop-filter: blur(4px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.assembly-viewer-badge.badge-selected {
    border-color: rgba(19, 55, 89, 0.25);
}

.assembly-viewer-badge.badge-no {
    border-color: rgba(107, 130, 154, 0.4);
}

.assembly-badge-icon {
    font-size: 14px;
    line-height: 1;
}

.assembly-badge-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #133759;
    white-space: nowrap;
}

.assembly-viewer-badge.badge-pending .assembly-badge-text {
    color: #c05a00;
}

.assembly-viewer-badge.badge-no .assembly-badge-text {
    color: #6B829A;
}