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

/* Import Google Fonts - General Sans Variable + Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* General Sans Variable from CDN */
@font-face {
    font-family: 'General Sans Variable';
    src: url('https://fonts.cdnfonts.com/s/100616/GeneralSans-Variable.woff') format('woff');
    font-weight: 100 900;
    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: -30px;
    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: 100;
    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;
}

.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;
    gap: 20px;
    overflow: visible;
    flex: 1;
}

.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;
    font-style: normal;
    font-weight: 500;
    line-height: 40px;
    margin: 0;
}

/* ============================================
   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: 600;
    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;
    padding-right: 10px;
    margin-right: -10px;
}

.konfigurator-wizard-steps {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-y: auto;

    max-height: 68vh;
}

/* Scrollbar Styling - z prawej strony */
.konfigurator-wizard-steps::-webkit-scrollbar {
    width: 6px;
}

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

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

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

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

.wizard-step {
    padding: 20px 0;
    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;
}

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

.sidebar-content .konfigurator-wizard-navigation {
    padding-top: 20px;
    border-top: 1px solid var(--obrys-belki);
    flex-shrink: 0;
}

/* ============================================
   INPUT FIELDS
   ============================================ */
.konfigurator-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible !important;
}

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

.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;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    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;
    gap: 8px;
    overflow: visible;
}

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

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

.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;
}

.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);
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #133759;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

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

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

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

.konfigurator-location-widget {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    opacity: 0.65;
    transition: all 0.3s ease;
    max-width: 280px;
    z-index: 10;
}

.konfigurator-location-widget:hover {
    opacity: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.konfigurator-location-widget h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
}

.location-widget-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
    color: #555;
}

.location-widget-item .label {
    font-weight: 600;
    color: #2c3e50;
}

.location-widget-item .value {
    color: #0073aa;
    font-weight: 600;
}

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

.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 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

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

.covering-type-section {
    margin-bottom: 30px;
}

.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-type-section {
    margin-bottom: 30px;
}

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

.covering-options h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.covering-section,
.gates-section,
.entrance-doors-section,
.windows-section,
.skylights-section,
.sheetmetal-section,
.assembly-covering-section,
.transport-assembly-section,
.covering-type-section {
    margin-bottom: 15px;
}





.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;
}

.step-description,
.step-desc {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.option-desc {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.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 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.element-desc {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.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: 15px;
    margin-top: 15px;
}

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

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

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

.konfigurator-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.konfigurator-field label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

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

.konfigurator-spinner {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.spinner-icon {
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin-normal 0.8s linear infinite;
}

@keyframes spin-normal {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.konfigurator-status {
    font-size: 12px;
    font-weight: 600;
    min-height: 18px;
    margin-top: 4px;
}

.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;
    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 {
    padding: 12px 24px;
    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: 600;
}

.konfigurator-place-wrapper {
    position: relative;
}

.location-details,
.config-details {
    margin-top: 15px;
    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 {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    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: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 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    overflow: visible;
}

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

.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: 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

#frame-spacing-selector .step-desc {
    margin-bottom: 15px;
    color: #555;
    font-weight: 600;
}

.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::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #e8ecf1;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

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

.assembly-element .element-title {
    margin: 0 0 12px 0;
    color: #133759;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 13px;
}

.assembly-element .element-title .element-optional {
    color: #133759;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 13px;
}

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

.element-counter-label {
    flex: 1;
}

.element-counter-label .element-title {
    margin: 0;
    color: #133759;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 13px;
}

.element-counter-label .element-title .element-optional {
    color: #133759;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 13px;
}

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

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

.counter-btn {
    position: relative;
    width: 44px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease-in-out;
    outline: 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: 600;
    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;
    width: 80px;
    height: 32px;
    padding: 4px 0;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
    border: 1px solid rgba(19, 55, 89, 0.10);
    background: #FFF;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    outline: 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: 600;
    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: #90AFCE;
}

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

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

.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;
    }
    
    .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: 768px) {
    .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-type-options {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    overflow: visible;
}

.entrance-door-toggle-btn {
    width: 100% !important;
}

.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: 20px;
}

.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: 768px) {
    .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: 768px) {
    .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: 768px) {
    /* 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 - apply via JS */
    .wizard-step.slide-out-left {
        transform: translateX(-100%);
        opacity: 0;
    }
    
    .wizard-step.slide-out-right {
        transform: translateX(100%);
        opacity: 0;
    }
    
    .wizard-step.slide-in-from-left {
        transform: translateX(-100%);
        opacity: 0;
        animation: slideIn 0.3s ease-out forwards;
    }
    
    .wizard-step.slide-in-from-right {
        transform: translateX(100%);
        opacity: 0;
        animation: slideIn 0.3s ease-out forwards;
    }
    
    @keyframes slideIn {
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    /* Step title smaller on mobile */
    .step-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    /* Compact step content */
    .step-content {
        padding-bottom: 80px; /* Space for navigation */
    }
    
    /* Navigation fixed at bottom */
    .konfigurator-wizard-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        padding: 10px 15px;
        border-top: 1px solid #e8ecf1;
        background: white;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        z-index: 99;
        flex-direction: row;
        gap: 8px;
    }
    
    .wizard-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .wizard-btn-prev {
        flex: 0 0 auto;
        min-width: 80px;
    }
    
    .wizard-btn-next,
    .wizard-btn-finish {
        flex: 1;
    }
    
    .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;
        min-height: 60px;
        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;
    }
    
    /* Input fields */
    .konfigurator-field {
        margin-bottom: 12px;
    }
    
    .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: 768px) {
    .sidebar-header {
        font-size: 24px;
        line-height: 28px;
    }
    
    .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: 16px;
}

.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-icon-calendar {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 15px;
    height: 14px;
}

/* 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: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    padding-left: 16px;
    position: relative;
}

.summary-list-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #90AFCE;
    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;
    width: 193px;
    height: 42px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 200px;
    border: 0 solid;
    color: #FFF;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

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

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

















