#demo-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0);
    z-index: 10002; display: none;
    align-items: center; justify-content: center;
    transition: background 0.4s ease;
}
#demo-modal-overlay.active { background: rgba(0,0,0,0.6); }
#demo-modal {
    position: relative;
    transform: scale(0.88);
    background: #fff; border-radius: 16px; overflow: hidden;
    opacity: 0; width: 92%; max-width: 460px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.28);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
    padding: 36px 32px 32px;
    box-sizing: border-box;
}
#demo-modal.active { opacity: 1; transform: scale(1); }
.dark #demo-modal { background: #111827; }
#demo-modal .dm-close {
    position: absolute; top: 14px; right: 14px;
    width: 34px; height: 34px; border-radius: 50%;
    border: none; background: #f3f4f6; color: #333;
    font-size: 16px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}
.dark #demo-modal .dm-close { background: rgba(255,255,255,0.1); color: #fff; }
#demo-modal .dm-close:hover { transform: rotate(90deg); background: #e5e7eb; }
#demo-modal .dm-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 4px 0; color: #1a1a1a; }
.dark #demo-modal .dm-title { color: #fff; }
#demo-modal .dm-sub { font-size: 0.82rem; color: #888; margin: 0 0 20px 0; }
#demo-modal .dm-field { margin-bottom: 12px; }
#demo-modal .dm-field input {
    width: 100%; box-sizing: border-box;
    padding: 11px 14px; border: 1.5px solid #e5e7eb;
    border-radius: 10px; font-size: 0.88rem;
    background: #fafafa; color: #1a1a1a;
    outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dark #demo-modal .dm-field input { background: rgba(255,255,255,0.06); border-color: #374151; color: #fff; }
#demo-modal .dm-field input::placeholder { color: #aaa; }
#demo-modal .dm-field input:focus {
    border-color: #16A34A;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
    background: #fff;
}
.dark #demo-modal .dm-field input:focus { background: rgba(255,255,255,0.08); }
#demo-modal .dm-field .dm-error {
    font-size: 0.72rem; color: #d83924; margin-top: 4px; display: none;
}
#demo-modal .dm-submit {
    width: 100%; padding: 13px; border: none; border-radius: 10px;
    background: #16A34A; color: #fff; font-size: 0.92rem;
    font-weight: 700; cursor: pointer; margin-top: 4px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#demo-modal .dm-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(22,163,74,0.35); }
#demo-modal .dm-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }
#demo-modal .dm-success { display: none; text-align: center; padding: 20px 0 8px; }
#demo-modal .dm-success .dm-success-icon {
    width: 52px; height: 52px; background: #f0fdf4; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #16A34A; margin: 0 auto 14px;
}
#demo-modal .dm-success h5 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; color: #1a1a1a; }
.dark #demo-modal .dm-success h5 { color: #fff; }
#demo-modal .dm-success p { font-size: 0.82rem; color: #888; margin: 0; }
@media (max-width: 480px) {
    #demo-modal { padding: 28px 20px 24px; }
}
