/* FormCraft Pro - Frontend Styles */

.formcraft-wrapper {
    max-width: 100%;
    margin: 0 auto;
    direction: rtl;
}

.formcraft-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fcp-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.fcp-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fcp-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    display: block;
}

.fcp-required {
    color: #ef4444;
    margin-right: 0.25rem;
}

.fcp-input,
.fcp-textarea,
.fcp-select,
.fcp-file {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
}

.fcp-input:focus,
.fcp-textarea:focus,
.fcp-select:focus,
.fcp-file:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.fcp-textarea {
    resize: vertical;
    min-height: 100px;
}

.fcp-radio-group,
.fcp-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fcp-radio-label,
.fcp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
}

.fcp-radio,
.fcp-checkbox {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.fcp-submit-wrapper {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fcp-submit-btn {
    background: #3b82f6;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fcp-submit-btn:hover {
    background: #2563eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fcp-submit-btn:active {
    transform: scale(0.98);
}

.fcp-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.fcp-loading {
    color: #6b7280;
    font-size: 0.875rem;
}

.fcp-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.fcp-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.fcp-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.fcp-error {
    color: #ef4444;
    padding: 1rem;
    background: #fee2e2;
    border-radius: 0.5rem;
    border: 1px solid #fca5a5;
}

/* Responsive */
@media (max-width: 768px) {
    .formcraft-form {
        padding: 1.5rem;
    }
    
    .fcp-fields {
        gap: 1rem;
    }
    
    .fcp-field-wrapper {
        width: 100% !important;
    }
}
