.in-konfigurator .sidebar {
    display: none;
}

.in-konfigurator .content-inner {
    margin: auto;
}

.konfigurator {
    margin-bottom: 20px;
}

/* Progress Bar */
.konfigurator .progress-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.konfigurator .progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
}

.konfigurator .progress-fill {
    height: 100%;
    background: #239ceb;
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0;
    /* výchozí stav, vyplní se skriptem */
    top: -29px;
    position: relative;
}

.konfigurator .progress-steps {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.konfigurator .step {
    text-align: center;
    padding: 15px 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.konfigurator .step.active {
    background: #239ceb;
    color: white;
}

.konfigurator .step:not(.active):hover {
    background: #f0f0f0;
}

.konfigurator .step-icon {
    font-size: 20px;
    margin-bottom: 8px;
}

.konfigurator .step span {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.konfigurator .step-status {
    font-size: 13px;
}

/* Main Content */
.konfigurator .main-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

.konfigurator .step-content {
    display: none;
}

.konfigurator .step-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.konfigurator .step-content h2 {
    color: #239ceb;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

/* Options Grid */
.konfigurator .options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.konfigurator .option-card {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

/* Barevné zvýraznění karet podle data-option (pro krok Barvy) */
.konfigurator .option-card[data-option] {
    border-color: var(--accent, #e0e0e0);
}

.konfigurator .option-card[data-option]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: var(--accent, #e0e0e0);
    opacity: 0.15;
    border-radius: 15px;
    z-index: 0;
}

.konfigurator .option-card[data-option] .option-content {
    position: relative;
    z-index: 1;
}

/* Definice akcentních barev podle hodnoty data-option */
.konfigurator .option-card[data-option="cerna"] {
    --accent: #2c2c2c;
}

.konfigurator .option-card[data-option="bila"] {
    --accent: #cccccc;
}

.konfigurator .option-card[data-option="seda"] {
    --accent: #808080;
}

.konfigurator .option-card[data-option="ral"] {
    --accent: #ff6600;
}

.konfigurator .option-card[data-option="antracit"] {
    --accent: #383E42;
}

.konfigurator .option-card[data-option="grafit"] {
    --accent: #1F2326;
}

.konfigurator .option-card[data-option="hneda"] {
    --accent: #4E3B2C;
}

.konfigurator .option-card[data-option="stribrna"] {
    --accent: #C0C0C0;
}

.konfigurator .option-card[data-option="zelena"] {
    --accent: #2E7D32;
}

.konfigurator .option-card:hover {
    border-color: #239ceb;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.konfigurator .option-card.selected {
    border-color: #239ceb;
}

.konfigurator .option-image {
    margin-bottom: 15px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.konfigurator .option-image img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.konfigurator .color-sample {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    margin: 0 auto;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.konfigurator .option-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.konfigurator .option-content input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #239ceb;
}

.konfigurator .option-content label {
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

/* Gate Details */
.konfigurator .gate-details {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
}

.konfigurator .gate-details h3 {
    color: #239ceb;
    margin-bottom: 20px;
    font-size: 17px;
}

.konfigurator .details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.konfigurator .panel-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) auto;
    gap: 15px;
    align-items: end;
    margin-bottom: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.konfigurator .input-group {
    display: flex;
    flex-direction: column;
}

.konfigurator .input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.konfigurator .input-group input,
.konfigurator .input-group select,
.konfigurator .input-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.konfigurator .input-group input:focus,
.konfigurator .input-group select:focus,
.konfigurator .input-group textarea:focus {
    outline: none;
    border-color: #239ceb;
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.konfigurator .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.konfigurator .checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #239ceb;
}

.konfigurator .checkbox-group label {
    font-weight: 600;
    cursor: pointer;
}

/* Phone Input */
.konfigurator .phone-group .phone-input {
    display: flex;
    gap: 10px;
}

.konfigurator .phone-group select {
    flex: 0 0 100px;
}

.konfigurator .phone-group input {
    flex: 1;
}

/* Buttons */
.konfigurator .add-button,
.konfigurator .remove-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.konfigurator .add-button {
    background: #239ceb;
    color: white;
}

.konfigurator .add-button:hover {
    background: #0044aa;
    transform: translateY(-2px);
}

.konfigurator .remove-button {
    background: transparent;
    color: #e74c3c;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: absolute;
    top: 8px;
    right: 8px;
    transition: all 0.2s ease;
    opacity: 0.7;
    cursor: pointer;
}

.konfigurator .remove-button:hover {
    transform: scale(1.05);
}

/* Skryj remove button u prvního řádku (původního) */
.konfigurator .panel-row:first-child .remove-button {
    display: none;
}

/* Zobraz remove button jen u nově přidaných řádků */
.konfigurator .panel-row:not(:first-child) .remove-button {
    display: flex;
}

/* Contact Form */
.konfigurator .contact-form {
    margin-bottom: 40px;
}

.konfigurator .contact-form ::placeholder {
    color: #4d4d4d;
    /* Barva textu */
    font-style: italic;
    /* Styl písma */
    font-weight: 400;
    /* Tloušťka písma */
}

.konfigurator .contact-form h3 {
    color: #239ceb;
}

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

.konfigurator .form-row .input-group {
    margin-bottom: 0;
}

/* Order Summary */
.konfigurator .order-summary {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    border: 2px solid #e0e0e0;
}

.konfigurator .order-summary h3 {
    color: #239ceb;
    margin-bottom: 20px;
    font-size: 15px;
}

.konfigurator .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.konfigurator .summary-item-title {
    font-weight: 600;
    color: #333;
}

.konfigurator .summary-item-details {
    color: #666;
    font-size: 14px;
}

/* Navigation */
.konfigurator .navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.konfigurator .nav-button {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.konfigurator .nav-button.prev {
    background: #6c757d;
    color: white;
}

.konfigurator .nav-button.prev:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
}

.konfigurator .nav-button.prev:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.konfigurator .nav-button.next,
.konfigurator .nav-button.submit {
    background: #239ceb;
    color: white;
}

.konfigurator .nav-button.next:hover,
.konfigurator .nav-button.submit:hover {
    background: #0044aa;
    transform: translateY(-2px);
}

.konfigurator .nav-button.submit {
    background: #e74c3c;
}

.konfigurator .nav-button.submit:hover {
    background: #c0392b;
}

.konfigurator .step.active .step-status {
    color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .konfigurator .container {
        padding: 10px;
    }

    .konfigurator .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .konfigurator .progress-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .konfigurator .step {
        padding: 10px 5px;
    }

    .konfigurator .step span {
        font-size: 13px;
    }

    .konfigurator .step-status {
        font-size: 13px;
    }

    .konfigurator .main-content {
        padding: 20px;
    }

    .konfigurator .step-content h2 {
        font-size: 20px
    }

    .konfigurator .options-grid {
        grid-template-columns: 1fr;
    }

    .konfigurator .details-grid {
        grid-template-columns: 1fr;
    }

    .konfigurator .panel-row {
        grid-template-columns: 1fr;
    }

    .konfigurator .form-row {
        grid-template-columns: 1fr;
    }

    .konfigurator .navigation {
        flex-direction: column;
        gap: 15px;
    }

    .konfigurator .nav-button {
        width: 100%;
    }
}

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

    .konfigurator .option-image {
        height: inherit;
    }

    .konfigurator .step-icon {
        font-size: 16px
    }

    .konfigurator .step span {
        font-size: 13px
    }

    .konfigurator .step-status {
        display: none;
    }

    .konfigurator .option-card {
        padding: 10px;
    }

    .konfigurator input[type=checkbox]+label,
    .konfigurator input[type=radio]+label {
        text-align: start;
        line-height: 1.2;
        font-size: 13px;
    }
}

/* Animace pro smooth transitions */
.konfigurator .option-card,
.konfigurator .nav-button,
.konfigurator .add-button,
.konfigurator .remove-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states pro accessibility */
.konfigurator .option-card:focus-within,
.konfigurator .nav-button:focus,
.konfigurator .add-button:focus,
.konfigurator .remove-button:focus {
    outline: 2px solid #239ceb;
    outline-offset: 2px;
}

/* Loading state */
.konfigurator .loading {
    opacity: 0.6;
    pointer-events: none;
}

.konfigurator .loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #239ceb;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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