.custom-contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 15px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #212529;
}
.custom-contact-form *, .popup__wraper * { box-sizing: border-box; }
.custom-contact-form .form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
    margin-bottom: 9px;
    align-items: start;
}
.custom-contact-form .full-width { grid-column: 1 / -1; }
.custom-contact-form .form-group { min-width: 0; }
.custom-contact-form input:not([type="hidden"]),
.custom-contact-form select,
.custom-contact-form textarea {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    color: #212529;
    font: inherit;
    font-size: 14px;
    transition: border-color .2s, background-color .2s;
}
.custom-contact-form textarea {
    display: block;
    min-height: 76px;
    max-height: 220px;
    padding: 12px 14px;
    resize: vertical;
}
.custom-contact-form input::placeholder,
.custom-contact-form textarea::placeholder { color: #777; opacity: 1; }
.custom-contact-form input:focus,
.custom-contact-form select:focus,
.custom-contact-form textarea:focus {
    border-color: #2a7de1;
    background-color: #fff;
    outline: 2px solid #2a7de1;
    outline-offset: 1px;
}
.custom-contact-form .phone-field {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    height: 46px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
.custom-contact-form .phone-field:focus-within {
    border-color: #2a7de1;
    outline: 2px solid #2a7de1;
    outline-offset: 1px;
}
.custom-contact-form .flagIcon {
    flex: 0 0 24px;
    width: 24px;
    height: 16px;
    margin: 0 6px 0 12px;
    border-radius: 2px;
    object-fit: cover;
}
.custom-contact-form .phone-field .countrySelect {
    flex: 0 1 25%;
    min-width: 0;
    width: 25%;
    height: 100%;
    padding: 0 20px 0 0;
    border: 0;
    border-radius: 0;
    appearance: none;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 2px center / 14px;
    text-overflow: ellipsis;
    cursor: pointer;
}
.custom-contact-form .phone-field .phoneInput {
    flex: 1;
    min-width: 0;
    width: 0;
    height: 100%;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.custom-contact-form .phone-field .phoneInput:focus,
.custom-contact-form .phone-field .countrySelect:focus { outline: none; }
.custom-contact-form .form-error {
    display: none;
    margin-top: 5px;
    color: #b42318;
    font-size: 12px;
    line-height: 1.4;
}
.custom-contact-form .invalid .form-error { display: block; }
.custom-contact-form .invalid > input,
.custom-contact-form .invalid > select,
.custom-contact-form .invalid > textarea,
.custom-contact-form .invalid .phone-field { border-color: #b42318; }
.custom-contact-form .invalid .phone-field:focus-within { outline-color: #b42318; }
.custom-contact-form .form-footer { margin-top: 10px; text-align: center; }
.custom-contact-form .privacy-note { margin-bottom: 12px; text-align: left; }
.custom-contact-form .privacy-text { margin: 0; color: #777; font-size: 12px; line-height: 1.4; }
.custom-contact-form .privacy-text a { color: #2a7de1; text-decoration: underline; }
.custom-contact-form .submit-button, .popup__btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #2a7de1, #1f6bc7);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    line-height: 1.5;
}
.custom-contact-form .submit-button { width: 100%; }
.custom-contact-form .submit-button:hover:not(:disabled), .popup__btn:hover { background: #1555b5; }
.custom-contact-form .submit-button:disabled { opacity: .65; cursor: not-allowed; }
.popup__wraper {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgb(0 0 0 / 60%);
    overflow-y: auto;
}
.popup__wraper.popup--active { display: flex; }
.popup__wraper .popup {
    width: 100%;
    max-width: 520px;
    max-height: 100%;
    overflow-y: auto;
    padding: 36px;
    border-radius: 16px;
    background: #fff;
    color: #212529;
    text-align: center;
    box-shadow: 0 16px 60px rgb(0 0 0 / 20%);
}
.popup__title { margin: 0 0 16px; font-size: 26px; line-height: 1.25; }
.popup__text { margin: 0 0 24px; font-size: 16px; font-weight: 400; line-height: 1.6; }
@media (max-width: 768px) {
    .custom-contact-form { padding: 0 12px; }
    .custom-contact-form .form-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .custom-contact-form input:not([type="hidden"]),
    .custom-contact-form select,
    .custom-contact-form textarea { font-size: 16px; }
}
@media (max-width: 480px) {
    .custom-contact-form { padding: 0 8px; }
    .popup__wraper { padding: 16px; }
    .popup__wraper .popup { padding: 28px 20px; }
}
