/* ============================================================== 
    Survey Page Styles
=================================================================== */

.survey-page {
    padding-bottom: 80px;
}

/* Survey Header */
.survey-header-area {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.survey-header-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(51,102,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(0,191,255,0.1)"/><circle cx="40" cy="80" r="2" fill="rgba(124,58,237,0.1)"/></svg>');
    background-size: 100px 100px;
}

.survey-header-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.survey-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3366ff 0%, #5a8aff 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 40px rgba(51, 102, 255, 0.3);
}

.survey-icon i {
    font-size: 36px;
    color: #fff;
}

.survey-header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.survey-intro {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 15px;
}

.survey-intro-secondary {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-bottom: 30px;
}

.survey-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.survey-benefits span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.survey-benefits span i {
    color: #4ade80;
}

/* Survey Container */
.survey-container {
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

/* Survey Card */
.survey-card {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.1);
    position: relative;
}

.survey-step-indicator {
    position: absolute;
    top: 25px;
    right: 30px;
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

.survey-step-indicator .step-number {
    font-size: 24px;
    font-weight: 700;
    color: #3366ff;
}

.survey-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #232323;
    margin-bottom: 15px;
}

.step-description {
    color: #666;
    font-size: 16px;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Role Selection */
.role-selection {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.role-option {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.role-option:hover {
    border-color: #3366ff;
    background: #f8faff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(51, 102, 255, 0.1);
}

.role-option:focus {
    outline: none;
    border-color: #3366ff;
    box-shadow: 0 0 0 4px rgba(51, 102, 255, 0.15);
}

.role-option.selected {
    border-color: #3366ff;
    background: linear-gradient(135deg, #f0f5ff 0%, #e8f0ff 100%);
    box-shadow: 0 8px 30px rgba(51, 102, 255, 0.15);
}

.role-option.selected .role-select-indicator i {
    color: #3366ff;
}

.role-option.selected .role-select-indicator i::before {
    content: "\f058";
}

.role-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3366ff 0%, #5a8aff 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.role-icon i {
    font-size: 26px;
    color: #fff;
}

.role-content {
    flex: 1;
}

.role-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #232323;
    margin-bottom: 8px;
}

.role-content > p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.role-examples {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.role-examples li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    background: rgba(51, 102, 255, 0.08);
    padding: 5px 12px;
    border-radius: 20px;
}

.role-examples li i {
    color: #3366ff;
    font-size: 11px;
}

.role-select-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
}

.role-select-indicator i {
    font-size: 24px;
    color: #d1d5db;
    transition: color 0.3s ease;
}

/* Survey Actions */
.survey-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.survey-actions .btn {
    min-width: 180px;
}

.survey-actions .btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: none;
}

.survey-actions .btn-secondary:hover {
    background: #e2e8f0;
}

/* Survey Role Badge */
.survey-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3366ff 0%, #5a8aff 100%);
    border-radius: 30px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
}

.survey-role-badge i {
    font-size: 16px;
}

/* Questions Container */
#questionsContainer {
    margin-bottom: 40px;
}

.question-group {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #f1f5f9;
}

.question-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.question-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.question-category.situation {
    background: #dbeafe;
    color: #1e40af;
}

.question-category.problem {
    background: #fef3c7;
    color: #92400e;
}

.question-category.implication {
    background: #fee2e2;
    color: #991b1b;
}

.question-category.need-payoff {
    background: #d1fae5;
    color: #065f46;
}

.question-category.general {
    background: #f3f4f6;
    color: #4b5563;
}

.question-label {
    font-size: 16px;
    font-weight: 600;
    color: #232323;
    margin-bottom: 8px;
    line-height: 1.5;
}

.question-hint {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 12px;
    font-style: italic;
}

.question-group .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.question-group .form-control:focus {
    border-color: #3366ff;
    box-shadow: 0 0 0 4px rgba(51, 102, 255, 0.1);
}

.question-group textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.question-group select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 45px;
}

/* Optional Contact Section */
.optional-contact {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.optional-contact h4 {
    font-size: 16px;
    font-weight: 600;
    color: #232323;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.optional-contact h4 i {
    color: #3366ff;
}

.optional-contact > p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.optional-contact .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
}

/* Success Card */
.success-card {
    text-align: center;
    padding: 60px 50px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(74, 222, 128, 0); }
}

.success-icon i {
    font-size: 48px;
    color: #fff;
}

.success-card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.success-card > p {
    font-size: 16px;
    color: #666;
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.success-next {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
    text-align: left;
}

.success-next h4 {
    font-size: 16px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 20px;
}

.success-next ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.success-next ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    color: #555;
    font-size: 15px;
}

.success-next ul li i {
    color: #3366ff;
    margin-top: 3px;
}

.success-cta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.success-cta .btn-outline {
    background: transparent;
    border: 2px solid #3366ff;
    color: #3366ff;
}

.success-cta .btn-outline:hover {
    background: #3366ff;
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .survey-header-area {
        padding: 100px 0 60px;
    }
    
    .survey-header-content h1 {
        font-size: 1.8rem;
    }
    
    .survey-benefits {
        flex-direction: column;
        gap: 15px;
    }
    
    .survey-card {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .survey-card h2 {
        font-size: 1.4rem;
    }
    
    .survey-step-indicator {
        position: static;
        margin-bottom: 20px;
    }
    
    .role-option {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .role-icon {
        margin: 0 auto;
    }
    
    .role-select-indicator {
        position: static;
        margin-top: 15px;
    }
    
    .role-examples {
        justify-content: center;
    }
    
    .survey-actions {
        flex-direction: column;
    }
    
    .survey-actions .btn {
        width: 100%;
    }
    
    .success-cta {
        flex-direction: column;
    }
    
    .success-cta .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .survey-header-content h1 {
        font-size: 1.5rem;
    }
    
    .survey-intro {
        font-size: 1rem;
    }
    
    .survey-icon {
        width: 60px;
        height: 60px;
    }
    
    .survey-icon i {
        font-size: 28px;
    }
}
