/* BAC Calculator Styles */
/* Theme: Slate (#475569 gradient to #334155) */

.bac-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;
}

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

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

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

.bac-hero .hero-subtitle {
    font-size: 1.1em;
    opacity: 0.92;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

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

.hero-badges .badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85em;
    color: white;
}

/* ============================================
   STATS ROW
   ============================================ */
.bac-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

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

.stat-card .stat-value {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: #475569;
    line-height: 1.2;
}

.stat-card .stat-label {
    display: block;
    font-size: 0.82em;
    color: #666;
    margin-top: 5px;
}

/* ============================================
   PRIVACY NOTICE
   ============================================ */
.privacy-notice {
    background: #f0f4f8;
    border-left: 4px solid #475569;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 30px;
    font-size: 0.92em;
    color: #555;
}

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

.calc-section h2 {
    color: #475569;
    margin: 0 0 10px 0;
    font-size: 1.6em;
    padding-bottom: 15px;
    border-bottom: 2px solid #475569;
}

.form-instruction {
    font-size: 1em;
    color: #666;
    margin-bottom: 25px;
    padding: 12px 16px;
    background: #f8fafb;
    border-radius: 6px;
}

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

.form-label {
    display: block;
    font-weight: 600;
    font-size: 1.05em;
    color: #334155;
    margin-bottom: 8px;
}

.field-helper {
    font-size: 0.88em;
    color: #666;
    margin: 4px 0 10px 0;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 25px;
    background: #f8fafb;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 160px;
    text-align: center;
}

.radio-option:hover {
    border-color: #475569;
    background: #f0f4f8;
}

.radio-option input[type="radio"] {
    margin-bottom: 8px;
    accent-color: #475569;
    width: 18px;
    height: 18px;
}

.radio-label {
    font-weight: 600;
    font-size: 1.05em;
    color: #334155;
}

.radio-detail {
    font-size: 0.8em;
    color: #888;
    margin-top: 4px;
}

.radio-option:has(input:checked) {
    border-color: #475569;
    background: #eef2f7;
    box-shadow: 0 0 0 1px #475569;
}

/* Number Inputs */
.form-group input[type="number"] {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.05em;
    color: #334155;
    transition: border-color 0.2s ease;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: #475569;
    box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.15);
}

/* Unit Toggle */
.input-with-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
}

.input-with-toggle input[type="number"] {
    flex: 1;
    max-width: none;
}

.unit-toggle {
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.unit-btn {
    padding: 12px 18px;
    border: none;
    background: #f8fafb;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    color: #666;
    transition: all 0.2s ease;
}

.unit-btn.active {
    background: #475569;
    color: white;
}

.unit-btn:hover:not(.active) {
    background: #e2e8f0;
}

/* Drink Reference Helper */
.drink-reference-helper {
    margin-top: 8px;
    padding: 10px 16px;
    background: #f8fafb;
    border-radius: 6px;
    border-left: 3px solid #475569;
}

.drink-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.drink-example {
    display: inline-block;
    padding: 4px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    font-size: 0.85em;
    color: #555;
}

/* Submit Button */
.submit-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 30px auto 0 auto;
    padding: 16px 30px;
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(71, 85, 105, 0.3);
}

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

/* ============================================
   RESULTS SECTION
   ============================================ */
.results-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 100%);
    padding: 35px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid #475569;
}

.results-section h2 {
    text-align: center;
    color: #475569;
    margin: 0 0 25px 0;
    font-size: 1.6em;
}

/* BAC Display */
.bac-display {
    text-align: center;
    margin-bottom: 30px;
}

.bac-number-container {
    display: inline-flex;
    align-items: baseline;
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    padding: 20px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(71, 85, 105, 0.3);
    margin-bottom: 15px;
}

