/* Insight subscribe modal */

.insight-subscribe-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.insight-subscribe-modal.is-open {
    display: flex;
}

.insight-subscribe-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.insight-subscribe-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    padding: 40px 24px;
    box-sizing: border-box;
}

.insight-subscribe-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: #000;
}

.insight-subscribe-modal__head {
    text-align: center;
    margin-bottom: 40px;
}

.insight-subscribe-modal__title {
    margin: 0 0 16px;
    font-family: Gilroy, sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: #000;
}

.insight-subscribe-modal__subtitle {
    margin: 0;
    font-family: Gilroy, sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 130%;
    color: #5c5c5c;
}

.insight-subscribe-modal__form {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.insight-subscribe-modal__field label {
    display: block;
    margin-bottom: 8px;
    font-family: Gilroy, sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #5c5c5c;
}

.insight-subscribe-modal__field input,
.insight-subscribe-modal__field select,
.insight-subscribe-modal__select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #dee1ea;
    font-family: Gilroy, sans-serif;
    font-size: 18px;
    background: #fff;
}

.insight-subscribe-modal__privacy {
    margin: 0;
    font-family: Gilroy, sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #adadad;
    text-align: center;
}

.insight-subscribe-modal__privacy a {
    color: #adadad;
    text-decoration: underline;
}

.insight-subscribe-modal__submit {
    width: 100%;
    justify-content: center;
}

.insight-subscribe-modal__message {
    text-align: center;
    font-size: 14px;
    min-height: 1.2em;
}

.insight-subscribe-modal__message.is-error {
    color: #c00;
}

.insight-subscribe-modal__message.is-success {
    color: #2ec17b;
}

.insight-subscribe-modal__error {
    display: block;
    font-size: 13px;
    color: #c00;
    margin-top: 4px;
}

@media (min-width: 768px) {
    .insight-subscribe-modal__dialog {
        padding: 40px 48px;
    }

    .insight-subscribe-modal__title {
        font-size: 48px;
    }
}
