/* BAC Calculator Specific Styles */

/* Row and Column Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.row.center {
    justify-content: center;
}

.col {
    flex: 1;
    min-width: 200px;
}

/* Radio button inline groups */
.inline-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.inline-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #333;
    cursor: pointer;
}

.inline-group input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* Help text below inputs */
.help-text {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

/* Disclaimer Box */
.disclaimer-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(to bottom right, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    margin-bottom: 24px;
}

.disclaimer-icon {
    flex-shrink: 0;
    color: #d97706;
}

.disclaimer-content {
    font-size: 14px;
    line-height: 1.5;
    color: #92400e;
}

.disclaimer-content strong {
    color: #78350f;
}

/* BAC Result Styles */
.bac-value {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin: 16px 0;
}

.bac-value.safe {
    color: #16a34a;
}

.bac-value.caution {
    color: #ca8a04;
}

.bac-value.danger {
    color: #dc2626;
}

.bac-value.severe {
    color: #7c2d12;
}

/* Impairment Level Box */
.impairment-box {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
    text-align: center;
}

.impairment-box.safe {
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.impairment-box.caution {
    background-color: #fef9c3;
    border: 1px solid #fde047;
    color: #854d0e;
}

.impairment-box.danger {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.impairment-box.severe {
    background-color: #fecaca;
    border: 1px solid #f87171;
    color: #7c2d12;
}

.impairment-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.impairment-description {
    font-size: 14px;
}

/* Legal Status Box */
.legal-status-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
}

.legal-status-box.legal {
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.legal-status-box.illegal {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.legal-status-icon {
    flex-shrink: 0;
}

.legal-status-text {
    font-size: 14px;
    font-weight: 500;
}

/* Time Until Sober */
.time-sober-box {
    background: linear-gradient(to bottom right, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 16px 0;
    text-align: center;
}

.time-sober-label {
    font-size: 14px;
    color: #0369a1;
    margin-bottom: 4px;
}

.time-sober-value {
    font-size: 20px;
    font-weight: 600;
    color: #0c4a6e;
}

/* Results Section Divider */
.results-divider {
    height: 1px;
    background-color: #bae6fd;
    margin: 16px 0;
}

/* Reminder text in results */
.results-reminder {
    font-size: 13px;
    color: #666;
    text-align: center;
    font-style: italic;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #bae6fd;
}

/* Animation for results */
.fade-in {
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 480px) {
    .disclaimer-box {
        flex-direction: column;
        text-align: center;
    }

    .disclaimer-icon {
        display: flex;
        justify-content: center;
    }

    .bac-value {
        font-size: 36px;
    }

    .inline-group {
        gap: 12px;
    }
}
