/* Question Components */
.question-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.question-header h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.question-text {
    font-size: var(--text);
    line-height: var(--line);
    margin-bottom: 20px;
    color: var(--text-primary);
}

.help-text {
    background: var(--int-white);
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.help-text small {
    color: var(--text-secondary);
    font-style: italic;
}

/* Question Options */
.question-options {
    margin: 20px 0;
}

.option-label {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--int-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-label:hover {
    border-color: var(--brand);
    background: var(--bg-card);
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.option-label input[type="radio"]:checked + .option-text,
.option-label input[type="checkbox"]:checked + .option-text {
    color: var(--brand);
    font-weight: 600;
}

.multi-select-hint {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
}

.option-text {
    flex: 1;
    line-height: 1.4;
}

/* Question Input */
.question-input textarea {
    width: 100%;
    min-height: 120px;
    padding: 20px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    font-size: var(--text);
    font-family: inherit;
    resize: vertical;
    box-shadow: var(--shadow-sm);
}

.question-input textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 70%);
}

/* Question Actions */
.question-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.question-actions .btn-secondary {
    min-width: 120px;
}

/* Email Report Form */
.email-form-container {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.email-form .form-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.email-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    color: #333333 !important;
    background-color: #ffffff !important;
    transition: all 0.3s ease;
}

.email-form input[type="email"]:focus {
    outline: none;
    border-color: #f26522;
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.1);
    color: #333333 !important;
    background-color: #ffffff !important;
}

.email-form input[type="email"]::placeholder {
    color: #999999 !important;
    opacity: 1;
}

/* Force visibility for all inputs in results */
#results-container input[type="email"],
#results-container input[type="text"] {
    color: #333333 !important;
    background-color: #ffffff !important;
    border: 2px solid #e1e5e9 !important;
}

#results-container input[type="email"]:focus,
#results-container input[type="text"]:focus {
    color: #333333 !important;
    background-color: #ffffff !important;
    border-color: #f26522 !important;
}

/* AI News Section */
.analysis-progress {
    margin-bottom: 40px;
    text-align: center;
}

.analysis-progress h2 {
    color: var(--brand);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.analysis-progress p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.progress-fill.analyzing {
    animation: analyzing 3s ease-in-out infinite;
    background: var(--brand);
}

@keyframes analyzing {
    0% { width: 10%; }
    50% { width: 70%; }
    100% { width: 85%; }
}

.news-container {
    margin-top: 30px;
}

.news-container h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.news-subtitle {
    color: #666;
    margin-bottom: 25px;
    font-style: italic;
}

.news-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--brand) var(--bg-secondary);
}

.news-list::-webkit-scrollbar {
    width: 8px;
}

.news-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb {
    background: var(--brand);
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb:hover {
    background: var(--brand-hover);
}

.news-loading {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

.news-item {
    background: var(--int-white);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--brand);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.news-item:hover {
    background: #f9fbfd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.news-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.3;
}

.news-title {
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.news-summary {
    color: #555;
    line-height: 1.6;
    margin: 15px 0;
    font-size: 0.95rem;
    text-align: justify;
    max-height: none;
}

.news-meta {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #666;
}

.news-date {
    font-style: italic;
}

/* Completion Card */
.completion-card {
    text-align: center;
    padding: 40px;
    background: var(--brand);
    border-radius: var(--radius-lg);
    color: white;
    border: 1px solid var(--brand-hover);
}

.completion-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.completion-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Results Components */
.results-content {
    max-width: 1200px;
    margin: 0 auto;
}

.result-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.result-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--brand);
}

.summary-content p {
    font-size: var(--text);
    line-height: var(--line);
    color: var(--text-primary);
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    gap: 25px;
}

.use-case-card {
    background: var(--int-white);
    border-radius: var(--radius-md);
    padding: 25px;
    border-left: 4px solid var(--brand);
    border: 1px solid var(--border-color);
}

.use-case-header h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.use-case-description {
    font-size: var(--text);
    line-height: var(--line);
    color: var(--text-primary);
    margin-bottom: 20px;
}

.use-case-impact,
.use-case-timeline,
.use-case-criteria {
    margin-bottom: 15px;
}

.use-case-impact strong,
.use-case-timeline strong,
.use-case-criteria strong {
    color: var(--brand);
}

.use-case-criteria ul {
    margin-left: 20px;
    margin-top: 8px;
}

.use-case-criteria li {
    margin-bottom: 5px;
    color: var(--text-primary);
}

/* Roadmap Timeline */
.roadmap-timeline {
    position: relative;
}

.roadmap-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.roadmap-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 25px;
}

