/* Main Wrapper */
.faq-schema-wrapper {
    background: #f7f8fa;
    padding: 0;
    margin: -6px -12px -12px;
}

/* Header */
.faq-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.faq-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.faq-icon-badge {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

.faq-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.faq-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 13px;
}

.faq-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.faq-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.faq-stat-label {
    display: block;
    font-size: 11px;
    opacity: 0.9;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Benefits Cards */
.faq-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px 30px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.faq-benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.benefit-icon {
    font-size: 24px;
    line-height: 1;
}

.benefit-text strong {
    display: block;
    color: #1f2937;
    font-size: 13px;
    margin-bottom: 3px;
}

.benefit-text span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

/* Tips Section */
.faq-tips-section {
    padding: 20px 30px;
    background: #fef3c7;
    border-bottom: 1px solid #fbbf24;
}

.faq-tips-header {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 12px;
    font-size: 13px;
}

.faq-tips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.faq-tip-tag {
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #78350f;
    border: 1px solid #fcd34d;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-tip-tag:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Settings Card */
.faq-settings-card {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.faq-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-setting-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.setting-icon {
    font-size: 20px;
    line-height: 1;
}

.faq-setting-label strong {
    display: block;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 3px;
}

.faq-setting-label p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
}

.faq-select {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    min-width: 200px;
    background: white;
    cursor: pointer;
}

.faq-select:focus {
    border-color: #667eea;
    outline: none;
}

.faq-recommendation {
    margin-top: 15px;
    padding: 12px;
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    border-radius: 6px;
    font-size: 12px;
    color: #991b1b;
}

.faq-recommendation strong {
    font-weight: 600;
}

/* List Header */
.faq-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px 15px;
    background: #f7f8fa;
}

.faq-list-header h4 {
    margin: 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.faq-add-btn-top {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.faq-add-btn-top:hover {
    background: #5568d3;
}

/* FAQ List */
.faq-list {
    padding: 0 30px 20px;
    background: #f7f8fa;
    min-height: 50px; /* Ensure drop zone exists if empty */
}

/* Modern FAQ Item */
.faq-item-modern {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item-modern:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Sortable Placeholder Style */
.faq-sortable-placeholder {
    background: #f0f4ff;
    border: 2px dashed #667eea;
    border-radius: 10px;
    margin-bottom: 15px;
    height: 100px;
    visibility: visible !important;
    box-shadow: inset 0 0 10px rgba(102, 126, 234, 0.1);
}

/* Item Being Dragged (Helper) */
.faq-item-modern.ui-sortable-helper {
    background: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: rotate(2deg);
    opacity: 0.95;
    border-color: #667eea;
    cursor: grabbing;
}

.faq-item-header-modern {
    background: #f9fafb;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e5e7eb;
    cursor: default; /* Default cursor, handle will override */
}

/* Drag Handle Icon */
.faq-drag-handle {
    color: #9ca3af;
    cursor: grab;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.faq-drag-handle:hover {
    color: #667eea;
    background: #eff6ff;
}

.faq-drag-handle:active {
    cursor: grabbing;
}

/* SVG Icon adjustments */
.faq-drag-handle svg {
    display: block;
}

.faq-item-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.faq-item-title {
    flex: 1;
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.faq-delete-btn {
    background: transparent;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s, transform 0.2s;
}

.faq-delete-btn:hover {
    background: #fee2e2;
    transform: scale(1.1);
}

.faq-item-body {
    padding: 20px;
}

.faq-input-group {
    margin-bottom: 20px;
}

.faq-input-group:last-child {
    margin-bottom: 0;
}

.faq-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
}

.label-icon {
    font-size: 16px;
}

.faq-input,
.faq-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-input:focus,
.faq-textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.faq-char-count {
    margin-top: 6px;
    font-size: 11px;
    color: #9ca3af;
    text-align: right;
}

.char-current {
    font-weight: 600;
    color: #667eea;
}

/* Add Button */
.faq-add-button {
    width: calc(100% - 60px);
    margin: 0 30px 30px;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.2);
}

.faq-add-button:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 6px 10px rgba(102, 126, 234, 0.3);
}

.faq-add-button:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1200px) {
    .faq-benefits {
        grid-template-columns: 1fr;
    }
}
