.iv-core-form {
    box-sizing: border-box;
    width: min(100%, 640px);
    margin: 1.5rem auto;
    padding: 1.25rem;
    border: 1px solid rgba(127, 127, 127, .28);
    border-radius: 12px;
    background: var(--iv-form-bg, transparent);
    color: inherit;
    font: inherit;
}

.iv-core-form *,
.iv-core-form *::before,
.iv-core-form *::after {
    box-sizing: border-box;
}

.iv-core-form label {
    display: block;
    margin: .9rem 0 .35rem;
    font-weight: 700;
}

.iv-core-form input:not([type="hidden"]),
.iv-core-form select,
.iv-core-form textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: .7rem .8rem;
    border: 1px solid rgba(127, 127, 127, .45);
    border-radius: 7px;
    background: var(--iv-form-control-bg, transparent);
    color: inherit;
    font: inherit;
    line-height: 1.5;
}

.iv-core-form textarea {
    min-height: 150px;
    resize: vertical;
}

.iv-core-form input:focus,
.iv-core-form select:focus,
.iv-core-form textarea:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.iv-core-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 1.1rem;
    padding: .7rem 1.25rem;
    border: 0;
    border-radius: 7px;
    background: var(--iv-form-button-bg, #2271b1);
    color: var(--iv-form-button-color, #fff);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.iv-core-form__submit:hover,
.iv-core-form__submit:focus {
    filter: brightness(.92);
}

.iv-core-form__submit:disabled {
    cursor: wait;
    opacity: .65;
}

.iv-core-form__message {
    box-sizing: border-box;
    width: min(100%, 640px);
    margin: 1rem auto;
    padding: .8rem 1rem;
    border: 1px solid rgba(127, 127, 127, .3);
    border-radius: 8px;
    font: inherit;
}

.iv-core-form__message[hidden] {
    display: none !important;
}

.iv-core-form__message.is-success {
    border-color: #86efac;
    background: #ecfdf3;
    color: #14532d;
}

.iv-core-form__message.is-error {
    border-color: #fda4af;
    background: #fff1f2;
    color: #7f1d1d;
}

.iv-core-form__message.is-info {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1e3a8a;
}

.iv-core-form .g-recaptcha {
    margin-top: 1rem;
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 640px) {
    .iv-core-form {
        margin-block: 1rem;
        padding: 1rem;
    }
}
