/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    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);
    margin-bottom: 30px;
}

.logo h1 {
    color: #2c5530;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.logo .subtitle {
    color: #666;
    font-size: 1rem;
}

.free-badge {
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
}

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

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2c5530, #4CAF50);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 14.28%; /* 1/7 kroků */
}

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

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

.step.active {
    background: #2c5530;
    color: white;
}

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

.step-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

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

.step-status {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Main Content */
.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;
}

.step-content {
    display: none;
}

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

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

.step-content h2 {
    color: #2c5530;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

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

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

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

.option-card.selected {
    border-color: #2c5530;
    background: #f8fff8;
    box-shadow: 0 5px 20px rgba(44, 85, 48, 0.2);
}

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

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

.color-sample {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
}

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

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

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

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

.gate-details h3 {
    color: #2c5530;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

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

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

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

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

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

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

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

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

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

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

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

.phone-group input {
    flex: 1;
}

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

.add-button {
    background: #2c5530;
    color: white;
}

.add-button:hover {
    background: #1e3a21;
    transform: translateY(-2px);
}

.remove-button {
    background: #e74c3c;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.remove-button:hover {
    background: #c0392b;
}

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

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

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

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

.order-summary h3 {
    color: #2c5530;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

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

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

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

.summary-item-details {
    color: #666;
    font-size: 0.9rem;
}

/* Navigation */
.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);
}

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

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

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

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

.nav-button.next,
.nav-button.submit {
    background: #2c5530;
    color: white;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .progress-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    
    .step {
        padding: 10px 5px;
    }
    
    .step span {
        font-size: 0.8rem;
    }
    
    .step-status {
        font-size: 0.7rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .step-content h2 {
        font-size: 1.5rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .panel-row {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .progress-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-icon {
        font-size: 1.2rem;
    }
    
    .step span {
        font-size: 0.7rem;
    }
    
    .step-status {
        display: none;
    }
}

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

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

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

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

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