.stl-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.stl-modal.is-open { display: flex; }

.stl-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
}

.stl-modal__dialog {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #fff;
    color: #171717;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.stl-modal__dialog h2 {
    margin: 0 40px 8px 0;
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.1;
}

.stl-modal__intro { margin: 0 0 20px; color: #555; }

.stl-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #222;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.stl-event-summary {
    display: grid;
    gap: 3px;
    margin: 0 0 22px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f5f5f5;
}

.stl-event-summary strong { font-size: 17px; }
.stl-event-summary span { color: #555; font-size: 14px; }

.stl-field { margin-bottom: 16px; }
.stl-field label { display: block; margin-bottom: 6px; font-weight: 700; }

.stl-field input {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    border: 1px solid #c9c9c9;
    border-radius: 8px;
    background: #fff;
    color: #111;
    padding: 10px 12px;
    font: inherit;
}

.stl-field input:focus {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}

.stl-submit {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    background: #111;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.stl-submit:disabled { opacity: .65; cursor: wait; }

.stl-message { margin: 0 0 12px; }
.stl-message.is-error {
    border-left: 4px solid #b32d2e;
    background: #fff1f1;
    padding: 10px 12px;
    color: #7a1515;
}

.stl-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

html.stl-modal-open,
body.stl-modal-open { overflow: hidden; }

@media (max-width: 600px) {
    .stl-modal { padding: 12px; align-items: flex-end; }
    .stl-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 14px 14px 0 0;
        padding: 24px 18px;
    }
}
