/* Mobile Application Modal - Based on raschet_mobile/index.html */

@media (max-width: 768px) {
    /* Модальное окно - центрировано */
    .application-modal__content {
        width: 376px;
        max-width: calc(100% - 20px);
        height: 674px;
        background: #f6f6f7;
        border-radius: 30px;
        margin: 0;
    }
    
    /* Header с заголовком и кнопкой закрытия */
    .application-modal__header {
        display: block !important;
        width: 300.68px;
        height: 27px;
        position: absolute;
        left: 41px;
        top: 28px;
    }
    
    /* Скрываем desktop заголовок */
    .application-modal__content > .application-modal__title {
        display: none !important;
    }
    
    /* Заголовок внутри header - "Срочный расчёт" */
    .application-modal__header .application-modal__title {
        position: absolute;
        left: 0;
        top: 0;
        width: 209px;
        height: 27px;
        color: #0fc998;
        font-family: "Inter", sans-serif;
        font-size: 24px;
        line-height: 27px;
        font-weight: 700;
        display: block;
    }
    
    /* Кнопка закрытия - справа вверху */
    .application-modal__close {
        position: absolute;
        right: 41px;
        top: 32px;
        width: 17.68px;
        height: 18px;
        background: transparent;
        cursor: pointer;
    }
    
    .application-modal__close::before,
    .application-modal__close::after {
        display: none;
    }
    
    .application-modal__close-icon {
        display: block !important;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }
    
    /* Поле телефона */
    .application-modal__field--phone {
        left: 16px;
        top: 80px;
        width: 346px;
        height: 73px;
    }
    
    .application-modal__field--phone .application-modal__label {
        position: absolute;
        left: 28px;
        top: 0;
        width: 122px;
        height: 15px;
        color: #000000;
        font-size: 12px;
        line-height: 15px;
        font-weight: 400;
    }
    
    .application-modal__field--phone .application-modal__input {
        position: absolute;
        left: 0;
        top: 23px;
        width: 346px;
        height: 50px;
        background: #ffffff;
        border-radius: 30px;
        padding: 0 28px;
        color: #949494;
        font-size: 12px;
        line-height: 15px;
        font-weight: 400;
    }
    
    .application-modal__field--phone .application-modal__input::placeholder {
        color: #949494;
    }
    
    /* Поле e-mail */
    .application-modal__field--email {
        left: 16px;
        top: 178px;
        width: 346px;
        height: 73px;
    }

    .application-modal__field--email .application-modal__label {
        position: absolute;
        left: 28px;
        top: 0;
        width: 180px;
        height: 15px;
        color: #000000;
        font-size: 12px;
        line-height: 15px;
        font-weight: 400;
    }

    .application-modal__field--email .application-modal__input {
        position: absolute;
        left: 0;
        top: 23px;
        width: 346px;
        height: 50px;
        background: #ffffff;
        border-radius: 30px;
        padding: 0 28px;
        color: #949494;
        font-size: 12px;
        line-height: 15px;
        font-weight: 400;
    }

    .application-modal__field--email .application-modal__input::placeholder {
        color: #949494;
    }

    /* Поле имени */
    .application-modal__field--name {
        left: 16px;
        top: 276px;
        width: 346px;
        height: 73px;
    }
    
    .application-modal__field--name .application-modal__label {
        position: absolute;
        left: 28px;
        top: 0;
        width: 139px;
        height: 15px;
        color: #000000;
        font-size: 12px;
        line-height: 15px;
        font-weight: 400;
    }
    
    .application-modal__field--name .application-modal__input {
        position: absolute;
        left: 0;
        top: 23px;
        width: 346px;
        height: 50px;
        background: #ffffff;
        border-radius: 30px;
        padding: 0 28px;
        color: #949494;
        font-size: 12px;
        line-height: 15px;
        font-weight: 400;
    }
    
    .application-modal__field--name .application-modal__input::placeholder {
        color: #949494;
    }
    
    /* Поле комментария */
    .application-modal__field--comment {
        left: 16px;
        top: 364px;
        width: 346px;
        height: 190px;
    }
    
    .application-modal__field--comment .application-modal__label {
        position: absolute;
        left: 28px;
        top: 0;
        width: 122px;
        height: 15px;
        color: #000000;
        font-size: 12px;
        line-height: 15px;
        font-weight: 400;
    }
    
    .application-modal__field--comment .application-modal__textarea {
        position: absolute;
        left: 0;
        top: 23px;
        width: 346px;
        height: 165px;
        background: #ffffff;
        border-radius: 30px;
        padding: 19px 28px;
        color: #949494;
        font-size: 12px;
        line-height: 15px;
        font-weight: 400;
        resize: none;
    }
    
    .application-modal__field--comment .application-modal__textarea::placeholder {
        color: #949494;
    }
    
    /* Кнопка отправки */
    .application-modal__field--button {
        left: 16px;
        top: 582px;
        width: 346px;
        height: 50px;
    }
    
    .application-modal__button {
        position: absolute;
        left: 0;
        top: 0;
        width: 346px;
        height: 50px;
        background: #0fc998;
        border-radius: 30px;
        color: #ffffff;
        font-family: "Inter", sans-serif;
        font-size: 14px;
        line-height: 15px;
        font-weight: 700;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .application-modal__button:hover {
        background: #0db885;
    }
    
    /* Текст согласия */
    .application-modal__consent {
        display: block !important;
        position: absolute;
        left: 16px;
        top: 612px;
        width: 346px;
        height: 26px;
        color: #000000;
        text-align: center;
        font-family: "Inter", sans-serif;
        font-size: 10px;
        line-height: 13px;
        font-weight: 400;
    }
    
    /* Скрываем звездочки обязательных полей на мобильных */
    .application-modal__required {
        display: none !important;
    }
    
    /* Success Modal - мобильная версия */
    .application-success-modal__content {
        width: 376px;
        max-width: calc(100% - 20px);
        height: auto;
        min-height: 400px;
        padding: 40px 20px;
    }
    
    .application-success-modal__title {
        position: static;
        width: 100%;
        height: auto;
        margin-bottom: 40px;
        font-size: 20px;
        line-height: 28px;
    }
    
    .application-success-modal__icon {
        position: static;
        width: 120px;
        height: 120px;
        margin: 0 auto 40px;
    }
    
    .application-success-modal__button {
        position: static;
        width: 100%;
        height: 50px;
        border-radius: 30px;
        margin-top: 40px;
    }
}

/* Desktop: скрываем мобильные элементы */
@media (min-width: 769px) {
    .application-modal__header {
        display: none;
    }
    
    .application-modal__close-icon {
        display: none;
    }
    
    .application-modal__consent {
        display: none;
    }
}

