.al-dr,
.al-dr * {
    box-sizing: border-box;
}

.al-dr {
    --al-dr-surface: var(--wp--preset--color--base, #fff);
    --al-dr-text: var(--wp--preset--color--contrast, currentColor);
    --al-dr-muted: #5e6f78;
    --al-dr-border: #d7e0e4;
    --al-dr-accent: var(--wp--preset--color--primary, #0d6f6b);
    --al-dr-accent-hover: #095650;
    width: 100%;
    max-width: 920px;
    margin-inline: auto;
    color: var(--al-dr-text);
    font: inherit;
}

.al-dr__intro {
    margin-bottom: 1.5rem;
}

.al-dr__eyebrow {
    margin: 0 0 .5rem;
    color: var(--al-dr-accent);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.al-dr__title {
    margin: 0 0 .65rem;
    color: inherit;
    font-family: inherit;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
}

.al-dr__description {
    max-width: 52rem;
    margin: 0;
    color: var(--al-dr-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.al-dr__description p {
    margin: 0 0 1rem;
}

.al-dr__description p:last-child {
    margin-bottom: 0;
}

.al-dr__description ul {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

.al-dr__description li + li {
    margin-top: .55rem;
}

.al-dr__form {
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid var(--al-dr-border);
    border-radius: .5rem;
    background: var(--al-dr-surface);
    box-shadow: 0 18px 45px rgba(27, 47, 58, .08);
}

.al-dr__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.125rem;
}

.al-dr__field {
    display: grid;
    gap: .45rem;
    margin: 0;
}

.al-dr__label {
    color: inherit;
    font-size: .92rem;
    font-weight: 700;
}

.al-dr__input {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: .65rem .75rem;
    border: 1px solid var(--al-dr-border);
    border-radius: .375rem;
    color: #1e2b32;
    font: inherit;
    line-height: 1.3;
    background: #fff;
    box-shadow: none;
}

.al-dr__input:focus {
    border-color: var(--al-dr-accent);
    outline: 3px solid color-mix(in srgb, var(--al-dr-accent) 18%, transparent);
}

@supports not (color: color-mix(in srgb, black, white)) {
    .al-dr__input:focus {
        outline: 3px solid rgba(13, 111, 107, .16);
    }
}

.al-dr__help {
    margin: 1rem 0 0;
    color: var(--al-dr-muted);
    font-size: .95rem;
}

.al-dr__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.al-dr__button {
    min-height: 48px;
    margin: 0;
    padding: 0 1.4rem;
    border: 0;
    border-radius: .375rem;
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    background: var(--al-dr-accent);
    cursor: pointer;
}

.al-dr__button:hover,
.al-dr__button:focus-visible {
    color: #fff;
    background: var(--al-dr-accent-hover);
}

.al-dr__button--secondary {
    color: #1e2b32;
    background: #e8eef0;
}

.al-dr__button--secondary:hover,
.al-dr__button--secondary:focus-visible {
    color: #1e2b32;
    background: #d8e2e6;
}

.al-dr__notice {
    margin: 0 0 1.125rem;
    padding: .9rem 1rem;
    border-radius: .375rem;
    font-weight: 700;
}

.al-dr__notice--success {
    color: #16704d;
    background: #edf8f3;
}

.al-dr__notice--error {
    color: #9c2727;
    background: #fff0f0;
}

.al-dr__modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(30, 43, 50, .58);
}

.al-dr__modal[hidden] {
    display: none;
}

.al-dr__dialog {
    width: min(440px, 100%);
    padding: 1.625rem;
    border-radius: .5rem;
    color: #1e2b32;
    background: #fff;
    box-shadow: 0 24px 70px rgba(20, 35, 42, .24);
}

.al-dr__dialog-title {
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: 1.35rem;
    line-height: 1.25;
}

.al-dr__dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.5rem;
}

.al-dr__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 720px) {
    .al-dr__grid {
        grid-template-columns: 1fr;
    }

    .al-dr__actions {
        justify-content: stretch;
    }

    .al-dr__actions .al-dr__button {
        width: 100%;
    }

    .al-dr__dialog-actions {
        flex-direction: column-reverse;
    }

    .al-dr__dialog-actions .al-dr__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .al-dr * {
        scroll-behavior: auto !important;
    }
}
