/* ===== BASE RESET ===== */

.wide-fisf-survey-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.wide-fisf-survey-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: inherit;
    line-height: 1.6;
    color: #1a1a1a;
    background: white;
}


/* ===== HEADER ===== */

.wide-fisf-survey-header {
    margin-bottom: 40px;
    text-align: center;
}

.wide-fisf-survey-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 16px;
}

.wide-fisf-survey-description {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}


/* ===== QUESTIONS CONTAINER ===== */

.wide-fisf-survey-questions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}


/* ===== QUESTION ITEM ===== */

.wide-fisf-survey-question {
    /* No card styling for title and note types */
}


/* Title type - normal content style */

.wide-fisf-survey-title-type {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #4f46e5;
}


/* Note type - normal content style */

.wide-fisf-survey-note-type {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0 0 10px 0;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #9ca3af;
}


/* Regular question styling */

.wide-fisf-survey-regular-question {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
}

.wide-fisf-survey-question-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.wide-fisf-survey-question-hint {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 20px;
}

.wide-fisf-survey-question-required {
    color: #ef4444;
    margin-left: 4px;
}


/* ===== QUESTION TYPES ===== */


/* Typing input */

.wide-fisf-survey-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
    min-height: 44px;
}

.wide-fisf-survey-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.wide-fisf-survey-input.error {
    border-color: #ef4444;
}

.wide-fisf-survey-textarea {
    min-height: 120px;
    resize: vertical;
}


/* Checkbox (multiple select) */

.wide-fisf-survey-check-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wide-fisf-survey-check-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wide-fisf-survey-check-option:hover {
    border-color: #9ca3af;
}

.wide-fisf-survey-check-option.selected {
    background: #e0e7ff;
    border-color: #4f46e5;
}

.wide-fisf-survey-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.wide-fisf-survey-check-label {
    flex: 1;
    cursor: pointer;
    font-size: 1rem;
    color: #374151;
    line-height: 1.4;
}


/* Optional (radio button - select one) */

.wide-fisf-survey-optional-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wide-fisf-survey-optional-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wide-fisf-survey-optional-option:hover {
    border-color: #9ca3af;
}

.wide-fisf-survey-optional-option.selected {
    background: #e0e7ff;
    border-color: #4f46e5;
}

.wide-fisf-survey-optional-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.wide-fisf-survey-optional-label {
    flex: 1;
    cursor: pointer;
    font-size: 1rem;
    color: #374151;
    line-height: 1.4;
}


/* Dropdown */

.wide-fisf-survey-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    appearance: none;
    font-family: inherit;
    min-height: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}

.wide-fisf-survey-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.wide-fisf-survey-select.error {
    border-color: #ef4444;
}


/* Upload */

.wide-fisf-survey-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.wide-fisf-survey-upload-area:hover {
    border-color: #9ca3af;
}

.wide-fisf-survey-upload-area.active {
    border-color: #4f46e5;
    background: #f0f9ff;
}

.wide-fisf-survey-upload-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #9ca3af;
}

.wide-fisf-survey-upload-text {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.wide-fisf-survey-upload-hint {
    font-size: 0.875rem;
    color: #9ca3af;
}

.wide-fisf-survey-upload-file {
    display: none;
}

.wide-fisf-survey-upload-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f3f4f6;
    border-radius: 8px;
    margin-top: 16px;
}

.wide-fisf-survey-upload-filename {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
    word-break: break-all;
}

.wide-fisf-survey-upload-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.wide-fisf-survey-upload-remove:hover {
    background: #fee2e2;
}


/* ===== SUBMIT BUTTON ===== */

.wide-fisf-survey-submit-wrap {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.wide-fisf-survey-submit-btn {
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
}

.wide-fisf-survey-submit-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.wide-fisf-survey-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* ===== STATUS MESSAGES ===== */

.wide-fisf-survey-status {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    display: none;
}

.wide-fisf-survey-status.success {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.wide-fisf-survey-status.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}


/* ===== LOADER ===== */

.wide-fisf-survey-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.wide-fisf-survey-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    animation: wide-fisf-survey-spin 1s linear infinite;
}

@keyframes wide-fisf-survey-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* ===== THANK YOU SCREEN ===== */