.bac-number {
    font-size: 4em;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.bac-percent {
    font-size: 2em;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 5px;
}

.impairment-badge {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1em;
}

.impairment-badge.level-sober {
    background: #d1fae5;
    color: #065f46;
}

.impairment-badge.level-light {
    background: #dcfce7;
    color: #166534;
}

.impairment-badge.level-reduced {
    background: #fef9c3;
    color: #854d0e;
}

.impairment-badge.level-impaired {
    background: #fed7aa;
    color: #9a3412;
}

.impairment-badge.level-significant {
    background: #fecaca;
    color: #991b1b;
}

.impairment-badge.level-severe {
    background: #fca5a5;
    color: #7f1d1d;
}

.impairment-badge.level-lifethreat {
    background: #450a0a;
    color: #fecaca;
}

/* ============================================
   BAC GAUGE
   ============================================ */
.bac-gauge-container {
    margin: 25px 0 30px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
}

.bac-gauge {
    position: relative;
    padding-bottom: 40px;
}

.gauge-track {
    display: flex;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gauge-zone {
    height: 100%;
}

.gauge-sober {
    background: #22c55e;
}

.gauge-light {
    background: #86efac;
}

.gauge-reduced {
    background: #facc15;
}

.gauge-impaired {
    background: #fb923c;
}

.gauge-significant {
    background: #ef4444;
}

.gauge-severe {
    background: linear-gradient(90deg, #dc2626, #450a0a);
}

.gauge-needle {
    position: absolute;
    top: -6px;
    width: 4px;
    height: 36px;
    background: #1e293b;
    border-radius: 2px;
    transition: left 0.6s ease;
    transform: translateX(-50%);
    z-index: 2;
}

.gauge-needle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #1e293b;
    border-radius: 50%;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.75em;
    color: #666;
}

.gauge-legal-line {
    position: absolute;
    top: -10px;
    height: 44px;
    width: 2px;
    background: #dc2626;
    z-index: 1;
}

.gauge-legal-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
}

.legal-label {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7em;
    color: #dc2626;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================
   SOBRIETY CARD
   ============================================ */
.sobriety-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.sobriety-card h3 {
    color: #475569;
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.sobriety-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.sobriety-time {
    font-size: 2.5em;
    font-weight: 700;
    color: #475569;
}

.sobriety-note {
    font-size: 0.9em;
    color: #888;
}

.sobriety-disclaimer {
    font-size: 0.82em;
    color: #999;
    margin-top: 10px;
    font-style: italic;
}

/* ============================================
   IMPAIRMENT DETAILS
   ============================================ */
.impairment-details {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.impairment-details h3 {
    color: #475569;
    margin: 0 0 15px 0;
}

.impairment-detail-card {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.impairment-detail-card h4 {
    margin: 0 0 10px 0;
}

.impairment-detail-card p {
    margin: 5px 0;
}

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

/* ============================================
   DRINK REFERENCE CARD
   ============================================ */
.drink-reference-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.drink-reference-card h3 {
    color: #475569;
    margin: 0 0 20px 0;
    text-align: center;
}

.drink-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.drink-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: #f8fafb;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.drink-icon-large {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.drink-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.drink-info strong {
    color: #334155;
    font-size: 0.95em;
}

.drink-info span {
    font-size: 0.82em;
    color: #666;
}

.drink-note {
    text-align: center;
    font-size: 0.88em;
    color: #666;
    margin-top: 15px;
}

/* ============================================
   WARNING BOX
   ============================================ */
.bac-warning-box {
    background: #fef2f2;
    border: 2px solid #dc2626;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.bac-warning-box h3 {
    color: #dc2626;
    margin: 0 0 12px 0;
    font-size: 1.2em;
    text-transform: uppercase;
    text-align: center;
}

.bac-warning-box p {
    margin: 10px 0;
    color: #7f1d1d;
}

.bac-warning-box p:last-child {
    margin-bottom: 0;
}

/* ============================================
   RESULT ACTIONS
   ============================================ */
.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.action-btn {
    padding: 12px 25px;
    border: 2px solid #475569;
    border-radius: 8px;
    background: white;
    color: #475569;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.retake-btn {
    background: #475569;
    color: white;
}

.retake-btn:hover {
    background: #334155;
}

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

.mdcv2-history-section h3 {
    color: #475569;
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8fafb;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.92em;
}

.history-date {
    color: #888;
}

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

.mdcv2-clear-history {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    color: #666;
    font-size: 0.85em;
    cursor: pointer;
    margin-top: 10px;
}

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

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

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

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

.tab-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.tab-btn.active {
    background: white;
    color: #475569;
    font-weight: 600;
    border-bottom-color: #475569;
}

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

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

.tab-content h3 {
    color: #475569;
    margin-top: 0;
    margin-bottom: 15px;
}

.tab-content h4 {
    color: #334155;
    margin-top: 25px;
    margin-bottom: 10px;
}

.tab-content h5 {
    color: #475569;
    margin-top: 20px;
}

/* Info Box */
.info-box {
    background: #f0f4f8;
    border-left: 4px solid #475569;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.info-box h4, .info-box h5 {
    color: #475569;
    margin-top: 0;
}

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

.warning-box h4, .warning-box h5 {
    color: #a16207;
    margin-top: 0;
}

/* Formula Box */
.formula-box {
    background: #f8fafb;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.formula-box p:first-child {
    font-size: 1.2em;
    font-family: 'Courier New', monospace;
    color: #334155;
}

.formula-box ul {
    text-align: left;
    max-width: 500px;
    margin: 15px auto 0;
    list-style: none;
    padding: 0;
}

.formula-box li {
    margin-bottom: 6px;
    font-size: 0.92em;
}

/* ============================================
   IMPAIRMENT CHART (Tab 2)
   ============================================ */
.impairment-chart {
    margin-top: 20px;
}

.impairment-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 15px;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    align-items: start;
}

.imp-bac {
    font-weight: 700;
    font-size: 1em;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.6);
}

.imp-details strong {
    font-size: 1.05em;
}

.imp-details p {
    margin: 5px 0 10px 0;
    font-size: 0.92em;
}

.imp-details ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.88em;
}

.imp-details li {
    margin-bottom: 4px;
}

.impairment-row.level-sober {
    background: #d1fae5;
    border-left: 5px solid #22c55e;
}

.impairment-row.level-light {
    background: #dcfce7;
    border-left: 5px solid #86efac;
}

.impairment-row.level-reduced {
    background: #fef9c3;
    border-left: 5px solid #facc15;
}

.impairment-row.level-impaired {
    background: #fed7aa;
    border-left: 5px solid #fb923c;
}

.impairment-row.level-significant {
    background: #fecaca;
    border-left: 5px solid #ef4444;
}

.impairment-row.level-severe {
    background: #fca5a5;
    border-left: 5px solid #dc2626;
}

.impairment-row.level-lifethreat {
    background: #450a0a;
    border-left: 5px solid #000;
    color: #fecaca;
}

.impairment-row.level-lifethreat .imp-bac {
    background: rgba(254, 202, 202, 0.2);
    color: #fecaca;
}

.impairment-row.level-lifethreat strong {
    color: #fca5a5;
}

/* Legal Grid */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.legal-card {
    padding: 15px;
    background: #f8fafb;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.legal-card strong {
    display: block;
    font-size: 1.5em;
    color: #475569;
    margin-bottom: 5px;
}

.legal-card span {
    font-size: 0.82em;
    color: #666;
}

/* ============================================
   DRINK VISUAL GRID (Tab 3)
   ============================================ */
.drink-visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.drink-visual-card {
    background: #f8fafb;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.drink-visual-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.drink-visual-icon {
    font-size: 3em;
    margin-bottom: 10px;
    display: block;
}

.drink-visual-card h4 {
    color: #475569;
    margin: 0 0 10px 0;
}

.drink-specs {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 12px;
}

.spec-main {
    font-size: 1.3em;
    font-weight: 700;
    color: #475569;
}

.spec-detail {
    font-size: 0.88em;
    color: #888;
}

.drink-visual-card p {
    font-size: 0.88em;
    color: #555;
    text-align: left;
}

/* ============================================
   RISK GRID (Tab 4)
   ============================================ */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.risk-card {
    background: #f8fafb;
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid #475569;
}

.risk-card h5 {
    margin-top: 0;
    color: #475569;
}

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

.risk-card li {
    margin-bottom: 5px;
}

/* Guidelines Box */
.guidelines-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.guideline {
    background: #f0f4f8;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.guideline h5 {
    margin: 0 0 10px 0;
    color: #475569;
}

.guideline p {
    margin: 5px 0;
    font-size: 0.92em;
}

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

.faq-section h2 {
    color: #475569;
    margin: 0 0 20px 0;
    font-size: 1.5em;
}

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

.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: #334155;
    transition: all 0.2s ease;
}

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

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

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

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

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

