/**
 * Contact Modal Styles
 * Styles for the contact form modal component
 *
 * @package BeepBeep_AI_Alt_Text_Generator
 * @since 6.0.0
 */

.bbai-contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbai-contact-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
}

.bbai-contact-modal-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    margin: 20px;
    z-index: 1;
}

.bbai-contact-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.bbai-contact-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.bbai-contact-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.bbai-contact-modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6b7280;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbai-contact-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.bbai-contact-form {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.bbai-contact-form-group {
    margin-bottom: 20px;
}

.bbai-contact-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.bbai-contact-form-required {
    color: #ef4444;
    margin-left: 2px;
}

.bbai-contact-form-input,
.bbai-contact-form-textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #111827;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: inherit;
}

.bbai-contact-form-input:focus,
.bbai-contact-form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.bbai-contact-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.bbai-contact-form-info {
    margin-top: -10px;
    margin-bottom: 20px;
}

.bbai-contact-form-info-text {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.bbai-contact-form-error,
.bbai-contact-form-success {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.bbai-contact-form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.bbai-contact-form-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    position: relative;
    z-index: 1;
    margin-top: 20px;
    margin-bottom: 20px;
}

.bbai-contact-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
}

.bbai-contact-link {
    color: #3b82f6;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.bbai-contact-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .bbai-contact-modal-container {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .bbai-contact-modal-content {
        max-height: calc(100vh - 20px);
    }

    .bbai-contact-modal-header {
        padding: 16px 20px;
    }

    .bbai-contact-form {
        padding: 20px;
    }

    .bbai-contact-form-actions {
        flex-direction: column-reverse;
    }

    .bbai-contact-form-actions .bbai-btn {
        width: 100%;
    }
}
