body:has(.oam-form[open]) {
    overflow: hidden;
}

.oam-form {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    padding: 3em;
    background-color: rgba(0, 0, 0, 0.75);
    border-width: 0;
    z-index: 10200;
}

.oam-form[open] {
    display: flex;
    justify-content: center;
    align-items: center;
}

.oam-form .oam-form__container {
    position: relative;
    width: 100%;
    max-width: 360px;
    max-height: 100%;
    margin-right: auto;
    margin-left: auto;
    padding: 2rem;
    background-color: #ffffff;
    overflow-y: auto;
}

.oam-form .oam-form__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1em;
    height: 1em;
    min-width: 1em;
    min-height: 1em;
    max-width: 1em;
    max-height: 1em;
    padding: 0;
    font-family: inherit;
    font-size: 1.75em;
    color: inherit;
    background-color: transparent;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: 0.15;
    transition: opacity 0.15s ease-in-out;
    cursor: pointer;
    outline: none;
}

.oam-form .oam-form__close:focus,
.oam-form .oam-form__close:hover {
    opacity: 0.4;
}

.oam-form .oam-form__title {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.5em;
    font-weight: 700;
    color: #004f56;
}

.oam-form .oam-form__form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.oam-form .oam-form__control {
    display: flex;
    flex-direction: column;
}

.oam-form .oam-form__label {
    padding-bottom: 0.3em;
    color: #626b6d;
}

.oam-form .oam-form__input {
    display: block;
    width: 100%;
    min-height: 45px;
    padding: 0.5rem 0.8rem;
    background-color: #ffffff;
    border: 1px solid #c6c9cb;
    border-radius: 5px;
    outline: 0;
    transition: border-color 0.15s ease-in-out;
}

.oam-form .oam-form__input:focus {
    border-color: #454240;
    box-shadow: 0 5px 15px rgba(76, 86, 86, 0.2);
}

.oam-form .oam-form__input[readonly],
.oam-form .oam-form__button[disabled] {
    cursor: not-allowed;
}

.oam-form .oam-form__buttons {
    padding-top: 1em;
}

.oam-form .oam-form__hint {
    font-size: 85%;
}

.oam-form .alert {
    margin-bottom: 1.5em;
}

.oam-form .oam-form__hint.oam-form__hint_error {
    color: red;
}

.oam-form .alert.alert_success {
    text-align: center;
}

.oam-form .alert.alert_success p {
    font-size: 1.125em;
}

.oam-form .alert.alert_success p:first-child {
    font-size: 1.33em;
    font-weight: 700;
}

@media (min-width: 576px) {
    .oam-form .oam-form__container {
        max-width: 480px;
    }
}

@media (min-width: 768px) {
    .oam-form .oam-form__container {
        max-width: 620px;
    }
}
