.ks-step-container { background: #fff; padding: 25px; border-radius: 0px; margin-bottom: 20px; font-family: sans-serif; }

/* Pasek postępu */
.ks-progress-bar { display: flex; justify-content: space-between; border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 25px; }
.ks-step-link { flex: 1; text-align: center; color: #aaa; font-weight: bold; font-size: 15px; padding: 10px 5px; cursor: default; transition: 0.3s; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ks-step-circle { width: 30px; height: 30px; border-radius: 50%; background: #eee; color: #888; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; transition: 0.3s; }
.ks-step-link.active { color: #c72129; border-bottom: 3px solid #c72129; margin-bottom: -17px; }
.ks-step-link.active .ks-step-circle { background: #c72129; color: #fff; }
.ks-step-link.completed { color: #333; cursor: pointer; }
.ks-step-link.completed .ks-step-circle { background: #333; color: #fff; }
.ks-step-link.completed:hover { color: #c72129; }
.ks-step-link.completed:hover .ks-step-circle { background: #c72129; }

/* Grid Formularza */
.ks-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.ks-input-group label { display: block; font-weight: bold; margin-bottom: 5px; font-size: 14px; color: #333; }
.ks-input-group input:not([type="radio"]):not([type="checkbox"]), .ks-input-group select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 0px; box-sizing: border-box; transition: 0.3s; }

/* WALIDACJA BŁĘDÓW */
.ks-input-error { border-color: #c72129 !important; background-color: #fff8f8; }
.ks-error-msg { color: #c72129; font-size: 12px; margin-top: 5px; display: none; font-weight: normal; }

/* Układy sali - Kafelki z SVG (3 w rzędzie) */
.ks-uklady-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 10px; }
.ks-uklad-label { cursor: pointer; text-align: center; }
.ks-uklad-label input[type="radio"] { display: none; } 
.ks-uklad-box { border: 2px solid #eee; border-radius: 0px; padding: 15px 10px; transition: 0.3s; background: #fafafa; display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; box-sizing: border-box; justify-content: center; }
.ks-uklad-box img { width: 50px; height: 50px; opacity: 0.6; transition: 0.3s; }
.ks-uklad-box span { font-weight: bold; color: #555; }
.ks-uklad-label input[type="radio"]:checked + .ks-uklad-box { border-color: #c72129; background: #fae8e9; box-shadow: 0 2px 8px rgba(199, 33, 41, 0.15); }
.ks-uklad-label input[type="radio"]:checked + .ks-uklad-box img { opacity: 1; filter: invert(21%) sepia(87%) saturate(3025%) hue-rotate(345deg) brightness(87%) contrast(92%); }
.ks-uklad-label input[type="radio"]:checked + .ks-uklad-box span { color: #c72129; }

/* Usługi Dodatkowe */
.ks-uslugi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; margin-bottom: 20px; }
.ks-usluga-card { border: 1px solid #ddd; border-radius: 0px; overflow: hidden; text-align: center; display: flex; flex-direction: column; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.ks-usluga-card img { width: 100%; height: 110px; object-fit: cover; }
.ks-usluga-info { padding: 12px; flex-grow: 1; font-size: 14px; display: flex; flex-direction: column; justify-content: center; }
.ks-usluga-info span { color: #c72129; font-weight: bold; font-size: 15px; margin-top: 5px; }
.ks-usluga-dodaj { display: block; background: #f8f9fa; padding: 10px; border-top: 1px solid #ddd; cursor: pointer; font-weight: bold; font-size: 14px; transition: 0.2s; margin: 0; }
.ks-usluga-dodaj:hover { background: #fae8e9; color: #c72129; }

/* Wyniki Sali - Ikonki pojemności */
.ks-room-capacities { display: flex; gap: 20px; margin-top: 10px; margin-bottom: 15px; border-top: 1px dashed #eee; padding-top: 10px; }
.ks-capacity-item { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: bold; color: #555; }
.ks-capacity-item img { width: 22px; height: 22px; opacity: 0.8; }

/* Galeria i Slider */
.ks-gallery-wrapper {
    position: relative;
    margin-bottom: 20px;
}
.ks-gallery {
    display: flex;
    overflow-x: hidden; /* Ukrywamy dolny scrollbar */
    gap: 0;
    border-radius: 0px;
    aspect-ratio: 16 / 9; /* Wymuszenie proporcji */
}
.ks-gallery img {
    width: 100%;
    height: 100%;
    flex-shrink: 0 !important; /* Kluczowe: nie pozwala zdjęciom się zgniatać i wymusza slider */
    object-fit: cover;
    cursor: zoom-in;
}

/* Strzałki nawigacyjne */
.ks-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: 1px solid #fff;
    width: 40px;
    height: 40px;
    border-radius: 0px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    transition: 0.3s;
    opacity: 0.7;
}
.ks-gallery-wrapper:hover .ks-nav-btn, .ks-nav-btn:hover { 
    opacity: 1; 
    background-color: #fff;
    color: #333;
}
.ks-prev { left: 10px; }
.ks-next { right: 10px; }

/* Lightbox - ulepszenie */
#ks-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}
#ks-lightbox img {
    max-width: 95%;
    max-height: 85%;
    object-fit: contain;
    border: 0px solid #fff;
}

.ks-btn-wybierz { background: #c72129; color: #fff; border: none; padding: 12px 20px; border-radius: 0px; cursor: pointer; font-size: 16px; font-weight: bold; width: 100%; transition: 0.3s; }
.ks-btn-wybierz:hover { background: #a61b22; }
.ks-info-list { background: #f9f9f9; padding: 15px; border-left: 3px solid #c72129; margin-top: 10px; }
#ks-sale-wyniki{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px;}
@media (max-width: 600px) { 
    .ks-grid-2col { grid-template-columns: 1fr; } 
    .ks-uklady-grid { grid-template-columns: repeat(2, 1fr); } /* Siatka 2x2 na telefonach */
    .ks-nav-btn { opacity: 1; }
    #ks-sale-wyniki{ grid-template-columns: 1fr; gap: 16px;}
}