/* CRAFFT 2.1 Teen Substance Screening Styles */
/* Color theme: Cyan/Teal (#06b6d4, gradient to #0891b2) */

.crafft-calculator-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
    line-height: 1.6;
}

.crafft-calculator-container * {
    box-sizing: border-box;
}

/* ============================================
   HERO SECTION
   ============================================ */
.crafft-hero {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 30px;
}

.crafft-hero h1 {
    margin: 0 0 12px 0;
    font-size: 2.2em;
    font-weight: 700;
}

.crafft-hero .hero-subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 20px auto;
    line-height: 1.5;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    text-align: center;
    padding: 25px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #06b6d4;
}

.stat-card .stat-number {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: #0891b2;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    display: block;
    font-size: 0.9em;
    color: #666;
}

/* ============================================
   PRIVACY NOTICE
   ============================================ */
.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    border-left: 5px solid #06b6d4;
    border-radius: 0 8px 8px 0;
    margin-bottom: 30px;
}

.privacy-icon {
    font-size: 1.8em;
    flex-shrink: 0;
    margin-top: 2px;
}

.privacy-notice strong {
    display: block;
    color: #155e75;
    margin-bottom: 5px;
    font-size: 1.05em;
}

.privacy-notice p {
    margin: 0;
    color: #164e63;
    font-size: 0.95em;
}

/* ============================================
   CALCULATOR FORM
   ============================================ */
.calculator-form-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.calculator-form-section h2 {
    color: #0891b2;
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #06b6d4;
    font-size: 1.5em;
}

.form-instruction {
    font-size: 1.05em;
    color: #555;
    margin-bottom: 25px;
    padding: 15px;
    background: #ecfeff;
    border-radius: 6px;
    border-left: 3px solid #06b6d4;
}

/* Progress Bar (injected by shared.js) */
.mdcv2-progress-wrapper {
    margin-bottom: 25px;
    padding: 15px;
    background: #ecfeff;
    border-radius: 8px;
}

.mdcv2-progress-text {
    font-size: 0.9em;
    color: #155e75;
    font-weight: 600;
    margin-bottom: 8px;
}

.mdcv2-progress-bar {
    width: 100%;
    height: 10px;
    background: #a5f3fc;
    border-radius: 5px;
    overflow: hidden;
}

.mdcv2-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* ============================================
   PART SECTIONS
   ============================================ */
.part-section {
    margin-bottom: 25px;
}

.part-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.part-header-a {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    border-left: 4px solid #06b6d4;
}

.part-header-b {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-left: 4px solid #14b8a6;
}

.part-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: #06b6d4;
    color: white;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.part-header-b .part-label {
    background: #14b8a6;
}

.part-title {
    font-size: 1.05em;
    font-weight: 600;
    color: #155e75;
}

/* ============================================
   QUESTION CARDS
   ============================================ */
.question-card {
    padding: 20px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.question-card:hover {
    border-color: #06b6d4;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.1);
}

.question-card.answered {
    border-color: #06b6d4;
    background: #ecfeff;
}

.question-card.error {
    border-color: #ef4444;
    background: #fef2f2;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.question-text {
    font-weight: 600;
    font-size: 1.05em;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.5;
}

.question-note {
    font-weight: 400;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.q-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 8px;
    background: #06b6d4;
    color: white;
    border-radius: 14px;
    font-size: 0.8em;
    margin-right: 10px;
    font-weight: 700;
    vertical-align: middle;
}

.mnemonic-letter {
    display: inline-block;
    padding: 2px 10px;
    background: #cffafe;
    color: #0e7490;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    margin-right: 6px;
    vertical-align: middle;
}

/* ============================================
   YES/NO TOGGLE BUTTONS
   ============================================ */
.radio-toggle {
    display: flex;
    gap: 12px;
    margin-left: 42px;
}

.toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 160px;
    font-size: 1em;
    font-weight: 500;
}

.toggle-btn:hover {
    border-color: #06b6d4;
    background: #ecfeff;
}

.toggle-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-btn span {
    color: #555;
    font-weight: 500;
    transition: all 0.2s ease;
}

.toggle-btn:has(input:checked) {
    border-color: #06b6d4;
    background: #06b6d4;
}

.toggle-btn:has(input:checked) span {
    color: white;
    font-weight: 600;
}

