/* Form Container */
.sfb-form-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sfb-form-title {
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #2271b1;
}

/* Form Fields */
.sfb-form-fields {
    margin-bottom: 25px;
}

.sfb-form-field {
    margin-bottom: 20px;
}

.sfb-field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.sfb-required {
    color: #d63638;
    margin-left: 3px;
}

.sfb-field-description {
    margin: 5px 0 8px 0;
    font-size: 13px;
    color: #666;
}

/* Input Fields */
.sfb-input,
.sfb-textarea,
.sfb-select {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.sfb-input:focus,
.sfb-textarea:focus,
.sfb-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.sfb-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Radio and Checkbox Groups */
.sfb-radio-group,
.sfb-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sfb-radio-label,
.sfb-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

.sfb-radio-label:hover,
.sfb-checkbox-label:hover {
    background: #f6f7f7;
    border-color: #2271b1;
}

.sfb-radio,
.sfb-checkbox {
    margin: 0 10px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.sfb-radio-label span,
.sfb-checkbox-label span {
    font-size: 14px;
    color: #333;
}

/* Submit Button */
.sfb-form-footer {
    margin-top: 25px;
}

.sfb-submit-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: #2271b1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.sfb-submit-button:hover {
    background: #135e96;
    transform: translateY(-1px);
}

.sfb-submit-button:active {
    transform: translateY(0);
}

.sfb-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.sfb-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.sfb-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sfb-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Field Errors */
.sfb-error {
    border-color: #d63638 !important;
}

.sfb-form-field.sfb-error .sfb-field-label {
    color: #d63638;
}

.sfb-field-error {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #d63638;
}

/* Responsive */
@media (max-width: 768px) {
    .sfb-form-container {
        margin: 20px;
        padding: 20px;
    }
    
    .sfb-form-title {
        font-size: 20px;
    }
    
    .sfb-submit-button {
        width: 100%;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .sfb-form-container {
        background: #1e1e1e;
        border-color: #333;
        color: #e0e0e0;
    }
    
    .sfb-form-title {
        color: #e0e0e0;
        border-color: #2271b1;
    }
    
    .sfb-field-label {
        color: #e0e0e0;
    }
    
    .sfb-field-description {
        color: #999;
    }
    
    .sfb-input,
    .sfb-textarea,
    .sfb-select {
        background: #2d2d2d;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .sfb-radio-label,
    .sfb-checkbox-label {
        background: #2d2d2d;
        border-color: #444;
    }
    
    .sfb-radio-label:hover,
    .sfb-checkbox-label:hover {
        background: #3d3d3d;
    }
    
    .sfb-radio-label span,
    .sfb-checkbox-label span {
        color: #e0e0e0;
    }
}