/* Styles for Drywall Calculator */
.calcufacil-drywall_calculator.calcufacil-container {
    max-width: 750px;
    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 #795548; /* Brown accent for construction/materials */
    box-sizing: border-box;
}

.calcufacil-drywall_calculator.calcufacil-container *,
.calcufacil-drywall_calculator.calcufacil-container *::before,
.calcufacil-drywall_calculator.calcufacil-container *::after {
    box-sizing: border-box;
}

.calcufacil-drywall_calculator h2 { /* Scoped */
    width: 100%;
    text-align: center;
    color: #5D4037; /* Darker Brown for main title */
    margin-top:0;
    margin-bottom: 25px;
    font-size: 1.6em;
}

.calcufacil-drywall_calculator h3 { /* Scoped */
    width: 100%;
    text-align: center;
    color: #5D4037;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 1px solid #D7CCC8;
    padding-bottom: 10px;
}

.calcufacil-drywall_calculator .calcufacil-left.calculator-form {
    flex: 1;
    min-width: 280px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.calcufacil-drywall_calculator .calcufacil-right.results {
    flex: 1;
    min-width: 280px;
    background: #EFEBE9; /* Light Brown */
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #D7CCC8;
    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-drywall_calculator .input-group {
    margin-bottom: 18px;
}

.calcufacil-drywall_calculator label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.calcufacil-drywall_calculator input[type="text"],
.calcufacil-drywall_calculator input[type="number"],
.calcufacil-drywall_calculator select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #BCAAA4; /* Medium Brown border */
    border-radius: 5px;
    font-size: 1em;
    background: #F8F5F4; /* Very light brown background */
    font-family: sans-serif;
}

.calcufacil-drywall_calculator input[type="text"]:focus,
.calcufacil-drywall_calculator input[type="number"]:focus,
.calcufacil-drywall_calculator select:focus {
    border-color: #795548;
    box-shadow: 0 0 0 2px rgba(121, 85, 72, 0.2);
    outline: none;
}

.calcufacil-drywall_calculator .note {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

.calcufacil-drywall_calculator button {
    background-color: #795548; /* Brown */
    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;
}

.calcufacil-drywall_calculator button:hover {
    background-color: #5D4037; /* Darker Brown */
}

/* Results Styling */
.calcufacil-drywall_calculator .results-header h2 { /* Scoped */
    color: #5D4037; /* Darker Brown */
    margin-bottom: 20px;
    font-size: 1.4em;
}

.calcufacil-drywall_calculator .initial-message {
    text-align: center;
    color: #777;
    font-style: italic;
    padding: 20px;
    background-color: #F8F5F4; /* Lighter brown than results bg */
    border: 1px dashed #D7CCC8;
    border-radius: 5px;
    width: 100%;
}

.calcufacil-drywall_calculator .calculation-summary {
    width: 100%;
    text-align: center;
    margin-bottom: 25px;
}

.calcufacil-drywall_calculator .calculation-desc {
    font-size: 1.05em;
    color: #555;
    margin-bottom: 15px;
}
.calcufacil-drywall_calculator .calculation-desc strong,
.calcufacil-drywall_calculator .calculation-desc b {
    font-weight: bold;
    color: #3E2723; /* Darkest brown for emphasis */
}

.calcufacil-drywall_calculator .main-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #D7CCC8; /* Medium light Brown */
    padding: 15px 20px; /* Adjusted */
    border-radius: 8px;
    border: 1px solid #A1887F; /* Slightly darker than bg */
    font-size: 1.1em; /* Adjusted */
    color: #3E2723; /* Darkest Brown */
    margin-bottom: 10px; /* Spacing for multiple results */
    width: 100%;
}

.calcufacil-drywall_calculator .main-result.final-result { /* If used for a single most important result */
    background-color: #A1887F; /* More prominent brown */
    border-color: #5D4037;
    color: #FFFFFF;
    padding: 20px 25px; /* Adjusted */
    font-size: 1.3em; /* Adjusted */
    margin-top: 15px; /* Adjusted */
}

.calcufacil-drywall_calculator .main-result span:first-child {
    font-weight: normal;
    font-size: 0.85em; /* Adjusted */
    color: inherit;
}

.calcufacil-drywall_calculator .main-result span:last-child {
    font-size: 1.7em; /* Adjusted */
    font-weight: bold;
    margin-top: 5px;
    color: inherit;
}

.calcufacil-drywall_calculator .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-drywall_calculator .errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calcufacil-drywall_calculator .disclaimer-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #F8F5F4;
    border: 1px solid #D7CCC8;
    border-left: 5px solid #5D4037; /* Darker brown accent */
    border-radius: 8px;
    font-size: 0.85em;
    color: #555;
    width: 100%;
}
.calcufacil-drywall_calculator .disclaimer-box.critical h4 { /* Scoped */
    color: #B71C1C;
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 10px;
}
.calcufacil-drywall_calculator .disclaimer-box ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
    line-height: 1.6;
}
.calcufacil-drywall_calculator .disclaimer-box ul li strong,
.calcufacil-drywall_calculator .disclaimer-box ul li b {
    font-weight: bold;
    color: #3E2723;
}


/* Responsive */
@media (max-width: 768px) {
    .calcufacil-drywall_calculator.calcufacil-container {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    .calcufacil-drywall_calculator .calcufacil-left.calculator-form,
    .calcufacil-drywall_calculator .calcufacil-right.results {
        min-width: unset;
        width: 100%;
    }
    .calcufacil-drywall_calculator h2 { font-size: 1.4em; }
    .calcufacil-drywall_calculator .results-header h2 { font-size: 1.25em; }
    .calcufacil-drywall_calculator .main-result.final-result { font-size: 1.2em; } /* If exists */
    .calcufacil-drywall_calculator .main-result span:last-child { font-size: 1.5em; }
}