.faq-item.active .faq-question {
    background: #f0f4f8;
    color: #475569;
}

/* ============================================
   DISCLAIMER
   ============================================ */
.medical-disclaimer.bac-disclaimer {
    background: #fef2f2;
    padding: 30px;
    border-radius: 12px;
    border: 3px solid #dc2626;
    margin-bottom: 30px;
}

.bac-disclaimer h2 {
    color: #dc2626;
    margin: 0 0 15px 0;
    font-size: 1.4em;
    text-align: center;
}

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

.bac-disclaimer li {
    margin-bottom: 8px;
    color: #7f1d1d;
}

.bac-disclaimer p {
    color: #7f1d1d;
}

.bac-disclaimer a {
    color: #dc2626;
    font-weight: 600;
}

/* ============================================
   RELATED CALCULATORS
   ============================================ */
.related-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.related-section h3 {
    color: #475569;
    margin: 0 0 20px 0;
}

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

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

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

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

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

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

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

.references-section h3 {
    color: #475569;
    margin: 0 0 15px 0;
}

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

.references-section li {
    margin-bottom: 12px;
    font-size: 0.92em;
    line-height: 1.5;
}

.references-section a {
    color: #475569;
    text-decoration: underline;
}

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

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

    .bac-stats-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card .stat-value {
        font-size: 1.5em;
    }

    .radio-group {
        flex-direction: column;
    }

    .radio-option {
        min-width: unset;
    }

    .input-with-toggle {
        max-width: 100%;
    }

    .bac-number {
        font-size: 3em;
    }

    .bac-percent {
        font-size: 1.5em;
    }

    .drink-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .impairment-row {
        grid-template-columns: 1fr;
    }

    .imp-bac {
        text-align: left;
    }

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

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

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

    .result-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        text-align: center;
    }

    .gauge-labels {
        font-size: 0.65em;
    }

    .legal-label {
        font-size: 0.6em;
    }

    .legal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .calc-section,
    .results-section,
    .faq-section,
    .related-section,
    .references-section,
    .medical-disclaimer.bac-disclaimer {
        padding: 20px;
    }

    .bac-number-container {
        padding: 15px 25px;
    }

    .bac-number {
        font-size: 2.5em;
    }

    .sobriety-time {
        font-size: 2em;
    }

    .form-group input[type="number"] {
        max-width: 100%;
    }

    .drink-examples {
        flex-direction: column;
        gap: 5px;
    }
}
