/* ── Demo Request Modal ────────────────────────────── */
.demo-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(6, 9, 26, 0.55);
    animation: demoFadeIn 0.35s ease;
}
.demo-overlay.active { display: flex; align-items: center; justify-content: center; }

/* Blurred app preview behind the modal */
.demo-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('app-preview.png') center 20% / cover no-repeat;
    filter: blur(6px) brightness(0.35) saturate(1.3);
    transform: scale(1.04); /* hide blur edge artifacts */
    z-index: -1;
}

@keyframes demoFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes demoSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.demo-modal {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.92) 0%, rgba(15, 15, 30, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: 24px;
    width: 90%;
    max-width: 520px;
    padding: 40px 36px;
    position: relative;
    box-shadow: 0 0 80px rgba(212, 175, 55, 0.12), 0 24px 64px rgba(0,0,0,0.6);
    animation: demoSlideUp 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.demo-close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none;
    color: rgba(224, 224, 224, 0.6);
    font-size: 28px; cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}
.demo-close:hover { color: #d4af37; }

.demo-modal h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.demo-modal .demo-subtitle {
    text-align: center;
    color: rgba(224, 224, 224, 0.6);
    font-size: 0.92rem;
    margin-bottom: 28px;
}

.demo-form-group {
    margin-bottom: 18px;
}
.demo-form-group label {
    display: block;
    color: rgba(224, 224, 224, 0.8);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.demo-form-group input,
.demo-form-group select {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.demo-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4af37' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.demo-form-group select option {
    background: #1a1a2e;
    color: #e0e0e0;
}
.demo-form-group input:focus,
.demo-form-group select:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.demo-form-group input::placeholder {
    color: rgba(224, 224, 224, 0.35);
}

.demo-submit-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #0f0f1e;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    margin-top: 8px;
    font-family: inherit;
}
.demo-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}
.demo-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.demo-success {
    text-align: center;
    padding: 30px 0;
}
.demo-success .demo-check {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}
.demo-success h3 {
    color: #d4af37;
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.demo-success p {
    color: rgba(224, 224, 224, 0.7);
    font-size: 0.92rem;
    line-height: 1.5;
}

.demo-privacy {
    text-align: center;
    margin-top: 14px;
    font-size: 0.78rem;
    color: rgba(224, 224, 224, 0.35);
}

@media (max-width: 600px) {
    .demo-modal {
        padding: 28px 20px;
        margin: 10px;
        max-width: 100%;
    }
    .demo-modal h2 { font-size: 1.3rem; }
}
