section#calculator{
    padding: 0 0 2rem;
}
button#openCalculatorBtn {
    display: block;
    max-width: 370px;
    width: 100%;
    background: #FF258D;
    color: #fff;
    border: none;
    padding: 32px 25px;
    border-radius: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 0 auto;
    transition: background 0.3s;
    font-size: 18px;
    text-transform: uppercase;
}

.fixed-bottom{
    position: fixed;
    bottom: 10px;
    width: 100%;
    max-width: 367px;
    left: 2px;
    right: 0;
    margin: auto;
    cursor: pointer;
    transition: all 0.3s linear;
    z-index: 999;
    padding: 0;
}
.fixed-bottom button{
    background-color: #FF258D;
}
.fixed-bottom:hover button{
    cursor: pointer;
    transition: all 0.3s linear;
}
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #FF258D;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0 10px;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #7d3fb8;
}

.step {
    display: none;
}

.step.active {
    display: block;
}
.step h2{
    font-size: 2rem;
    color:#FF258D;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}
.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.options label {
    border: 1px solid #d9b3ff;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    display: block;
    background: transparent;
    color: #000;
}

/* Custom radio button styles */
.options input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border: 1px solid #FF258D;
    border-radius: 5px;
    margin-right: 10px;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.options input[type="radio"]:checked {
    background-color: #FF258D;
    border-color: #FF258D;
}

/* Custom checkmark */
.options input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Label styles */
.options input[type="radio"]:checked+label,
.options label:has(input[type="radio"]:checked) {
    border-color: #FF258D;
    background: #ffe6f2;
}

.options input[type="radio"]:focus {
    outline: 2px solid #FF80B5;
    outline-offset: 2px;
}

.options label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    transition: all 0.2s ease;
}

/* Navigation buttons */
/* Contact Options */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #FF258D;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.contact-option:hover {
    background-color: rgba(255, 37, 141, 0.1);
}

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

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.phone-icon svg {
    fill: #FF258D;
}

.telegram-icon svg {
    fill: #FF258D;
}

.viber-icon svg {
    fill: #FF258D;
}

.contact-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* Checked state */
.contact-option input[type="radio"]:checked + .contact-icon {
    background-color: #FF258D;
}

.contact-option input[type="radio"]:checked + .contact-icon svg {
    fill: white;
}

.contact-option input[type="radio"]:checked ~ .contact-text {
    color: #FF258D;
    font-weight: 600;
}

#prevStepBtn,
#nextStepBtn {
    background-color: #FF258D;
    color: white;
    border: 1px solid #FF258D;
    border-radius: 5px;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(255, 37, 141, 0.3);
}

#prevStepBtn:hover,
#nextStepBtn:hover {
    background-color: #e02080;
    border-color: #e02080;
}

/* Form styles for step-5 */
.step-5 .form-group {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-top: 20px;
}
.step-6 h2{
    font-size: 5rem;
    line-height: 1;
}
/* Hide navigation buttons on the final step */
.step-6.active ~ #prevStepBtn,
.step-6.active ~ #nextStepBtn {
    display: none !important;
}

.input-with-icon {
    position: relative;
    margin-bottom: 15px;
    width: 100%;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 8px;
}

.input-with-icon input {
    width: 100%;
    padding: 30px 15px 30px 50px;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 15px;
}
.input-with-icon input::placeholder {
    color: #000;
    font-weight: 500;
    opacity: 1;
}
.input-with-icon input:focus {
    outline: none;
    border-color: #FF258D;
    box-shadow: 0 0 0 2px rgba(255, 37, 141, 0.2);
}

.input-with-icon input::placeholder {
    color: #999;
    opacity: 1;
}

/* Icons in step-5 */
.step-5 .input-icon svg {
    fill: #FF258D;
    width: 20px;
    height: 20px;
}

/* Contact method specific icons */
.contact-method-icon svg {
    fill: #FF258D;
    width: 20px;
    height: 20px;
}

#prevStepBtn {
    margin-right: 10px;
    /* margin-left: -35px; */
}

#nextStepBtn {
    float: right;
}

@media screen and (max-width:450px) {
    .popup-content {
        padding: 10px;
        border-radius: 20px;
        width: 96%;
        max-width: 600px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
        position: relative;
    }
}