* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.header h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.intro {
    padding: 40px;
    line-height: 1.8;
    color: #333;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 200px;
    height: auto;
}

@media (max-width: 768px) {
    .logo {
        max-width: 150px;
    }
}

.intro p {
    margin-bottom: 20px;
}

.intro ul {
    list-style: none;
    margin: 20px 0;
}

.intro li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
}

.intro li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 18px;
}

.content {
    padding: 40px;
}

.section-heading {
    color: #667eea;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.section-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .section-heading {
        font-size: 20px;
    }
    .section-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 20px;
    }
    .intro {
        padding: 20px;
    }
    .header {
        padding: 30px 20px;
    }
    .header h1 {
        font-size: 24px;
    }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.question-container {
    display: none;
    animation: fadeIn 0.4s;
}

.question-container.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-introduction {
    font-size: 18px;
    font-weight: 600;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9ff;
    border-left: 3px solid #667eea;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .question-introduction {
        font-size: 14px;
        padding: 12px;
        margin-bottom: 15px;
    }
}

.question-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.4;
}

.question-note {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #6c757d;
}

@media (max-width: 768px) {
    .question-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
}

.answer-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-btn {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    display: flex;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .answer-btn {
        padding: 14px 16px;
        font-size: 14px;
    }
}

.answer-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(5px);
}

.answer-btn:active {
    transform: translateX(5px) scale(0.98);
}

.answer-btn.selected {
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.answer-number {
    display: none; /* Hide if it exists from old version */
}

.answer-btn .answer-text {
    display: block;
    width: 100%;
}

.answer-text {
    flex: 1;
}

.text-input, .textarea-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.text-input:focus, .textarea-input:focus {
    outline: none;
    border-color: #667eea;
}

.textarea-input {
    min-height: 80px;
    resize: vertical;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.radio-option.selected {
    border-color: #667eea;
    background: #f8f9ff;
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
}

.btn-container {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .btn-container {
        margin-top: 20px;
        gap: 10px;
    }
}

.btn {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover:not(:disabled) {
    box-shadow: 0 10px 20px rgba(108, 117, 125, 0.3);
}

.hidden {
    display: none;
}

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

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.results {
    animation: fadeIn 0.5s;
}

.results h2 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 20px;
}

.results h3 {
    color: #667eea;
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .results h2 {
        font-size: 24px;
    }
    .results h3 {
        font-size: 20px;
    }
}

.constraint-highlight {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.constraint-highlight h3 {
    color: #856404;
    margin-top: 0;
}

.context-summary {
    background: #e8f4fd;
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.context-summary h3 {
    color: #1565C0;
    margin-top: 0;
    margin-bottom: 15px;
}

.perceived-barrier-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.perceived-barrier-box h3 {
    color: #e65100;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

.perceived-barrier-note {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

.context-item {
    margin-bottom: 10px;
    line-height: 1.6;
}

.context-label {
    font-weight: 600;
    color: #1565C0;
}

.score-summary {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    gap: 20px;
}

.score-item:last-child {
    border-bottom: none;
}

.score-details {
    flex: 1;
}

.score-category {
    font-weight: 700;
    color: #667eea;
    font-size: 16px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-question {
    color: #333;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.score-answer {
    color: #666;
    font-size: 14px;
    font-style: italic;
    line-height: 1.4;
}

.score-value {
    font-weight: 700;
    color: #667eea;
    font-size: 28px;
    flex-shrink: 0;
    min-width: 60px;
    text-align: right;
}

@media (max-width: 768px) {
    .score-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .score-value {
        text-align: left;
        font-size: 24px;
    }
    
    .score-category {
        font-size: 14px;
    }
    
    .score-question {
        font-size: 14px;
    }
    
    .score-answer {
        font-size: 13px;
    }
}

.score-label {
    color: #555;
}

.recommendations {
    line-height: 1.8;
    color: #555;
}

.recommendations p {
    margin-bottom: 15px;
}

/* Paragraph spacing for all report sections */
.results p {
    margin-bottom: 15px;
}

.results p:last-child {
    margin-bottom: 0;
}

.category-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#fullReport {
  background: #fafafa;
  border-radius: 8px;
  padding: 20px;
}


#fullReport h3, #fullReport h4 {
  margin-top: 1.4em;
  color: #333;
}

#fullReport p {
  line-height: 1.6;
  margin: 0.5em 0;
}

#fullReport {
  margin-top: 2em;
  border-top: 1px solid #ddd;
  padding-top: 1em;
}