/* Styles for 55 Gallon Drum Dimensions Calculator */
.calcufacil-55_gallon_drum_dimensions.calcufacil-container {
    max-width: 780px; /* Wider for better input layout */
    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 #757575; /* Gray accent for utility/industrial */
    box-sizing: border-box;
}

.calcufacil-55_gallon_drum_dimensions.calcufacil-container *,
.calcufacil-55_gallon_drum_dimensions.calcufacil-container *::before,
.calcufacil-55_gallon_drum_dimensions.calcufacil-container *::after {
    box-sizing: border-box;
}

.calcufacil-55_gallon_drum_dimensions h2 { /* Scoped */
    width: 100%;
    text-align: center;
    color: #424242; /* Darker grey */
    margin-top:0;
    margin-bottom: 25px;
    font-size: 1.6em;
}

.calcufacil-55_gallon_drum_dimensions h3 { /* Scoped */
    width: 100%;
    text-align: center;
    color: #616161;
    margin-top: 10px; /* Reduced */
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 10px;
}

.calcufacil-55_gallon_drum_dimensions .calcufacil-left.calculator-form {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.calcufacil-55_gallon_drum_dimensions .calcufacil-right.results {
    flex: 1;
    min-width: 300px;
    background: #FAFAFA; /* 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; /* Changed */
    align-items: center;
}

.calcufacil-55_gallon_drum_dimensions .input-group {
    margin-bottom: 18px;
}

.calcufacil-55_gallon_drum_dimensions label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.calcufacil-55_gallon_drum_dimensions input[type="text"],
.calcufacil-55_gallon_drum_dimensions input[type="number"] { /* Though using text with inputmode */
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #BDBDBD; /* Medium Grey border */
    border-radius: 5px;
    font-size: 1em;
    background: #F8F8F8; /* Very Light Grey background */
    font-family: sans-serif;
}

.calcufacil-55_gallon_drum_dimensions select {
    padding: 10px 12px;
    border: 1px solid #BDBDBD;
    border-radius: 5px;
    font-size: 1em; /* Matched input */
    background: #F8F8F8;
    font-family: sans-serif;
    width: 100%; /* Default to full width for consistency */
}
.calcufacil-55_gallon_drum_dimensions .volume-with-unit {
    display: flex;
    gap: 10px;
    align-items: center;
}
.calcufacil-55_gallon_drum_dimensions .volume-with-unit input[type="text"] {
    flex-grow: 1; /* Input takes available space */
}
.calcufacil-55_gallon_drum_dimensions .volume-with-unit select {
    width: auto; /* Select sizes to content */
    flex-shrink: 0;
}


.calcufacil-55_gallon_drum_dimensions input[type="text"]:focus,
.calcufacil-55_gallon_drum_dimensions input[type="number"]:focus,
.calcufacil-55_gallon_drum_dimensions select:focus {
    border-color: #757575;
    box-shadow: 0 0 0 2px rgba(117, 117, 117, 0.2);
    outline: none;
}

.calcufacil-55_gallon_drum_dimensions .note {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

.calcufacil-55_gallon_drum_dimensions .input-group-section {
    width: 100%;
    border: 1px dashed #E0E0E0;
    padding: 20px; /* Increased padding */
    margin-top: 20px; /* Increased margin */
    border-radius: 8px;
    background-color: #fdfdfd; /* Slightly off-white */
}

.calcufacil-55_gallon_drum_dimensions button {
    background-color: #757575; /* Gray */
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    transition: background-color 0.3s ease;
    font-weight: bold;
    margin-top: 10px; /* Added margin */
}

.calcufacil-55_gallon_drum_dimensions button:hover {
    background-color: #616161; /* Darker Gray */
}

/* Results Styling */
.calcufacil-55_gallon_drum_dimensions .results-header h2 { /* Scoped */
    color: #616161; /* Darker Gray */
    margin-bottom: 20px;
    font-size: 1.4em;
}

.calcufacil-55_gallon_drum_dimensions .initial-message {
    text-align: center;
    color: #777;
    font-style: italic;
    padding: 20px;
    background-color: #FAFAFA;
    border: 1px dashed #D0D0D0;
    border-radius: 5px;
    width: 100%;
}

.calcufacil-55_gallon_drum_dimensions .calculation-summary {
    width: 100%;
    text-align: center;
    margin-bottom: 25px;
}

.calcufacil-55_gallon_drum_dimensions .calculation-desc {
    font-size: 1.05em;
    color: #555;
    margin-bottom: 15px;
}
.calcufacil-55_gallon_drum_dimensions .calculation-desc strong,
.calcufacil-55_gallon_drum_dimensions .calculation-desc b {
    font-weight: bold;
    color: #333;
}


.calcufacil-55_gallon_drum_dimensions .main-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #E0E0E0; /* Medium light Gray */
    padding: 15px 20px; /* Adjusted */
    border-radius: 8px;
    border: 1px solid #BDBDBD;
    font-size: 1.1em; /* Adjusted */
    color: #212121; /* Darkest Gray */
    margin-bottom: 10px;
    width: 100%;
}

.calcufacil-55_gallon_drum_dimensions .main-result.final-result {
    background-color: #9E9E9E; /* More prominent gray */
    border-color: #616161;
    color: #FFFFFF;
    padding: 20px 25px; /* Adjusted */
    font-size: 1.3em; /* Adjusted */
    margin-top: 15px; /* Adjusted */
}

.calcufacil-55_gallon_drum_dimensions .main-result span:first-child {
    font-weight: normal;
    font-size: 0.85em; /* Adjusted */
    color: inherit;
}

.calcufacil-55_gallon_drum_dimensions .main-result span:last-child {
    font-size: 1.7em; /* Adjusted */
    font-weight: bold;
    margin-top: 5px;
    color: inherit;
}

.calcufacil-55_gallon_drum_dimensions .main-result .small-unit {
    font-size: 0.75em; /* Adjusted */
    font-weight: normal;
    color: #555; /* Darker for better readability on light bg */
    margin-top: 3px; /* Adjusted */
}
.calcufacil-55_gallon_drum_dimensions .main-result.final-result .small-unit {
    color: #E0E0E0; /* Lighter for contrast on dark bg */
}

.calcufacil-55_gallon_drum_dimensions .math-notation {
    font-style: italic;
    font-size: 0.9em;
    color: #777;
    margin-top: 10px;
}

.calcufacil-55_gallon_drum_dimensions .errors {
    color: #D32F2F;
    background-color: #FFCDD2;
    border: 1px solid #EF9A9A;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}
.calcufacil-55_gallon_drum_dimensions .errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calcufacil-55_gallon_drum_dimensions .disclaimer-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #F8F8F8;
    border: 1px solid #E0E0E0;
    border-left: 5px solid #616161; /* Darker grey accent */
    border-radius: 8px;
    font-size: 0.85em;
    color: #555;
    width: 100%;
}
.calcufacil-55_gallon_drum_dimensions .disclaimer-box.critical h4 { /* Scoped */
    color: #B71C1C;
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 10px;
}
.calcufacil-55_gallon_drum_dimensions .disclaimer-box ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
    line-height: 1.6;
}
.calcufacil-55_gallon_drum_dimensions .disclaimer-box ul li strong,
.calcufacil-55_gallon_drum_dimensions .disclaimer-box ul li b {
    font-weight: bold;
    color: #424242;
}

/* Responsive */
@media (max-width: 768px) {
    .calcufacil-55_gallon_drum_dimensions.calcufacil-container {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    .calcufacil-55_gallon_drum_dimensions .calcufacil-left.calculator-form,
    .calcufacil-55_gallon_drum_dimensions .calcufacil-right.results {
        min-width: unset;
        width: 100%;
    }
    .calcufacil-55_gallon_drum_dimensions .volume-with-unit {
        flex-direction: column; /* Stack input and select on small screens */
        align-items: stretch; /* Make them full width */
    }
    .calcufacil-55_gallon_drum_dimensions .volume-with-unit input[type="text"],
    .calcufacil-55_gallon_drum_dimensions .volume-with-unit select {
        width: 100%;
    }
    .calcufacil-55_gallon_drum_dimensions h2 { font-size: 1.4em; }
    .calcufacil-55_gallon_drum_dimensions .results-header h2 { font-size: 1.25em; }
    .calcufacil-55_gallon_drum_dimensions .main-result.final-result { font-size: 1.2em; }
    .calcufacil-55_gallon_drum_dimensions .main-result span:last-child { font-size: 1.5em; }
}
