/* Frontend CSS Styles */

/* Form Container */
.sfbc-form-container {
    margin: 30px 0;
    max-width: 800px;
}

.sfbc-form {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* Form Fields */
.sfbc-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sfbc-form-field {
    margin-bottom: 15px;
}

.sfbc-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.sfbc-form-field input[type="text"],
.sfbc-form-field input[type="email"],
.sfbc-form-field input[type="tel"],
.sfbc-form-field input[type="url"],
.sfbc-form-field input[type="password"],
.sfbc-form-field input[type="number"],
.sfbc-form-field input[type="date"],
.sfbc-form-field input[type="time"],
.sfbc-form-field textarea,
.sfbc-form-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.sfbc-form-field input[type="text"]:focus,
.sfbc-form-field input[type="email"]:focus,
.sfbc-form-field input[type="tel"]:focus,
.sfbc-form-field input[type="url"]:focus,
.sfbc-form-field input[type="password"]:focus,
.sfbc-form-field input[type="number"]:focus,
.sfbc-form-field input[type="date"]:focus,
.sfbc-form-field input[type="time"]:focus,
.sfbc-form-field textarea:focus,
.sfbc-form-field select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

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

/* Checkbox and Radio */
.sfbc-radio-option,
.sfbc-checkbox-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.sfbc-radio-option label,
.sfbc-checkbox-option label {
    margin-bottom: 0;
    margin-left: 10px;
    font-weight: normal;
}

/* Field Description */
.sfbc-field-description {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

/* Error Messages */
.sfbc-field-error {
    color: #dc3232;
    font-size: 14px;
    margin-top: 5px;
}

/* Submit Button */
.sfbc-submit-button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sfbc-submit-button:hover {
    background-color: #005a87;
}

.sfbc-submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.5);
}

/* Loading State */
.sfbc-loading {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
    color: #666;
}

/* Form Message */
.sfbc-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-weight: 600;
}

.sfbc-form-message.sfbc-success {
    background-color: #ecf8f0;
    color: #287d3c;
    border: 1px solid #b6e0c6;
}

.sfbc-form-message.sfbc-error {
    background-color: #feefef;
    color: #dc3232;
    border: 1px solid #f5c6cb;
}

/* File Upload Fields */
.sfbc-form-field input[type="file"] {
    padding: 10px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    width: 100%;
    background-color: #f9f9f9;
}

.sfbc-image-preview {
    margin-top: 10px;
    max-width: 100%;
}

.sfbc-image-preview img {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background-color: #fff;
}

/* Datepicker & Timepicker */
.ui-datepicker,
.ui-timepicker-div {
    font-size: 14px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ui-datepicker-header,
.ui-timepicker-div .ui-widget-header {
    background-color: #0073aa;
    color: #fff;
    border-radius: 4px 4px 0 0;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
}

.ui-datepicker-calendar th {
    padding: 5px;
}

.ui-datepicker-calendar td {
    padding: 2px;
}

.ui-datepicker-calendar td a {
    text-align: center;
    padding: 5px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.ui-datepicker-calendar td a.ui-state-active {
    background-color: #0073aa;
    color: #fff;
}

.ui-datepicker-calendar td a:hover {
    background-color: #f6f7f7;
}

/* HTML Content */
.sfbc-field-html {
    margin-bottom: 20px;
}

/* Required Mark */
.sfbc-required {
    color: #dc3232;
    margin-left: 5px;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .sfbc-form {
        padding: 20px;
    }
    
    .sfbc-form-field input[type="text"],
    .sfbc-form-field input[type="email"],
    .sfbc-form-field input[type="tel"],
    .sfbc-form-field input[type="url"],
    .sfbc-form-field input[type="password"],
    .sfbc-form-field input[type="number"],
    .sfbc-form-field input[type="date"],
    .sfbc-form-field input[type="time"],
    .sfbc-form-field textarea,
    .sfbc-form-field select {
        font-size: 14px;
        padding: 10px;
    }
    
    .sfbc-submit-button {
        width: 100%;
        padding: 10px;
    }
}