/**
 * Public styles for Clinic Interactive Survey Pro
 */

/* Container Styling */
.clinic-survey-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 100%;
    margin: 0 auto 30px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Theme Colors */
.clinic-survey-container.theme-blue {
    background-color: #f5f9ff;
    border: 1px solid #d0e3ff;
}

.clinic-survey-container.theme-green {
    background-color: #f5fff7;
    border: 1px solid #d0ffd8;
}

.clinic-survey-container.theme-orange {
    background-color: #fffaf5;
    border: 1px solid #ffe8d0;
}

.clinic-survey-container.theme-purple {
    background-color: #faf5ff;
    border: 1px solid #e8d0ff;
}

/* Progress Bar */
.clinic-survey-progress {
    margin-bottom: 25px;
}

.clinic-survey-progress .progress-bar {
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.clinic-survey-progress .progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.theme-blue .progress-fill {
    background-color: #0073aa;
}

.theme-green .progress-fill {
    background-color: #00a32a;
}

.theme-orange .progress-fill {
    background-color: #e67e22;
}

.theme-purple .progress-fill {
    background-color: #8e44ad;
}

.clinic-survey-progress .progress-steps {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.clinic-survey-progress .step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    position: relative;
}

.clinic-survey-progress .step.active {
    color: #fff;
}

.theme-blue .step.active {
    background-color: #0073aa;
}

.theme-green .step.active {
    background-color: #00a32a;
}

.theme-orange .step.active {
    background-color: #e67e22;
}

.theme-purple .step.active {
    background-color: #8e44ad;
}

/* Survey Title */
.clinic-survey-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

.theme-blue .clinic-survey-title {
    color: #0073aa;
}

.theme-green .clinic-survey-title {
    color: #00a32a;
}

.theme-orange .clinic-survey-title {
    color: #e67e22;
}

.theme-purple .clinic-survey-title {
    color: #8e44ad;
}

/* Question Styling */
.clinic-survey-question h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

/* Style Variations */
/* Classic Style */
.style-classic .clinic-survey-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.style-classic .clinic-survey-option {
    padding: 15px 20px;
    background-color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #eee;
}

.style-classic .clinic-survey-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.style-classic .clinic-survey-option.selected {
    border-color: #0073aa;
    background-color: #f0f7fc;
}

.theme-blue.style-classic .clinic-survey-option.selected {
    border-color: #0073aa;
}

.theme-green.style-classic .clinic-survey-option.selected {
    border-color: #00a32a;
}

.theme-orange.style-classic .clinic-survey-option.selected {
    border-color: #e67e22;
}

.theme-purple.style-classic .clinic-survey-option.selected {
    border-color: #8e44ad;
}

/* Modern Style */
.style-modern .clinic-survey-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.style-modern .clinic-survey-option {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.style-modern .clinic-survey-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.style-modern .clinic-survey-option.selected {
    color: #fff;
}

.theme-blue.style-modern .clinic-survey-option.selected {
    background-color: #0073aa;
}

.theme-green.style-modern .clinic-survey-option.selected {
    background-color: #00a32a;
}

.theme-orange.style-modern .clinic-survey-option.selected {
    background-color: #e67e22;
}

.theme-purple.style-modern .clinic-survey-option.selected {
    background-color: #8e44ad;
}

/* Minimal Style */
.style-minimal .clinic-survey-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.style-minimal .clinic-survey-option {
    padding: 12px 15px;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid #eee;
}

.style-minimal .clinic-survey-option:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.style-minimal .clinic-survey-option.selected {
    font-weight: bold;
}

.theme-blue.style-minimal .clinic-survey-option.selected {
    border-bottom-color: #0073aa;
}

.theme-green.style-minimal .clinic-survey-option.selected {
    border-bottom-color: #00a32a;
}

.theme-orange.style-minimal .clinic-survey-option.selected {
    border-bottom-color: #e67e22;
}

.theme-purple.style-minimal .clinic-survey-option.selected {
    border-bottom-color: #8e44ad;
}

/* Navigation Buttons */
.clinic-survey-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.clinic-survey-navigation button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.clinic-survey-prev {
    background-color: #f1f1f1;
    color: #333;
}

.clinic-survey-prev:hover {
    background-color: #e5e5e5;
}

.clinic-survey-next,
.clinic-survey-submit {
    color: #fff;
}

.theme-blue .clinic-survey-next,
.theme-blue .clinic-survey-submit {
    background-color: #0073aa;
}

.theme-green .clinic-survey-next,
.theme-green .clinic-survey-submit {
    background-color: #00a32a;
}

.theme-orange .clinic-survey-next,
.theme-orange .clinic-survey-submit {
    background-color: #e67e22;
}

.theme-purple .clinic-survey-next,
.theme-purple .clinic-survey-submit {
    background-color: #8e44ad;
}

.clinic-survey-next, .clinic-survey-submit {
    color: #fff !important;
}

.clinic-survey-next:hover,
.clinic-survey-submit:hover {
    opacity: 0.9;
}

.clinic-survey-next:disabled,
.clinic-survey-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.clinic-survey-restart {
    background-color: #f1f1f1;
    color: #333;
    margin: 0 auto;
    display: block;
}

.clinic-survey-restart:hover {
    background-color: #e5e5e5;
}

/* Results Styling */
.clinic-survey-loading {
    text-align: center;
    padding: 30px 0;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

.theme-blue .loading-spinner {
    border-top-color: #0073aa;
}

.theme-green .loading-spinner {
    border-top-color: #00a32a;
}

.theme-orange .loading-spinner {
    border-top-color: #e67e22;
}

.theme-purple .loading-spinner {
    border-top-color: #8e44ad;
}

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

.result-header {
    text-align: center;
    margin-bottom: 25px;
}

.result-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 30px;
    color: #fff;
}

.theme-blue .result-icon {
    background-color: #0073aa;
}

.theme-green .result-icon {
    background-color: #00a32a;
}

.theme-orange .result-icon {
    background-color: #e67e22;
}

.theme-purple .result-icon {
    background-color: #8e44ad;
}

.result-title {
    font-size: 22px;
    margin: 0;
}

.result-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.result-recommendation {
    margin-bottom: 20px;
    line-height: 1.6;
}

.result-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.result-department,
.result-doctor {
    flex: 1;
    min-width: 200px;
}

.result-action {
    text-align: center;
    margin-top: 20px;
}

.result-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    transition: all 0.2s ease;
}

.theme-blue .result-button {
    background-color: #0073aa;
}

.theme-green .result-button {
    background-color: #00a32a;
}

.theme-orange .result-button {
    background-color: #e67e22;
}

.theme-purple .result-button {
    background-color: #8e44ad;
}

.result-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.result-nav {
    justify-content: center;
}

/* Debug Information Styling */
.clinic-survey-debug {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 14px;
}

.clinic-survey-debug .debug-header h4 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 16px;
}

.clinic-survey-debug .debug-content p {
    margin: 0;
    color: #856404;
}

.clinic-survey-debug .debug-combination {
    font-family: 'Courier New', monospace;
    background-color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .clinic-survey-container {
        padding: 20px 15px;
    }
    
    .style-modern .clinic-survey-options {
        grid-template-columns: 1fr;
    }
    
    .result-details {
        flex-direction: column;
        gap: 10px;
    }
}
