.modal-body {
    height: 100%;
    display: flex;
    align-items: center;
}

.mpf-custom-form {
    width: 100%;
}

.mpf {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* gap: 24px; */
    background-position: left;
    background-size: contain;
    background-repeat: no-repeat;
    /* padding: 65px 0; */
    width: 100%;
}
.comp {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.mpf__header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.mpf__title {
    width: 100%;
    color: #127a8d;
    font-weight: 400;
    font-size: clamp(1.125rem, 0.9231rem + 0.8974vw, 2rem);
    line-height: 130%;
    font-family: "Manrope", sans-serif;
    text-align: center;
    text-transform: uppercase;
}

.mpf__subtitle {
    max-width: 791px;
    color: #82aeb7;
    font-weight: 400;
    font-size: clamp(1rem, 0.8846rem + 0.5128vw, 1.5rem);
    line-height: 130%;
    font-family: "Manrope", sans-serif;
    text-align: center;
    text-transform: uppercase;
}

.mpf__success {
    color: #127a8d;
    font-weight: 400;
    font-size: clamp(1.125rem, 1.0385rem + 0.3846vw, 1.5rem);
    line-height: 1.2;
    font-family: "Manrope", sans-serif;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    outline: 1px solid #127a8d;
}

.mpf__success p {
    margin: 0;
    padding: 0;
}

.mpf__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 670px;
}

.mpf__field {
    width: 100%;
}

.mpf__field--textarea {
    margin-bottom: 0;
}

.mpf__label {
    display: block;
    margin-bottom: 8px;
    color: #262626;
    font-weight: 400;
    font-size: clamp(0.75rem, 0.7212rem + 0.1282vw, 0.875rem);
    line-height: 100%;
    font-family: "Manrope", sans-serif;
}

.mpf__input-wrapper {
    position: relative;
}

.mpf__input,
.mpf__textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 12px 16px;
    width: 100%;
    font-size: 14px;
    font-family: inherit;
}

.mpf__input:focus,
.mpf__textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(32, 178, 170, 0.1);
    border-color: #20b2aa;
}

.mpf__input::placeholder,
.mpf__textarea::placeholder {
    color: #999;
    font-size: 14px;
}

.mpf__textarea {
    min-height: 80px;
    resize: vertical;
}

.mpf__error {
    display: block;
    margin-top: 4px;
    color: #e74c3c;
    font-size: 12px;
}

.mpf__errors {
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    background-color: #f8d7da;
    padding: 12px 16px;
    width: 100%;
}

.mpf__errors p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
    font-family: "Manrope", sans-serif;
}

.mpf__errors font.errortext {
    color: #721c24;
    font-size: 14px;
    line-height: 1.4;
    font-family: "Manrope", sans-serif;
}

.mpf__errors br {
    display: block;
    margin: 4px 0;
}

.mpf__submit-wrapper {
    width: 100%;
    text-align: center;
}

.mpf__submit {
    transition: background-color 0.3s ease-in-out;
    cursor: pointer;
    border: none;
    border-radius: 2px;
    background-color: #127a8d;
    padding: 14px 0;
    width: 100%;
    min-width: 160px;
    max-width: 273px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    font-family: inherit;
}

.mpf__submit:hover {
    background-color: #1a9b94;
}

.mpf__submit:disabled {
    cursor: not-allowed;
    background-color: #ccc;
}

.mpf__input-wrapper input[type="text"],
.mpf__input-wrapper input[type="email"],
.mpf__input-wrapper input[type="tel"],
.mpf__input-wrapper input[type="password"],
.mpf__input-wrapper textarea,
.mpf__input-wrapper select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 12px 16px;
    width: 100%;
    font-size: 14px;
    font-family: inherit;
}

@media (min-width: 360px) and (max-width: 1440px) {
    .mpf__input-wrapper input[type="text"],
    .mpf__input-wrapper input[type="email"],
    .mpf__input-wrapper input[type="tel"],
    .mpf__input-wrapper input[type="password"],
    .mpf__input-wrapper textarea,
    .mpf__input-wrapper select {
        padding: 8px 12px;
    }
}

.mpf__input-wrapper input[type="text"]:focus,
.mpf__input-wrapper input[type="email"]:focus,
.mpf__input-wrapper input[type="tel"]:focus,
.mpf__input-wrapper input[type="password"]:focus,
.mpf__input-wrapper textarea:focus,
.mpf__input-wrapper select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(32, 178, 170, 0.1);
    border-color: #20b2aa;
}

