#sfp-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.sfp-lang-toggle {
    text-align: right;
    margin-bottom: 20px;
}

.sfp-lang-toggle button {
    padding: 8px 16px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.sfp-lang-toggle button:hover {
    background: #e0e0e0;
}

.sfp-restore-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #eef6ff;
    border: 1px solid #b6d7ff;
    border-left: 4px solid #3498db;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #2c3e50;
}

.sfp-restore-banner .sfp-restore-icon {
    font-size: 20px;
    color: #3498db;
}

.sfp-restore-banner .sfp-restore-text {
    flex: 1;
    line-height: 1.4;
}

.sfp-restore-banner .sfp-restore-close {
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0 4px;
}

.sfp-restore-banner .sfp-restore-close:hover {
    color: #2c3e50;
}

.sfp-header {
    text-align: center;
    margin-bottom: 30px;
}

.sfp-title {
    font-size: 24px;
    color: #333;
    margin: 0 0 10px;
    line-height: 1.3;
}

.sfp-subtitle {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

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

.sfp-section {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    margin: 0 0 10px;
}

.sfp-section:last-of-type {
    border-bottom: none;
}

.sfp-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.sfp-field {
    margin-bottom: 18px;
}

.sfp-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.sfp-field input[type="text"],
.sfp-field input[type="email"],
.sfp-field input[type="tel"],
.sfp-field input[type="number"],
.sfp-field input[type="date"],
.sfp-field input[type="time"],
.sfp-field textarea,
.sfp-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}

.sfp-field input:focus,
.sfp-field textarea:focus,
.sfp-field select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.sfp-field textarea {
    resize: vertical;
    min-height: 80px;
}

.sfp-row {
    display: flex;
    gap: 15px;
}

.sfp-col {
    flex: 1;
}

.sfp-yes-no label:first-child {
    margin-bottom: 8px;
}

.sfp-radio-label {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    cursor: pointer;
}

.sfp-radio-label input[type="radio"] {
    margin-right: 6px;
    width: auto;
}

.sfp-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sfp-checkbox-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.sfp-checkbox-label:hover {
    background: #e9ecef;
}

.sfp-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.sfp-range {
    text-align: center;
}

.sfp-range-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.sfp-range-input input[type="range"] {
    flex: 1;
    max-width: 300px;
    height: 6px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 3px;
    outline: none;
}

.sfp-range-input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
}

.sfp-range-input span {
    font-weight: 600;
    color: #666;
}

.sfp-range output {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #3498db;
    margin-top: 5px;
}

.sfp-labs-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 12px 15px;
    margin: 20px 0;
    font-size: 14px;
    color: #856404;
    line-height: 1.5;
}

.sfp-submit-btn {
    width: 100%;
    padding: 14px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.sfp-submit-btn:hover {
    background: #2980b9;
}

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

.sfp-loading {
    text-align: center;
    padding: 10px;
    color: #3498db;
    font-weight: 500;
}

.sfp-error {
    margin-top: 15px;
    padding: 10px;
    background: #fff3f3;
    border: 1px solid #ff6b6b;
    border-radius: 4px;
    color: #d32f2f;
    text-align: center;
}

@media (max-width: 600px) {
    .sfp-row {
        flex-direction: column;
        gap: 0;
    }

    .sfp-form {
        padding: 20px 15px;
    }

    .sfp-title {
        font-size: 20px;
    }
}
