.calc-container {
    background: #c82333;
    border-radius: 20px;
    display: flex;
    width: 100%;
    /*max-width: 1180px;*/
}

.calculator {
    background-color: rgb(33, 33, 33);
    padding: 20px;
    /*margin: 20px;*/
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.1);
    width: 100%;
    /*max-width: 1180px;*/
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
}

h2 {
    font-family: 'Inter', Sans-Serif;
    color: white;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
}


.steps-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.step {
    flex: 1;
    min-width: 200px;
    display: none;
    position: relative;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.step.active {
    display: block;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-content {
    margin-top: 1rem;
}

h3 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.form-group {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin-bottom: 1.5rem;
}

label {
    font-family: 'Inter', sans-serif;
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 400;
}

select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

select option {
    background-color: #1a1a1a;
    color: white;
    font-family: 'Inter', sans-serif;
}

.package-type {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
}

.package-option {
    flex: 1;
    position: relative;
}

.package-option input[type="radio"] {
    display: none;
}

.package-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.check-icon {
    opacity: 0;
    color: #dc3545;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.package-option input[type="radio"]:checked + label {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
}

.package-option input[type="radio"]:checked + label .check-icon {
    opacity: 1;
}

.quantity-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

input[type="range"] {
    flex: 1;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

/* Стили для бегунка (thumb) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Для Firefox */
input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background-color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Для дорожки в Firefox */
input[type="range"]::-moz-range-track {
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 3px;
}

input[type="number"] {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Inter', sans-serif;
}

.result {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.result.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 300px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.result, .result.show {
    transition-property: opacity, transform, max-height, padding, margin;
    transition-duration: 0.8s, 0.8s, 0.8s, 0.8s, 0.8s;
    transition-timing-function: 
        cubic-bezier(0.16, 1, 0.3, 1),
        cubic-bezier(0.16, 1, 0.3, 1),
        cubic-bezier(0.16, 1, 0.3, 1),
        cubic-bezier(0.16, 1, 0.3, 1),
        cubic-bezier(0.16, 1, 0.3, 1);
}

.result-content {
    text-align: center;
}

.total-cost {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.total-cost span {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.7);
}

.total-cost strong {
    display: block;
    font-size: 2.5rem;
    color: #dc3545;
    margin-top: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.submit-btn {
    background-color: #dc3545;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

a.submit-btn {
    color: #ffffff !important;
}

.submit-btn:hover {
    background-color: #c82333;
}

@keyframes price-update {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.price-change {
    animation: price-update 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}