.marker-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #f26522, #e55a1a);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.marker-line {
    width: 2px;
    height: 60px;
    background: #e1e5e9;
    margin-top: 10px;
}

.roadmap-content {
    flex: 1;
}

.roadmap-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.roadmap-header h4 {
    color: #333;
    font-size: 1.2rem;
    margin: 0;
}

.roadmap-phase {
    background: #f26522;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.roadmap-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.roadmap-duration,
.roadmap-deliverables {
    margin-bottom: 10px;
}

.roadmap-duration strong,
.roadmap-deliverables strong {
    color: #f26522;
}

.roadmap-deliverables ul {
    margin-left: 20px;
    margin-top: 8px;
}

.roadmap-deliverables li {
    margin-bottom: 5px;
    color: #666;
}

/* Next Steps */
.next-steps-list {
    counter-reset: step-counter;
}

.next-step-item {
    counter-increment: step-counter;
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border-left: 4px solid #f26522;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
}

.next-step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: -15px;
    top: 15px;
    background: #f26522;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Timeline Summary */
.timeline-summary {
    text-align: center;
    background: var(--brand);
    color: white;
    border-radius: var(--radius-lg);
}

.timeline-summary h3 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.timeline-text {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Actions */
.actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Analysis Ready Styling */
.analysis-ready {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 15px;
    color: white;
    margin-bottom: 20px;
}

.analysis-ready h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.analysis-ready p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* HTML Roadmap Styling */
.html-roadmap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.html-roadmap .roadmap-summary {
    background: var(--brand);
    color: white;
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.html-roadmap .roadmap-summary h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.html-roadmap .roadmap-timeline h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f26522;
    padding-bottom: 10px;
}

.html-roadmap .timeline-period {
    background: #f8f9fa;
    border-left: 4px solid #f26522;
    margin-bottom: 25px;
    padding: 25px 30px;
    border-radius: 8px;
}

.html-roadmap .timeline-period h4 {
    color: #f26522;
    margin-bottom: 18px;
    font-size: 1.3rem;
    font-weight: 600;
}

.html-roadmap .timeline-period ul {
    margin: 15px 0;
    padding-left: 20px;
}

.html-roadmap .timeline-period li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 16px;
}

.html-roadmap .timeline-impact {
    background: #e3f2fd;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: #1565c0;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.5;
}

.html-roadmap .roadmap-next-steps {
    background: #f0f8f0;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.html-roadmap .roadmap-next-steps h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.html-roadmap .roadmap-next-steps ul {
    list-style: none;
    padding: 0;
}

.html-roadmap .roadmap-next-steps li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.html-roadmap .roadmap-next-steps li:last-child {
    border-bottom: none;
}

/* HTML Use Cases Styling */
.html-use-cases {
    width: 100%;
}

.html-use-cases h1 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f26522;
}

.html-use-cases h2 {
    color: #f26522;
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.html-use-cases p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.html-use-cases strong {
    color: #333;
}

.html-use-cases div {
    margin-bottom: 20px;
}

/* Roadmap Generation Section */
.roadmap-generation {
    background: var(--brand);
    color: white;
    border-radius: var(--radius-lg);
}

.roadmap-generation h3 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.roadmap-description {
    font-size: 1.1rem;
    color: #333;
    opacity: 1;
    margin-bottom: 25px;
}

.email-form-container {
    max-width: 400px;
    margin: 0 auto;
}

.email-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input[type="email"] {
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    placeholder-color: rgba(255, 255, 255, 0.7);
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 40px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #f26522;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--brand);
}

.loading-content p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Company Review Section */
.review-instruction {
    font-size: var(--text);
    color: var(--text-secondary);
    margin-bottom: 25px;
    text-align: center;
}

.company-summary-form {
    margin-bottom: 30px;
}

.company-summary-form label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.company-summary-form textarea {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: var(--text);
    font-family: inherit;
    line-height: var(--line);
    color: var(--text-primary);
    background-color: var(--int-white);
    box-shadow: var(--shadow-sm);
    resize: vertical;
    transition: all 0.2s ease;
}

.company-summary-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.char-counter {
    text-align: right;
    margin-top: 8px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.review-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .review-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .review-actions button {
        width: 100%;
    }
}

/* Empty States */
.empty-state {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .roadmap-item {
        flex-direction: column;
    }
    
    .roadmap-marker {
        flex-direction: row;
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .marker-line {
        width: 60px;
        height: 2px;
        margin-top: 0;
        margin-left: 10px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .next-step-item::before {
        position: static;
        margin-bottom: 10px;
    }
}