.sfc-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sfc-form-logo {
    text-align: center;
    margin-bottom: 30px;
}

.sfc-form-logo img {
    max-width: 200px;
    height: auto;
}

.sfc-field {
    margin-bottom: 20px;
}

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

.sfc-field label.required::after {
    content: " *";
    color: #e74c3c;
}

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

.sfc-field input:focus,
.sfc-field textarea:focus,
.sfc-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.sfc-field textarea {
    min-height: 100px;
    resize: vertical;
}

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

.sfc-radio-option,
.sfc-checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sfc-radio-option input[type="radio"],
.sfc-checkbox-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}

.sfc-radio-option label,
.sfc-checkbox-option label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    flex: 1;
}

.sfc-other-field {
    margin-top: 10px;
    margin-left: 26px;
    display: none;
}

.sfc-other-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.sfc-submit-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.sfc-submit-container.left {
    text-align: left;
}

.sfc-submit-container.right {
    text-align: right;
}

.sfc-submit-btn {
    background: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 120px;
}

.sfc-submit-btn:hover {
    background: #005a87;
}

.sfc-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
.sfc-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.sfc-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sfc-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    font-size: 14px;
    margin-top: 5px;
}

.sfc-field-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1) !important;
}

/* Custom styling support */
.sfc-form.custom-bg {
    background: var(--sfc-bg-color, #ffffff);
}

.sfc-form .sfc-submit-btn.custom-color {
    background: var(--sfc-button-color, #0073aa) !important;
    color: var(--sfc-button-text-color, #ffffff) !important;
}

.sfc-form .sfc-submit-btn.custom-color:hover {
    background: var(--sfc-button-hover-color, #005a87) !important;
    color: var(--sfc-button-text-color, #ffffff) !important;
}

/* Name field styling */
.sfc-name-field-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sfc-name-field-group input {
    flex: 1;
    min-width: 120px;
}

/* File upload styling */
.sfc-field input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    background: #f9f9f9;
    border-radius: 6px;
    cursor: pointer;
}

.sfc-field input[type="file"]:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.sfc-file-help {
    display: block;
    margin-top: 5px;
    color: #666;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .sfc-form {
        margin: 10px;
        padding: 15px;
    }
    
    .sfc-field input,
    .sfc-field textarea,
    .sfc-field select {
        padding: 10px;
    }
    
    .sfc-submit-btn {
        width: 100%;
        padding: 14px;
    }
    
    .sfc-radio-group,
    .sfc-checkbox-group {
        gap: 8px;
    }
}

/* Loading state */
.sfc-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.sfc-form.loading .sfc-submit-btn {
    position: relative;
}

.sfc-form.loading .sfc-submit-btn::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: sfc-spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes sfc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility improvements */
.sfc-field input:focus,
.sfc-field textarea:focus,
.sfc-field select:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.sfc-radio-option:focus-within,
.sfc-checkbox-option:focus-within {
    background: rgba(0, 115, 170, 0.05);
    border-radius: 4px;
    padding: 4px;
    margin: -4px;
}
