/* Styles for Sill Plate Anchor Bolt Layout Calculator */
.calcufacil-sill_plate_bolts.calcufacil-container {
    max-width: 800px; margin: 25px auto; background: #fdfdfd; padding: 25px;
    border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex; flex-direction: row; flex-wrap: wrap; gap: 30px;
    font-family: 'Arial', sans-serif; border: 1px solid #616161; /* Grey for construction/technical */
    box-sizing: border-box;
}
.calcufacil-sill_plate_bolts.calcufacil-container *,
.calcufacil-sill_plate_bolts.calcufacil-container *::before,
.calcufacil-sill_plate_bolts.calcufacil-container *::after { box-sizing: border-box; }

.calcufacil-sill_plate_bolts h2 {
    width: 100%; text-align: center; color: #424242; /* Darker Grey */
    margin-top:0; margin-bottom: 10px; font-size: 1.6em;
}
.calcufacil-sill_plate_bolts h4 {
    color: #555; font-size: 1.1em; margin-top: 15px; margin-bottom: 10px;
    border-bottom: 1px solid #e0e0e0; padding-bottom: 5px;
}
.calcufacil-sill_plate_bolts .calcufacil-left.calculator-form {
    flex: 1; min-width: 320px; padding: 20px; background-color: #fff;
    border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid #f0f0f0;
}
.calcufacil-sill_plate_bolts .calcufacil-right.results {
    flex: 1; min-width: 300px; background: #f5f5f5; /* Light Grey */
    padding: 25px; border-radius: 8px; border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); display: flex; flex-direction: column;
    justify-content: flex-start; align-items: center;
}

.calcufacil-sill_plate_bolts .input-group { margin-bottom: 15px; }
.calcufacil-sill_plate_bolts label {
    display: block; font-weight: 600; color: #333;
    margin-bottom: 6px; font-size: 0.95em;
}
.calcufacil-sill_plate_bolts input[type="text"],
.calcufacil-sill_plate_bolts input[type="number"], /* If used */
.calcufacil-sill_plate_bolts select {
    width: 100%; padding: 10px 12px; border: 1px solid #bdbdbd; /* Medium Grey border */
    border-radius: 5px; font-size: 1em; background: #fafafa; font-family: sans-serif;
}
.calcufacil-sill_plate_bolts input[type="text"]:focus,
.calcufacil-sill_plate_bolts input[type="number"]:focus,
.calcufacil-sill_plate_bolts select:focus {
    border-color: #757575; box-shadow: 0 0 0 2px rgba(117, 117, 117, 0.2); outline: none;
}
.calcufacil-sill_plate_bolts .note { font-size: 0.85em; color: #555; margin-bottom:15px; line-height: 1.4; text-align: left;}
.calcufacil-sill_plate_bolts .small-note { font-size: 0.75em; color: #666; margin-top:3px;}
.calcufacil-sill_plate_bolts hr { border:0; height:1px; background:#e0e0e0; margin: 20px 0 15px;}


.calcufacil-sill_plate_bolts button[type="submit"] {
    background-color: #616161; /* Dark Grey */ color: #fff; padding: 12px 25px;
    border: none; border-radius: 5px; cursor: pointer; font-size: 1.05em;
    width: 100%; transition: background-color 0.3s ease; font-weight: 600; margin-top:15px;
}
.calcufacil-sill_plate_bolts button[type="submit"]:hover { background-color: #424242; /* Darker */ }

/* Results Styling */
.calcufacil-sill_plate_bolts .results-header h2 { color: #424242; margin-bottom: 20px; font-size: 1.4em; }
.calcufacil-sill_plate_bolts .results-header h4 { color: #555; margin-top:15px; margin-bottom:8px; font-size:1.1em; text-align:left;}
.calcufacil-sill_plate_bolts .initial-message {
    text-align: center; color: #424242; font-style: italic; padding: 20px;
    background-color: #f5f5f5; border: 1px dashed #bdbdbd; border-radius: 5px; width:100%;
}
.calcufacil-sill_plate_bolts .calculation-summary { width: 100%; margin-bottom: 20px; }
.calcufacil-sill_plate_bolts .calculation-desc { font-size: 1.05em; color: #333; margin-bottom: 15px; text-align:center; }
.calcufacil-sill_plate_bolts .calculation-desc strong { font-weight: bold; }

.calcufacil-sill_plate_bolts .bolt-position-list {
    list-style: decimal;
    padding-left: 25px;
    text-align: left;
    margin-top: 10px;
    font-size: 0.95em;
}
.calcufacil-sill_plate_bolts .bolt-position-list li { margin-bottom: 4px; }


.calcufacil-sill_plate_bolts .main-result {
    display: flex; justify-content: space-between; align-items: center;
    background-color: #E0E0E0; /* Light Grey */ padding: 10px 15px; border-radius: 4px;
    border: 1px solid #bdbdbd; font-size: 1.05em; color: #333;
    margin-bottom: 6px; width: 100%;
}
.calcufacil-sill_plate_bolts .main-result.info-result { background-color: #EEEEEE; border-color: #E0E0E0; font-weight: 600; }
.calcufacil-sill_plate_bolts .main-result.final-result { /* Not really a final total, but if one result is key */
    background-color: #757575; /* Medium Grey */ color: #fff; font-size: 1.2em;
    padding: 12px 18px; border-color: #616161; margin-top:10px; font-weight: bold;
}
.calcufacil-sill_plate_bolts .main-result span:first-child { text-align:left; }
.calcufacil-sill_plate_bolts .main-result span:last-child { font-weight: bold; text-align:right; }

.calcufacil-sill_plate_bolts .errors {
    color: #C62828; background-color: #FFEBEE; border: 1px solid #FFCDD2;
    padding: 10px 15px; border-radius: 4px; margin: 15px 0; text-align: center; width:100%;
}
.calcufacil-sill_plate_bolts .errors ul { list-style: none; padding: 0; margin: 0; }

.calcufacil-sill_plate_bolts .disclaimer-box.critical {
    padding: 15px; background-color: #FFF3E0; /* Light Orange for critical */
    border: 1px solid #FFE0B2; border-left: 5px solid #E65100; /* Strong Orange */
    border-radius: 8px; font-size: 0.85em; color: #3E2723; width:100%;
}
.calcufacil-sill_plate_bolts .disclaimer-box.critical h4 {
    color: #BF360C; font-size: 1.1em; margin-top: 0; margin-bottom: 10px;
}
.calcufacil-sill_plate_bolts .disclaimer-box.critical ul { list-style: disc; margin-left: 20px; padding-left: 0; line-height: 1.6; }

/* Responsive */
@media (max-width: 768px) {
    .calcufacil-sill_plate_bolts.calcufacil-container { flex-direction: column; gap: 20px; padding: 15px; }
    .calcufacil-sill_plate_bolts .calcufacil-left.calculator-form,
    .calcufacil-sill_plate_bolts .calcufacil-right.results { min-width: unset; width: 100%; }
    .calcufacil-sill_plate_bolts h2 { font-size: 1.4em; }
    .calcufacil-sill_plate_bolts .results-header h2 { font-size: 1.25em; }
}