/* Bandi Matcher AI - Frontend Styles */

.bmai-form-container {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.bmai-form-title {
    font-size: 32px;
    color: #333;
    margin: 0 0 10px 0;
    text-align: center;
}

.bmai-form-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin: 0 0 30px 0;
}

.bmai-form-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.bmai-form-section:last-of-type {
    border-bottom: none;
}

.bmai-section-title {
    font-size: 20px;
    color: #667eea;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

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

.bmai-form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.bmai-form-group label.required::after {
    content: " *";
    color: #dc3545;
}

.bmai-help {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.bmai-input,
.bmai-textarea,
.bmai-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.bmai-input:focus,
.bmai-textarea:focus,
.bmai-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bmai-textarea {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

.bmai-checkbox-group {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    background: #f8f9fa;
}

.bmai-checkbox-label {
    display: block;
    padding: 8px 10px;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.bmai-checkbox-label:hover {
    background: #e9ecef;
}

.bmai-checkbox {
    margin-right: 10px;
    cursor: pointer;
}

.bmai-form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.bmai-form-row .bmai-half {
    flex: 1;
    min-width: 250px;
}

.bmai-form-actions {
    text-align: center;
    margin-top: 30px;
}

.bmai-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 16px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.bmai-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.bmai-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bmai-form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
}

.bmai-form-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.bmai-form-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    .bmai-form-container {
        padding: 25px;
        margin: 20px 15px;
    }
    
    .bmai-form-title {
        font-size: 24px;
    }
    
    .bmai-form-row {
        flex-direction: column;
    }
    
    .bmai-form-row .bmai-half {
        width: 100%;
    }
    
    .bmai-submit-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bmai-btn-loader::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}
