/* BAC Estimator Styles - Adapted */
.calcufacil-bac_estimator_calculator.calcufacil-container {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* display: flex; Keep flex for columns */
     display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-family: Arial, sans-serif;
}
/* Add wrapper for disclaimer to make it full width */
.calcufacil-bac_estimator_calculator > .disclaimer {
    width: 100%;
    flex-basis: 100%; /* Ensure it takes full width */
    margin-bottom: 25px;
    order: -1; /* Display disclaimer first */
    padding: 15px 20px;
    border-radius: 5px;
    border: 1px solid transparent;
}
.calcufacil-bac_estimator_calculator > .disclaimer.warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}
.calcufacil-bac_estimator_calculator > .disclaimer h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #664d03;
    font-size: 18px;
}
.calcufacil-bac_estimator_calculator > .disclaimer h4 i {
    margin-right: 8px;
}
.calcufacil-bac_estimator_calculator > .disclaimer p {
    margin: 0 0 10px 0;
    font-size: 13px;
    line-height: 1.5;
}
.calcufacil-bac_estimator_calculator > .disclaimer p:last-child { margin-bottom: 0; }
.calcufacil-bac_estimator_calculator > .disclaimer strong { color: #584500; }


.calcufacil-bac_estimator_calculator h3 { /* Plugin Title - less prominent */
    display: none; /* Hide default title, use H2s */
}

.calcufacil-bac_estimator_calculator .calcufacil-left,
.calcufacil-bac_estimator_calculator .calcufacil-right {
    flex: 1;
    min-width: 300px;
}

/* Form Styling */
.calcufacil-bac_estimator_calculator .calculator-form h2 {
    font-size: 20px;
    color: #6c757d; /* Secondary Gray */
    margin-bottom: 15px;
}

.calcufacil-bac_estimator_calculator .input-group {
    margin-bottom: 18px;
}
.calcufacil-bac_estimator_calculator .input-group small {
    display: block; font-size: 11px; color: #666; margin-top: 4px;
}

.calcufacil-bac_estimator_calculator label {
    display: block; font-weight: bold; color: #333; margin-bottom: 5px; font-size: 14px;
}

.calcufacil-bac_estimator_calculator input[type="number"] {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px;
    box-sizing: border-box; font-size: 16px; background: #f9f9f9;
}

/* Radio Group Styling */
.calcufacil-bac_estimator_calculator .radio-group {
    padding: 10px 0;
}
.calcufacil-bac_estimator_calculator .radio-group > label:first-of-type { /* Main label */
     margin-bottom: 8px;
}
.calcufacil-bac_estimator_calculator .radio-group.inline label { /* Radio options */
    display: inline-block; margin-right: 15px; font-weight: normal; font-size: 14px; cursor: pointer;
}
.calcufacil-bac_estimator_calculator .radio-group.inline input[type="radio"] {
   margin-right: 4px; vertical-align: middle;
}


.calcufacil-bac_estimator_calculator button {
    background-color: #ffc107; /* Warning Yellow */
    color: #333;
    padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer;
    font-size: 16px; width: 100%; transition: background-color 0.3s ease; margin-top: 10px;
    font-weight: bold;
}

.calcufacil-bac_estimator_calculator button:hover {
    background-color: #e0a800; /* Darker Warning Yellow */
}

/* Results Styling */
.calcufacil-bac_estimator_calculator .results {
    background: #f8f9fa; /* Light Gray */
    padding: 25px; border-radius: 8px; border: 1px solid #dee2e6;
}

.calcufacil-bac_estimator_calculator .results-header {
    text-align: center; margin-bottom: 20px;
}
.calcufacil-bac_estimator_calculator .results-header h2 {
     font-size: 20px; color: #495057; /* Dark Gray */ margin: 0;
}

.calcufacil-bac_estimator_calculator .results-breakdown {
    display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px;
}

.calcufacil-bac_estimator_calculator .breakdown-item {
    display: flex; justify-content: space-between; align-items: center; padding: 10px 15px;
    background: #fff; border-radius: 4px; font-size: 14px; color: #333;
    border-left: 3px solid #6c757d; /* Secondary Gray */
}

.calcufacil-bac_estimator_calculator .breakdown-item span:last-child {
    font-weight: bold; color: #343a40; /* Darker Gray */ text-align: right; font-size: 1.2em;
}

.calcufacil-bac_estimator_calculator .breakdown-item.main-result {
    background-color: #e9ecef; /* Lighter Gray */ padding: 15px; font-weight: bold;
    border-left-color: #495057; /* Dark Gray */
}
.calcufacil-bac_estimator_calculator .breakdown-item.main-result span:first-child {
     color: #333; font-size: 16px;
}
.calcufacil-bac_estimator_calculator .breakdown-item.main-result span:last-child {
     font-size: 2.2em; /* Big BAC result */ color: #dc3545; /* Red for emphasis */
}
.calcufacil-bac_estimator_calculator .breakdown-item.interpretation {
    background-color: #fff; border-left-width: 0; border-top: 1px dashed #ccc; margin-top: 5px; padding-top: 10px;
    font-style: italic;
}
.calcufacil-bac_estimator_calculator .breakdown-item.interpretation span:last-child {
     font-weight: bold; font-size: 1.1em; text-align: right;
}
/* Interpretation Coloring */
.calcufacil-bac_estimator_calculator .interpretation.danger span:last-child { color: #dc3545; }
.calcufacil-bac_estimator_calculator .interpretation.warning span:last-child { color: #ffc107; }
.calcufacil-bac_estimator_calculator .interpretation.safe span:last-child { color: #28a745; }


.calcufacil-bac_estimator_calculator .note {
    font-size: 12px; color: #555; text-align: center; margin-top: 15px; font-style: italic; line-height: 1.4;
}
.calcufacil-bac_estimator_calculator .final-warning {
    color: #dc3545; font-weight: bold; font-style: normal; border: 1px solid #f5c6cb; background-color: #f8d7da; padding: 10px; border-radius: 4px;
}

.calcufacil-bac_estimator_calculator .errors {
    color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb;
    padding: 10px 15px; border-radius: 4px; margin-top: 15px;
}
.calcufacil-bac_estimator_calculator .errors ul { list-style: none; padding: 0; margin: 0; }
.calcufacil-bac_estimator_calculator .errors li { margin-bottom: 5px; }
.calcufacil-bac_estimator_calculator .errors li:last-child { margin-bottom: 0; }