/* Shared Contact Support modal — include with js/contact-modal.js on any page */

.contact-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.contact-modal {
    background: #0f172a;
    border-radius: 16px;
    padding: 24px 24px 20px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e5e7eb;
}

@media (max-width: 480px) {
    .contact-modal {
        width: 95%;
        padding: 20px 16px;
        border-radius: 12px;
        max-height: 85vh;
    }

    .contact-modal-title {
        font-size: 1rem;
    }

    .contact-modal-subtitle {
        font-size: 0.85rem;
    }

    .contact-modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .contact-modal-submit {
        width: 100%;
    }
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.contact-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-modal-subtitle {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-top: 4px;
}

.contact-modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.contact-modal-close:hover {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.1);
}

.contact-modal-form-group {
    margin-bottom: 10px;
}

.contact-modal-label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: #cbd5f5;
}

.contact-modal-input,
.contact-modal-textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    padding: 8px 10px;
    font-size: 0.9rem;
    color: #e5e7eb;
    outline: none;
    font-family: inherit;
}

.contact-modal-input::placeholder,
.contact-modal-textarea::placeholder {
    color: #6b7280;
}

.contact-modal-input:focus,
.contact-modal-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.4);
}

.contact-modal-textarea {
    min-height: 90px;
    resize: vertical;
}

.contact-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-modal-promise {
    font-size: 0.8rem;
    color: #9ca3af;
}

.contact-modal-submit {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    background: #6366f1;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.contact-modal-submit:hover {
    background: #4f46e5;
}

.contact-modal-submit:disabled {
    opacity: 0.7;
    cursor: default;
}

.contact-modal-message {
    font-size: 0.85rem;
    margin-top: 8px;
}

.contact-modal-message.success {
    color: #10b981;
}

.contact-modal-message.error {
    color: #ef4444;
}
