/* ============================================================
   Telegram contact form (home/telegram_page.html)
   Only new styles here. Base classes (.h1, .inp-group__input,
   .btn) are inherited from app.min.css / hotfix.css.
   rem base: html { font-size: 10px } — 1rem = 10 design px.
   ============================================================ */

.telegram-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;

    max-width: 52rem;
    margin: 0 auto;
    padding: 3rem 0 5rem 0;

    text-align: center;
}

.telegram-form__form {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    align-items: center;
}

.telegram-form__title {
    font-size: 2.5rem;
    line-height: 130%;
}

.telegram-form__subtitle {
    font-size: 1.5rem;
    line-height: 140%;
    color: #8f8f8f;
}

.telegram-form__input {
    text-align: left;
    border: 1px solid #000;
    font-size: 1.5rem;
    line-height: 140%;
    min-width: 25rem;
}

.telegram-form__input::placeholder {
    font-size: 1.5rem;
    line-height: 140%;
}

.telegram-form__submit {
    padding: 1.5rem 2.8rem;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 140%;
    color: #fff;
    text-transform: uppercase;
    background: #c51431;
    border-radius: 10rem;
}

@media (min-width:1024px) {
    .telegram-form {
        max-width: 75rem;
        gap: 2.5rem;
    }

    .telegram-form__form {
        gap: 3rem;
    }

    .telegram-form__title {
        font-size: 3.5rem;
        line-height: 130%;
    }

    .telegram-form__subtitle {
        font-size: 2.25rem;
        line-height: 140%;
        color: #8f8f8f;
    }

    .telegram-form__input {
        font-size: 2rem;
        line-height: 140%;
    }

    .telegram-form__input::placeholder {
        font-size: 2rem;
        line-height: 140%;
    }

    .telegram-form__submit {
        font-size: 2rem;
        line-height: 140%;
    }
}

/* Success message shown after the form is submitted */
.telegram-form__success {
    font-size: 1.5rem;
    line-height: 140%;
}

@media (min-width:1024px) {
    .telegram-form__success {
        font-size: 2rem;
        line-height: 140%;
    }
}
