.dsp-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.dsp-modal.open {
    display: block;
}

.dsp-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.dsp-modal__dialog {
    position: relative;
    background: #fff;
    max-width: 520px;
    margin: 40px auto;
    border-radius: 16px;
    padding: 24px;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.dsp-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #444;
}

.dsp-modal__title {
    margin: 0 0 16px 0;
    font-size: 22px;
    font-weight: 800;
    color: #1e1e1e;
}

.dsp-form__row {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dsp-form__row label {
    font-weight: 600;
    color: #1f2937;
}

.dsp-form__row input,
.dsp-form__row select {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    width: 100%;
    background: #f9fafb;
}

.dsp-form__row input:focus,
.dsp-form__row select:focus {
    outline: 2px solid #d7262d;
    border-color: transparent;
}

.dsp-form__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.dsp-checkbox {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 14px;
}

.dsp-form__actions {
    margin-top: 10px;
}

.dsp-btn-primary {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    background: #d7262d;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.dsp-form__message {
    margin-top: 10px;
    font-size: 14px;
    padding: 10px;
    border-radius: 8px;
}

.dsp-form__message.success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #a7f3d0;
}

.dsp-form__message.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

@media (max-width: 640px) {
    .dsp-modal__dialog {
        margin: 20px;
        padding: 20px;
    }
}

