/**
 * Multi-Form Builder - Frontend Styles
 */

.mfb-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.mfb-field-group {
    margin-bottom: 1.25rem;
}

.mfb-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.mfb-label.required::after {
    content: '';
}

.mfb-input,
.mfb-textarea,
.mfb-select,
.mfb-file {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mfb-input:focus,
.mfb-textarea:focus,
.mfb-select:focus {
    outline: none;
    border-color: var(--primary-color, #1d5f6f);
    box-shadow: 0 0 0 3px rgba(29, 95, 111, 0.1);
}

.mfb-textarea {
    resize: vertical;
    min-height: 120px;
}

.mfb-submit-group {
    margin-top: 1.5rem;
}

.mfb-submit-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--primary-color, #1d5f6f);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.mfb-submit-btn:hover {
    background-color: var(--primary-color-hover, #063a5d);
}

.mfb-submit-btn:active {
    transform: scale(0.98);
}

.mfb-submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.mfb-submit-btn.loading::after {
    content: '...';
}

/* Messages */
.mfb-message {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.mfb-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.mfb-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* RTL Support */
html[dir="rtl"] .mfb-form-container {
    text-align: right;
}

html[dir="rtl"] .form-check {
    padding-left: 0;
    padding-right: 1.5em;
}

html[dir="rtl"] .form-check-input {
    float: right;
    margin-left: 0;
    margin-right: -1.5em;
}
