/**
 * Fluent Form Summary Styles
 */

/* Form Summary Container */
.form_summary {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Form Summary Title */
.ff-form-summary-content h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Form Summary Items Container */
.ff-form-summary-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Summary Item */
.ff-summary-item {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.ff-summary-item:last-child {
    border-bottom: none;
}

/* Summary Label */
.ff-summary-label {
    width: 40%;
    font-weight: 600;
    color: #555;
    padding: 0 12px;
}

/* Summary Value */
.ff-summary-value {
    width: 60%;
    padding: 0 12px;
}

/* Responsive layout for mobile */
@media screen and (max-width: 767px) {
    .ff-summary-item {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .ff-summary-label,
    .ff-summary-value {
        width: 100%;
        padding: 4px 12px;
    }
    
    .ff-summary-label {
        font-weight: 700;
    }
}

/* Empty State */
.ff-form-summary-content p {
    margin: 0;
    color: #666;
}

/* When in the last step of a multi-step form */
.fluentform-step:last-child .form_summary {
    margin-bottom: 30px;
}

/* Print styles */
@media print {
    .form_summary {
        border: none;
        padding: 0;
        background: none;
    }
    
    .ff-form-summary-content h3 {
        font-size: 16px;
    }
}

/* Admin Settings Page Styles */
#fluent_form_summary_settings_form {
    margin-top: 20px;
}

.ff-form-selector-container {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
}

.ff-form-selector-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

#ff_form_selector {
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
}

.ff-form-fields {
    margin-top: 20px;
}

.ff-form-fields .form-field {
    margin-bottom: 10px;
}

.form-actions {
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Notice styling */
.ff-notice {
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 4px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.ff-notice.ff-notice-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.ff-notice.ff-notice-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Settings page styles */
.ff-summary-field-selector {
    margin-bottom: 20px;
}

.ff-field-selector {
    margin-top: 15px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.ff-select-actions {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.ff-select-actions button {
    min-width: 100px;
}

.ff-field-selector p {
    margin: 8px 0;
}

.ff-field-selector label {
    display: flex;
    align-items: center;
}

.ff-field-selector input[type="checkbox"] {
    margin-right: 8px;
}

/* New settings page dropdown styles */
.ff-form-selector {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    border-radius: 4px;
}

.ff-form-selector select {
    min-width: 300px;
    margin-right: 10px;
}

.ff-shortcode-info {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f8f8;
    border-left: 4px solid #0073aa;
}

.ff-shortcode-info code {
    display: inline-block;
    padding: 5px 10px;
    margin: 10px 0;
    background: #f1f1f1;
    font-size: 14px;
}
