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

.sfp-form-title {
    text-align: center;
    font-size: 28px;
    color: var(--sfp-primary-color, #0073aa);
    margin: 0 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 700;
}

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

.sfp-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

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

.sfp-form-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.sfp-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.sfp-form-group {
    margin-bottom: 20px;
}

.sfp-form-group.sfp-half {
    flex: 1;
}

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

.sfp-form-group input[type="text"],
.sfp-form-group input[type="email"],
.sfp-form-group input[type="tel"],
.sfp-form-group input[type="number"],
.sfp-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--sfp-border-radius, 5px);
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.sfp-form-group input:focus,
.sfp-form-group select:focus {
    outline: none;
    border-color: var(--sfp-primary-color, #0073aa);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.sfp-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

.sfp-field-description {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #666;
}

.sfp-summary-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: var(--sfp-border-radius, 5px);
    border: 2px solid var(--sfp-primary-color, #0073aa);
}

.sfp-summary-section h3 {
    color: var(--sfp-primary-color, #0073aa);
    margin-bottom: 20px;
}

.sfp-summary-content {
    background: white;
    padding: 20px;
    border-radius: var(--sfp-border-radius, 5px);
}

.sfp-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.sfp-summary-row:last-child {
    border-bottom: none;
}

.sfp-summary-label {
    font-weight: 500;
    color: #555;
}

.sfp-summary-value {
    font-weight: 600;
    color: #333;
}

.sfp-summary-total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--sfp-primary-color, #0073aa) !important;
    font-size: 18px;
}

.sfp-summary-total .sfp-summary-value {
    color: var(--sfp-primary-color, #0073aa);
    font-size: 20px;
}

.sfp-privacy-section {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--sfp-border-radius, 5px);
    border-left: 4px solid var(--sfp-primary-color, #0073aa);
}

.sfp-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sfp-checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--sfp-primary-color, #0073aa);
    flex-shrink: 0;
}

.sfp-checkbox-group label {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
}

.sfp-checkbox-group label a {
    color: var(--sfp-primary-color, #0073aa);
    text-decoration: underline;
}

.sfp-checkbox-group label a:hover {
    color: var(--sfp-secondary-color, #005177);
}

.sfp-form-actions {
    margin-top: 30px;
    text-align: center;
}

.sfp-submit-btn {
    background: var(--sfp-primary-color, #0073aa);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--sfp-border-radius, 5px);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    min-width: 200px;
}

.sfp-submit-btn:hover {
    background: var(--sfp-secondary-color, #005177);
    transform: translateY(-2px);
}

.sfp-submit-btn:active {
    transform: translateY(0);
}

.sfp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sfp-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: sfp-spin 0.8s linear infinite;
}

@keyframes sfp-spin {
    to { transform: rotate(360deg); }
}

.sfp-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--sfp-border-radius, 5px);
    text-align: center;
    font-weight: 500;
}

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

.sfp-form-message.sfp-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .sfp-form {
        padding: 20px;
    }
    
    .sfp-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .sfp-form-group.sfp-half {
        width: 100%;
    }
    
    .sfp-summary-section {
        padding: 15px;
    }
    
    .sfp-submit-btn {
        width: 100%;
        padding: 15px 20px;
    }
}
