/* Shared Global Styles - Polished Demo Box */

.hero-demo-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.hero-demo-inline-form {
    width: 100%;
    max-width: 500px;
}

.hero-demo-inline {
    background: white;
    padding: 8px;
    border-radius: 18px;
    display: flex;
    gap: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.hero-demo-inline:focus-within {
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.hero-demo-inline input {
    flex-grow: 1;
    border: 1px solid #f1f5f9;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
    font-family: inherit;
    background: #f8fafc;
}

.hero-demo-inline input:focus {
    border-color: var(--primary-light);
    background: white;
}

.hero-demo-inline button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.hero-demo-inline button:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.3);
}

.hero-demo-inline button:active {
    transform: scale(0.98);
}

.hero-demo-inline button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.hero-demo-success {
    display: none;
    margin-top: 15px;
    color: #16a34a;
    font-weight: 600;
    font-size: 0.95rem;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.hero-demo-caption {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
    text-align: center;
    width: 100%;
    line-height: 1.5;
    max-width: 480px;
}

@media (max-width: 600px) {
    .hero-demo-inline-form {
        max-width: 100% !important;
    }

    .hero-demo-inline {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
        border-radius: 20px;
    }

    .hero-demo-inline input {
        width: 100%;
        font-size: 1.1rem;
        /* Better readability */
        padding: 16px;
    }

    .hero-demo-inline button {
        width: 100%;
        padding: 16px;
        font-size: 1.1rem;
    }

    .hero-demo-caption {
        font-size: 0.8rem;
        margin-top: 15px;
        padding: 0 10px;
    }
}