/* Shared Contact Support modal — include with js/contact-modal.js on marketing pages */

.contact-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    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.55);
    border: 1px solid rgba(249, 115, 22, 0.35);
    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;
    line-height: 1.45;
}

.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: #cbd5e1;
}

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

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

.contact-modal-input:focus,
.contact-modal-textarea:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 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;
    line-height: 1.4;
    flex: 1;
    min-width: 140px;
}

.contact-modal-submit {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #111827;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.2s, box-shadow 0.2s;
}

.contact-modal-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
}

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

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

.contact-modal-message.success {
    color: #34d399;
}

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