.slp-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(24, 14, 54, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.slp-overlay[hidden] { display: none; }
.slp-overlay.is-open { opacity: 1; }

.slp-modal {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 48px 52px;
    box-shadow: 0 24px 60px rgba(24, 14, 54, 0.25);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s ease;
}
.slp-overlay.is-open .slp-modal { transform: translateY(0) scale(1); }

.slp-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #180E36;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease;
}
.slp-close:hover { background: rgba(24, 14, 54, 0.07); }

.slp-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 38px;
    color: #180E36;
    margin: 0 0 16px;
}

.slp-subtext {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #180E36;
    margin: 0 0 28px;
}

/* Fields */
.slp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.slp-field { display: flex; flex-direction: column; }

.slp-field label {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #180E36;
    margin-bottom: 8px;
}
.slp-req { color: #D05301; margin-left: 2px; }

.slp-field input,
.slp-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #180E36;
    background: #F7F9FB;
    border: 1px solid #C7C7C7;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.slp-field select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23180E36' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.slp-field input:focus,
.slp-field select:focus {
    border-color: #3CBCD6;
    box-shadow: 0 0 0 3px rgba(60, 188, 214, 0.18);
}
.slp-field input.slp-invalid { border-color: #D05301; }

/* Consent */
.slp-consent-intro {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #180E36;
    margin: 20px 0 12px;
}
.slp-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #180E36;
    cursor: pointer;
    margin-bottom: 4px;
}
.slp-check input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #3CBCD6;
    flex-shrink: 0;
    cursor: pointer;
}

/* Honeypot */
.slp-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.slp-error {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #D05301;
    background: rgba(208, 83, 1, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 18px 0 0;
}
.slp-error[hidden] { display: none; }

/* Buttons */
.slp-actions { display: flex; justify-content: flex-end; margin-top: 28px; }
.slp-actions-center { justify-content: center; }

.slp-submit,
.slp-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.slp-submit { background: #180E36; color: #FFFFFF; }
.slp-submit:hover { background: #241547; transform: translateY(-1px); }
.slp-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.slp-download { background: #3CBCD6; color: #FFFFFF; }
.slp-download:hover { background: #33a8c0; transform: translateY(-1px); }

/* Thank-you */
.slp-step-thanks { text-align: center; }
.slp-step-thanks .slp-heading,
.slp-step-thanks .slp-subtext { text-align: center; }
.slp-tick {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #3CBCD6;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile */
@media (max-width: 768px) {
    .slp-overlay { padding: 16px; align-items: flex-start; }
    .slp-modal {
        padding: 40px 24px 28px;
        border-radius: 12px;
        max-height: 92vh;
        margin-top: 16px;
    }
    .slp-heading { font-size: 24px; line-height: 32px; }
    .slp-subtext { font-size: 15px; line-height: 24px; margin-bottom: 22px; }
    .slp-row { grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
    .slp-actions { justify-content: stretch; }
    .slp-submit, .slp-download { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .slp-overlay, .slp-modal { transition: none; }
}