.mpf__input-wrapper input[type="text"]::placeholder,
.mpf__input-wrapper input[type="email"]::placeholder,
.mpf__input-wrapper input[type="tel"]::placeholder,
.mpf__input-wrapper textarea::placeholder {
    color: #999;
    font-size: 14px;
}

.mpf__input-wrapper textarea {
    min-height: 80px;
    resize: vertical;
}

.mpf__input-wrapper input::placeholder,
.mpf__input-wrapper textarea::placeholder {
    color: #999;
    font-size: 14px;
    font-family: inherit;
}

.mpf__input-wrapper input:focus::placeholder,
.mpf__input-wrapper textarea:focus::placeholder {
    color: #ccc;
}

.mpf__input-wrapper input.is-valid,
.mpf__input-wrapper textarea.is-valid {
    border-color: #28a745;
}

.mpf__input-wrapper input.is-invalid,
.mpf__input-wrapper textarea.is-invalid {
    border-color: #dc3545;
}

.mpf__field:has(input[type="checkbox"]) .mpf__label {
    display: none;
}

.mpf__field:has(input[type="checkbox"]) .mpf__input-wrapper {
    position: relative;
}

.mpf__field:has(input[type="checkbox"]) .mpf__checkbox-error {
    margin-top: 8px;
    min-height: 16px;
    color: #dc3545;
    font-size: 12px;
}

.mpf__input-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    width: 0;
    height: 0;
}

.mpf__input-wrapper label[for] {
    display: inline-block;
    position: relative;
    cursor: pointer;
    padding-left: 30px;
    color: #262626;
    font-size: clamp(0.75rem, 0.7212rem + 0.1282vw, 0.875rem);
    line-height: 1.4;
    font-family: "Manrope", sans-serif;
    text-align: left;
}

.mpf__input-wrapper label[for]::before {
    display: inline-block;
    position: absolute;
    top: 2px;
    left: 0;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-sizing: border-box;
    border: 1px solid #127a8d;
    border-radius: 2px;
    background-color: #fff;
    width: 20px;
    height: 20px;
    content: "";
}

.mpf__input-wrapper input[type="checkbox"]:checked + label[for]::after {
    position: absolute;
    top: 5px;
    left: 3px;
    z-index: 1;
    border-radius: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 7l3 3 7-7'/%3E%3C/svg%3E");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #127a8d;
    width: 14px;
    height: 14px;
    content: "";
}

.mpf__input-wrapper input[type="checkbox"]:focus + label[for]::before {
    box-shadow: 0 0 0 2px rgba(18, 122, 141, 0.1);
}

.mpf__input-wrapper input[type="checkbox"].is-invalid + label[for]::before {
    border-color: #dc3545;
}

.mpf__input-wrapper input[type="checkbox"].is-valid + label[for]::before {
    border-color: #28a745;
}

.mpf__field .mpf__input-wrapper:has(input[type="checkbox"]) {
    position: relative;
}

.mpf__field .mpf__input-wrapper input[type="checkbox"] ~ .mpf__checkbox-error {
    margin-top: 8px;
    min-height: 16px;
    color: #dc3545;
    font-size: 12px;
}

.mpf__field--captcha {
    margin-bottom: 25px;
}

.mpf__captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mpf__captcha-wrapper img {
    border-radius: 4px;
}

@media (min-width: 360px) and (max-width: 767.9px) {
    .mpf__header {
        gap: 10px;
    }

    .mpf__title,
    .mpf__subtitle {
        line-height: 100%;
        text-align: left;
        text-wrap: balance;
    }

    .mpf {
        gap: 10px;
        background-position: center bottom;
        background-size: cover;
        background-repeat: no-repeat;
        padding: 15px;
    }

    .mpf__field {
        margin-bottom: 4px;
    }

    .mpf__label {
        margin-bottom: 4px;
    }

    .mpf__checkbox-error {
        margin-top: 4px;
        line-height: 100%;
    }

    .mpf__field:has(input[type="checkbox"]) {
        margin-bottom: 10px;
    }

    .mpf__errors {
        margin-bottom: 15px;
        padding: 10px 12px;
    }

    .mpf__errors font.errortext {
        font-size: 12px;
    }
}
