/* Rex Form Frontend Styles */
.rex-form {
    max-width: 800px;
    margin: 20px 0;
}

.rex-form-description {
    margin-bottom: 20px;
    color: #666;
}

.rex-form-fields {
    margin-bottom: 20px;
}

.rex-form-field-wrapper {
    margin-bottom: 20px;
}

.rex-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.rex-form-required-indicator {
    color: #d63638;
    margin-left: 3px;
}

.rex-form-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.rex-form-field:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

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

.rex-form-radio-group,
.rex-form-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rex-form-layout-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

.rex-form-radio-label,
.rex-form-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.rex-form-radio-label input,
.rex-form-checkbox-label input {
    width: auto;
    margin-right: 8px;
}

.rex-form-field-description {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.rex-form-submit {
    margin-top: 20px;
}

.rex-form-submit-button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.rex-form-submit-button:hover {
    background: #135e96;
}

.rex-form-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.rex-form-html-content {
    margin: 15px 0;
}

.rex-form-section {
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.rex-form-section-title {
    margin: 0 0 10px;
    font-size: 20px;
    color: #333;
}

.rex-form-section-description {
    color: #666;
    margin-top: 5px;
}

.rex-form .error,
.rex-form .notice-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-left: 4px solid #d63638;
    margin: 15px 0;
}

.rex-form .success,
.rex-form .notice-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-left: 4px solid #28a745;
    margin: 15px 0;
}