.wide-fisf-survey-thankyou {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.wide-fisf-survey-thankyou.active {
    display: block;
}

.wide-fisf-survey-thankyou-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #10b981;
}

.wide-fisf-survey-thankyou-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.wide-fisf-survey-thankyou-message {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.5;
}

.wide-fisf-survey-thankyou-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .wide-fisf-survey-container {
        padding: 20px 15px;
    }
    .wide-fisf-survey-title {
        font-size: 1.75rem;
    }
    .wide-fisf-survey-description {
        font-size: 1rem;
    }
    .wide-fisf-survey-title-type {
        font-size: 1.5rem;
    }
    .wide-fisf-survey-regular-question {
        padding: 20px;
    }
    .wide-fisf-survey-question-title {
        font-size: 1.125rem;
    }
    .wide-fisf-survey-submit-btn {
        width: 100%;
        max-width: 300px;
    }
    .wide-fisf-survey-thankyou {
        padding: 40px 15px;
    }
    .wide-fisf-survey-thankyou-title {
        font-size: 1.75rem;
    }
    .wide-fisf-survey-thankyou-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .wide-fisf-survey-title {
        font-size: 1.5rem;
    }
    .wide-fisf-survey-title-type {
        font-size: 1.25rem;
    }
    .wide-fisf-survey-regular-question {
        padding: 16px;
    }
    .wide-fisf-survey-check-option,
    .wide-fisf-survey-optional-option {
        padding: 10px 12px;
    }
    .wide-fisf-survey-upload-area {
        padding: 30px 15px;
    }
}


/* Style for new field types */

.wide-fisf-question-name .wide-fisf-question-label:before {
    content: "👤 ";
}

.wide-fisf-question-mobile .wide-fisf-question-label:before {
    content: "📱 ";
}

.wide-fisf-question-email .wide-fisf-question-label:before {
    content: "📧 ";
}


/* Validation error styles */

.wide-fisf-field-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.wide-fisf-error-message {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wide-fisf-error-message:before {
    content: "⚠️ ";
}


/* Review Component Styles */

.wide-fisf-survey-review-component {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wide-fisf-survey-review-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-top: 15px;
}


/* Reviewer Image Column */

.wide-fisf-reviewer-image-col {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.wide-fisf-reviewer-image-hint {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
    text-align: center;
}

.wide-fisf-reviewer-upload {
    min-height: 180px;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
}

.wide-fisf-reviewer-upload:hover {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.wide-fisf-reviewer-upload.active {
    border-color: #10b981;
    background: #f0fdf4;
}

.wide-fisf-reviewer-preview-area {
    margin-top: 15px;
    text-align: center;
}

.wide-fisf-reviewer-preview-img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* Review Text Column */

.wide-fisf-review-text-col {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.wide-fisf-review-text-container {
    width: 100%;
}

.wide-fisf-review-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    resize: vertical;
    transition: border-color 0.3s;
    min-height: 180px;
    background: #ffffff;
}

.wide-fisf-review-textarea:focus {
    border-color: #8b5cf6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.wide-fisf-review-counter {
    text-align: right;
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

.wide-fisf-review-counter .current {
    font-weight: 600;
    color: #8b5cf6;
}


/* File Upload Preview */

.wide-fisf-survey-upload-preview {
    margin-top: 10px;
    padding: 10px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wide-fisf-image-preview {
    flex-direction: column;
}

.wide-fisf-survey-upload-filename {
    font-size: 12px;
    color: #475569;
    word-break: break-all;
}

.wide-fisf-survey-upload-remove {
    padding: 4px 8px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.wide-fisf-survey-upload-remove:hover {
    background: #fecaca;
    color: #991b1b;
}


/* Mobile Responsive */

@media (max-width: 768px) {
    .wide-fisf-survey-review-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .wide-fisf-reviewer-image-col,
    .wide-fisf-review-text-col {
        padding: 15px;
    }
    .wide-fisf-reviewer-upload {
        min-height: 150px;
    }
    .wide-fisf-reviewer-preview-img {
        max-width: 100px;
        max-height: 100px;
    }
    .wide-fisf-review-textarea {
        min-height: 150px;
    }
}