.dialog {
    background-color: var(--white);
    border-radius: 1.6rem;
    border: none;
    overflow: hidden;
    padding: 0;
    max-width: 1440px;
    width: calc(100% - 3rem);
    min-height: 18rem;
    max-height: calc(100vh - 2rem);
}

.dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
}

.dialog-box {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
}

.dialog-box__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    padding-bottom: 1.5rem;
}

.dialog-box__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.dialog-box__close {
    cursor: pointer;
    background-color: var(--grey);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-box__close svg line {
    stroke: var(--primary-dark);
}

.dialog-box__content {
    flex: 1;
    overflow-y: auto;
    padding: 0 2rem;
    padding-bottom: 1.5rem;
}

.dialog-box__footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 2rem;
    padding-top: 1.5rem;
    margin-top: auto;
    gap: 1rem;
}

.dialog-box__button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    background-color: var(--primary);
    color: var(--white);
    transition: background-color 0.2s;
}

.dialog-box__button:hover {
    background-color: var(--primary-dark);
}

.dialog-box__link {
    font-size: 1rem;
    background-color: transparent;
    border: none;
    color: var(--primary-dark);
    text-decoration: none;
}

.dialog-box__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--primary-dark);
    margin: 0;
}

.form-group input {
    font-size: 1rem;
    background-color: transparent;
    border: 1px solid var(--grey);
    height: 44px;
    padding: 0 1rem;
    border-radius: 0.25rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin: 0;
}

.form-group textarea {
    font-size: 1rem;
    background-color: transparent;
    border: 1px solid var(--grey);
    min-height: 4rem;
    padding: 1rem;
    border-radius: 0.25rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin: 0;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--primary-dark);
}

body.no-scroll {
    position: fixed;
    overflow: hidden;
    inline-size: 100%;
}


@media screen and (max-width: 600px) {
    .dialog {
        width: 100%;
        max-width: calc(100% - 1rem);
        max-height: calc(100vh - 1rem);
    }

    .dialog-box__content {
        max-height: 64vh;
    }
}