/**
 * Sync.Land Survey Modal — Dark Theme
 */

/* Overlay */
.fml-survey-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

/* Container */
.fml-survey-container {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    max-width: 520px;
    width: 90%;
    position: relative;
    color: #e0e0e0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Close button */
.fml-survey-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}
.fml-survey-close:hover {
    color: #fff;
}

/* Step headings */
.fml-survey-step h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #fff;
}
.fml-survey-subtitle {
    font-size: 13px;
    color: #999;
    margin: 0 0 20px;
}

/* NPS buttons */
.fml-nps-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.fml-nps-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.fml-nps-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
    color: #fff;
}
.fml-nps-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

/* Use case checkboxes & radio */
.fml-use-case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}
.fml-checkbox-label,
.fml-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}
.fml-checkbox-label:hover,
.fml-radio-label:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}
.fml-checkbox-label input,
.fml-radio-label input {
    accent-color: #6366f1;
}

.fml-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

/* Stars */
.fml-stars {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}
.fml-star-btn {
    background: none;
    border: none;
    font-size: 36px;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 0;
}
.fml-star-btn:hover {
    color: #fbbf24;
    transform: scale(1.15);
}
.fml-star-btn.active {
    color: #fbbf24;
}

/* Textarea */
.fml-survey-textarea {
    width: 100%;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    color: #e0e0e0;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 16px;
    font-family: inherit;
}
.fml-survey-textarea:focus {
    outline: none;
    border-color: #6366f1;
}
.fml-survey-textarea::placeholder {
    color: #666;
}

/* Buttons */
.fml-survey-next,
.fml-survey-submit {
    display: inline-block;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.fml-survey-next:hover,
.fml-survey-submit:hover {
    background: #4f46e5;
}

/* Thank you */
.fml-survey-thanks {
    text-align: center;
    padding: 20px 0;
}
.fml-survey-thanks h3 {
    font-size: 24px;
    margin-bottom: 12px;
}
.fml-survey-thanks p {
    color: #999;
}

/* Footer */
.fml-survey-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.fml-dont-show {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    font-size: 12px;
    color: #666;
}
.fml-survey-step-indicator {
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 480px) {
    .fml-survey-container {
        padding: 24px 20px;
        margin: 16px;
    }
    .fml-use-case-grid {
        grid-template-columns: 1fr;
    }
    .fml-nps-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}
