.calc-step {
    display: none;
}
.calc-step.active {
    display: block;
}

.carousel-track-wrapper {
    overflow: hidden;
    margin: 0 auto;
    max-width: 600px;
}
.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    gap: 15px;
}
.variant-item {
    flex: 0 0 calc(33.33% - 10px);
    min-width: 150px;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 5px;
    box-sizing: border-box;
    text-align: center;
    background: #f9f9f9;
    position: relative;
}
.variant-item img {
    max-width: 100%;
    height: auto;
    display: block;
}
.variant-item.active {
    border-color: #007bff;
    background: #e6f0ff;
}
.variant-item.selected {
    border-color: #28a745;
    background: #e8f5e9;
}
.variant-item .check-mark {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    color: #28a745;
    font-size: 24px;
}
.variant-item.selected .check-mark {
    display: block;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}
.carousel-btn {
    padding: 8px 15px;
    font-size: 18px;
    background: #ddd;
    border: none;
    cursor: pointer;
}
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}
.carousel-indicators span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
}
.carousel-indicators span.active {
    background: #007bff;
}

.selected-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}
.selected-preview img {
    max-width: 80px;
    max-height: 80px;
}

.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 3px;
}
.form-group label .required {
    color: red;
}
.form-group input {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
.form-group .error {
    color: red;
    font-size: 12px;
    display: block;
}
.btn {
    padding: 10px 30px;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.btn-success {
    background: #28a745;
}
.btn-primary {
    background: #007bff;
}
.back-link {
    display: inline-block;
    margin-right: 20px;
    cursor: pointer;
}
.back-link i {
    text-decoration: underline;
    font-style: italic;
    color: #007bff;
}
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    cursor: pointer;
}
.image-modal img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}
.image-modal.show {
    display: block;
}