/* Fallback for browsers without :has() */
.toggle-btn input[type="radio"]:checked + span {
    color: white;
    font-weight: 600;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.form-submit {
    text-align: center;
    margin-top: 25px;
}

.submit-btn {
    display: inline-block;
    width: 100%;
    max-width: 400px;
    padding: 16px 30px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ============================================
   RESULTS SECTION
   ============================================ */
.results-section {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px solid #06b6d4;
}

.results-section h2 {
    text-align: center;
    color: #0891b2;
    margin-top: 0;
    font-size: 1.6em;
}

/* Score Display */
.score-circle-wrapper {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.score-circle {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.35);
}

.score-circle.score-none {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.score-circle.score-low {
    background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
    box-shadow: 0 8px 25px rgba(132, 204, 22, 0.35);
}

.score-circle.score-positive {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35);
}

.score-value {
    font-size: 3em;
    font-weight: 700;
    line-height: 1;
}

.score-max {
    font-size: 0.85em;
    opacity: 0.9;
}

/* Risk Level Card */
.risk-level-card {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.risk-level-card.risk-none {
    background: #d1fae5;
    border: 2px solid #10b981;
}

.risk-level-card.risk-low {
    background: #ecfccb;
    border: 2px solid #84cc16;
}

.risk-level-card.risk-positive {
    background: #fee2e2;
    border: 2px solid #ef4444;
}

.risk-label {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 8px;
}

.risk-none .risk-label {
    color: #065f46;
}

.risk-low .risk-label {
    color: #3f6212;
}

.risk-positive .risk-label {
    color: #991b1b;
}

.risk-description {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
}

/* Interpretation Card */
.interpretation-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.interpretation-card h3 {
    color: #0891b2;
    margin-top: 20px;
    margin-bottom: 10px;
}

.interpretation-card p {
    margin: 10px 0;
    line-height: 1.7;
}

.interpretation-card ul {
    padding-left: 20px;
    margin: 10px 0;
}

.interpretation-card li {
    margin-bottom: 6px;
}

/* Level Scale */
.level-scale {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 20px 0;
}

.level-item {
    text-align: center;
    padding: 12px 8px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.level-item.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.level-item.lv-none {
    background: #d1fae5;
    color: #065f46;
}

.level-item.lv-low {
    background: #ecfccb;
    color: #3f6212;
}

.level-item.lv-positive {
    background: #fef9c3;
    color: #854d0e;
}

.level-item.lv-high {
    background: #ffedd5;
    color: #c2410c;
}

.level-item.lv-severe {
    background: #fee2e2;
    color: #991b1b;
}

.level-item .level-range {
    display: block;
    font-size: 1.2em;
    margin-bottom: 3px;
}

.level-item .level-name {
    display: block;
    font-size: 0.85em;
    font-weight: 500;
}

/* ============================================
   PART A SUMMARY
   ============================================ */
.part-a-summary {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.part-a-summary h3 {
    color: #0891b2;
    margin-top: 0;
    margin-bottom: 15px;
}

.part-a-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.part-a-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-radius: 8px;
    text-align: center;
}

.part-a-detail-item.yes {
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

.part-a-detail-item.no {
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.detail-label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.detail-value {
    font-size: 1.1em;
    font-weight: 700;
}

.part-a-detail-item.yes .detail-value {
    color: #dc2626;
}

.part-a-detail-item.no .detail-value {
    color: #16a34a;
}

.part-a-note {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin: 10px 0 0 0;
    padding: 10px 15px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid #06b6d4;
}

/* ============================================
   TEEN RESOURCES
   ============================================ */
.teen-resources {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.teen-resources h3 {
    color: #0891b2;
    margin-top: 0;
    text-align: center;
    margin-bottom: 20px;
}

.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.resource-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    background: #ecfeff;
    border: 2px solid #a5f3fc;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.resource-card:hover {
    border-color: #06b6d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.resource-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.resource-card strong {
    color: #0891b2;
    font-size: 1.05em;
    margin-bottom: 4px;
}

.resource-card span:last-child {
    font-size: 0.85em;
    color: #666;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 25px;
    border: 2px solid #06b6d4;
    background: white;
    color: #0891b2;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #06b6d4;
    color: white;
}

/* ============================================
   HISTORY SECTION
   ============================================ */
.mdcv2-history-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.mdcv2-history-section h3 {
    color: #0891b2;
    margin-top: 0;
    font-size: 1.2em;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #ecfeff;
    border-radius: 6px;
    border-left: 3px solid #06b6d4;
}

.history-date {
    font-size: 0.9em;
    color: #155e75;
    font-weight: 500;
}

.history-result {
    font-weight: 600;
    color: #0891b2;
}

.mdcv2-clear-history {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    background: transparent;
    border: 1px solid #06b6d4;
    color: #0891b2;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.mdcv2-clear-history:hover {
    background: #ecfeff;
}

/* Retake Button */
.retake-wrapper {
    text-align: center;
    margin-top: 20px;
}

.retake-btn {
    display: inline-block;
    width: 100%;
    max-width: 300px;
    padding: 14px 25px;
    background: transparent;
    border: 2px solid #06b6d4;
    color: #0891b2;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retake-btn:hover {
    background: #06b6d4;
    color: white;
}

/* ============================================
   EDUCATION TABS
   ============================================ */
.calc-education {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.education-tabs {
    display: flex;
    flex-wrap: wrap;
    background: #f5f5f5;
    border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
    padding: 15px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.95em;
    color: #666;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    background: #ecfeff;
    color: #0891b2;
}

.tab-btn.active {
    background: white;
    color: #0891b2;
    font-weight: 600;
    border-bottom-color: #06b6d4;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.tab-content h4 {
    color: #0891b2;
    margin-top: 0;
    font-size: 1.3em;
}

.tab-content h5 {
    color: #155e75;
    margin-top: 25px;
    font-size: 1.1em;
}

.tab-content h6 {
    color: #0891b2;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1em;
}

/* Info Grid (used in tabs) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.info-card {
    background: #ecfeff;
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid #06b6d4;
}

.info-card h6 {
    color: #0891b2;
    margin-top: 0;
}

.info-card ul {
    padding-left: 18px;
    margin-bottom: 0;
}

.info-card li {
    margin-bottom: 6px;
}

/* Timeline */
.timeline {
    margin: 20px 0;
    padding-left: 20px;
    border-left: 3px solid #06b6d4;
}

.timeline-item {
    padding: 12px 0 12px 20px;
    position: relative;
    margin-bottom: 5px;
}

.timeline-item::before {
    content: '';
    width: 12px;
    height: 12px;
    background: #06b6d4;
    border-radius: 50%;
    position: absolute;
    left: -27px;
    top: 16px;
}

.timeline-time {
    display: block;
    font-weight: 700;
    color: #0891b2;
    font-size: 0.95em;
    margin-bottom: 3px;
}

.timeline-desc {
    display: block;
    color: #555;
    font-size: 0.95em;
}

/* Warning Box */
.warning-box {
    background: #ecfeff;
    border-left: 4px solid #06b6d4;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.warning-box h6 {
    color: #0891b2;
    margin-top: 0;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    background: #f9fafb;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.faq-section h3 {
    color: #0891b2;
    margin-top: 0;
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1em;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: #ecfeff;
}

.faq-icon {
    font-size: 1.3em;
    color: #06b6d4;
    font-weight: bold;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-answer {
    display: none;
    padding: 0 20px 20px 20px;
    border-top: 1px solid #e5e7eb;
}

.faq-answer p {
    margin: 15px 0 0 0;
}

.faq-answer ul {
    margin: 10px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 6px;
}

.faq-item.active .faq-question {
    background: #ecfeff;
    color: #0891b2;
}

/* ============================================
   MEDICAL DISCLAIMER
   ============================================ */
.medical-disclaimer {
    background: #ecfeff;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #a5f3fc;
    margin-bottom: 30px;
}

.medical-disclaimer h3 {
    color: #0891b2;
    margin-top: 0;
}

.medical-disclaimer ul {
    padding-left: 20px;
}

.medical-disclaimer li {
    margin-bottom: 8px;
}

/* ============================================
   RELATED CALCULATORS
   ============================================ */
.related-calculators {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.related-calculators h3 {
    color: #0891b2;
    margin-top: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.related-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.related-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.related-title {
    font-weight: 600;
    color: #0891b2;
    margin-bottom: 8px;
}

.related-desc {
    font-size: 0.85em;
    color: #666;
}

/* ============================================
   REFERENCES
   ============================================ */
.references-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.references-section h3 {
    color: #0891b2;
    margin-top: 0;
}

.references-section ol {
    padding-left: 25px;
}

.references-section li {
    margin-bottom: 12px;
    font-size: 0.95em;
}

.references-section a {
    color: #06b6d4;
}

.references-section a:hover {
    color: #0891b2;
    text-decoration: underline;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .crafft-hero {
        padding: 25px 20px;
    }

    .crafft-hero h1 {
        font-size: 1.6em;
    }

    .stats-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card .stat-number {
        font-size: 1.4em;
    }

    .radio-toggle {
        margin-left: 0;
    }

    .toggle-btn {
        max-width: none;
    }

    .part-a-detail-grid {
        grid-template-columns: 1fr;
    }

    .level-scale {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }

    .level-item {
        padding: 8px 4px;
        font-size: 0.7em;
    }

    .resource-cards {
        grid-template-columns: 1fr;
    }

    .education-tabs {
        flex-direction: column;
    }

    .tab-btn {
        text-align: center;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .tab-btn.active {
        border-left-color: #06b6d4;
        border-bottom-color: transparent;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .result-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .crafft-calculator-container {
        padding: 0 10px;
    }

    .calculator-form-section,
    .results-section,
    .faq-section,
    .related-calculators,
    .references-section,
    .medical-disclaimer,
    .calc-education .tab-content {
        padding: 20px;
    }

    .question-card {
        padding: 15px;
    }

    .score-circle {
        width: 120px;
        height: 120px;
    }

    .score-value {
        font-size: 2.5em;
    }

    .level-scale {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .level-item {
        font-size: 0.85em;
        padding: 10px;
    }

    .privacy-notice {
        flex-direction: column;
        text-align: center;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .part-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .radio-toggle {
        flex-direction: row;
    }

    .toggle-btn {
        padding: 10px 20px;
    }

    .mnemonic-letter {
        display: block;
        margin: 5px 0;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .crafft-hero {
        background: #06b6d4 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .submit-btn,
    .retake-btn,
    .result-actions,
    .mdcv2-history-section,
    .related-calculators {
        display: none !important;
    }

    .results-section {
        border: 2px solid #06b6d4;
        break-inside: avoid;
    }

    .crafft-calculator-container {
        max-width: 100%;
    }

    .mdcv2-print-header,
    .mdcv2-print-disclaimer {
        display: block !important;
    }
}
