@charset "UTF-8";

/* ===== Кастомная форма (#customForm) ===== */
#customForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: "Montserrat", "Montserrat-Regular", Arial, sans-serif;
}

#customForm h4 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
}

#customForm input[type="text"],
#customForm input[type="tel"] {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 16px;          /* >=16px чтобы iOS не зумил при фокусе */
    line-height: 52px;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

#customForm input::placeholder { color: rgba(255, 255, 255, 0.55); }
#customForm input:focus {
    border-color: #f6c945;
    background: rgba(255, 255, 255, 0.12);
}
#customForm input.invalid { border-color: #e53935; }

#customForm .error-msg {
    display: none;
    margin: -6px 2px 0;
    font-size: 13px;
    line-height: 1.3;
    color: #ff6b66;
}
#customForm .error-msg.show { display: block; }

#customForm #submitBtn {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 54px;
    margin-top: 4px;
    border: none;
    border-radius: 8px;
    background: #f6c945;
    color: #111111;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    cursor: pointer;
    transition: opacity .2s ease, transform .05s ease;
}
#customForm #submitBtn:hover { opacity: .9; }
#customForm #submitBtn:active { transform: translateY(1px); }
#customForm #submitBtn[disabled] { opacity: .6; cursor: default; }

/* Блок согласия под формой */
.banner__sign {
    max-width: 420px;
    margin: 14px auto 0;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-family: "Montserrat", "Montserrat-Regular", Arial, sans-serif;
}

/* Адаптив под телефон */
@media (max-width: 640px) {
    #customForm { max-width: 100%; padding: 0 12px; }
    #customForm h4 { font-size: 19px; }
    #customForm input[type="text"],
    #customForm input[type="tel"] { height: 48px; line-height: 48px; }
    #customForm #submitBtn { height: 50px; }
    .banner__sign { max-width: 100%; padding: 0 12px; }
}
