body .acnm-modal[hidden] {
    display: none;
}

body .acnm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #1f2933;
}

body .acnm-modal .acnm-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

body .acnm-modal .acnm-modal__dialog {
    position: relative;
    width: min(860px, 100%);
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
}

body .acnm-modal .acnm-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    background-color: transparent;
    border: none;
    color: #101820;
    font-size: 22px;
    line-height: 1;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    outline: none;
    box-shadow: none;
    padding: 0;
}

body .acnm-modal .acnm-modal__content {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    min-height: 360px;
}

body .acnm-modal .acnm-modal__media {
    background: linear-gradient(180deg, #0f172a 0%, #1f2933 100%);
    background-position: center;
    background-size: cover;
}

body .acnm-modal .acnm-modal__body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

body .acnm-modal .acnm-modal__eyebrow {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9ca3af;
    margin: 0;
}

body .acnm-modal .acnm-modal__title {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.25;
    font-weight: 700;
    color: #101820;
}

body .acnm-modal .acnm-modal__subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

body .acnm-modal .acnm-modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body .acnm-modal .acnm-modal__fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body .acnm-modal .acnm-modal__form input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body .acnm-modal .acnm-modal__form input[type="email"]:focus {
    border-color: #ca9c57;
    box-shadow: 0 0 0 3px rgba(202, 156, 87, 0.25);
    outline: none;
}

body .acnm-modal .acnm-modal__submit {
    padding: 14px 28px;
    border: none;
    border-radius: 4px;
    background-color: #ca9c57;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.1);
    width: 100%;
}

body .acnm-modal .acnm-modal__submit:hover,
body .acnm-modal .acnm-modal__submit:focus {
    background-color: #765b33;
    color: #ffffff;
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2);
}

body .acnm-modal .acnm-modal__feedback {
    min-height: 18px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

body .acnm-modal .acnm-modal__feedback--success {
    color: #047857;
}

body .acnm-modal .acnm-modal__feedback--error {
    color: #b91c1c;
}

body .acnm-modal .acnm-modal__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

body .acnm-modal .acnm-modal__consent input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    appearance: none;
    position: relative;
    cursor: pointer;
    background: #ffffff;
}

body .acnm-modal .acnm-modal__consent input[type="checkbox"]:checked {
    background-color: #ca9c57;
    border-color: #ca9c57;
}

body .acnm-modal .acnm-modal__consent input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@media (max-width: 900px) {
    body .acnm-modal {
        padding: 12px;
    }

    body .acnm-modal .acnm-modal__dialog {
        width: 100%;
    }

    body .acnm-modal .acnm-modal__content {
        grid-template-columns: 1fr;
    }

    body .acnm-modal .acnm-modal__media {
        display: none;
    }

    body .acnm-modal .acnm-modal__body {
        padding: 28px 20px;
    }

    body .acnm-modal .acnm-modal__fields {
        gap: 10px;
    }
}

body.acnm-modal-open {
    overflow: hidden;
}
