/* Styles for Hypotenuse Calculator */
.calcufacil-hypotenuse_calculator.calcufacil-container {
    max-width: 850px; margin: 25px auto; background: #F3E5F5; 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 #7B1FA2; /* Purple */
    box-sizing: border-box;
}
.calcufacil-hypotenuse_calculator.calcufacil-container *, .calcufacil-hypotenuse_calculator.calcufacil-container *::before, .calcufacil-hypotenuse_calculator.calcufacil-container *::after { box-sizing: border-box; }

.calcufacil-hypotenuse_calculator h2 { width: 100%; text-align: center; color: #4A148C; margin:0; font-size: 1.6em; }
.calcufacil-hypotenuse_calculator p.subtitle { width: 100%; text-align: center; margin-top:0; margin-bottom: 20px; color: #6A1B9A;}
.calcufacil-hypotenuse_calculator h3 { color: #6A1B9A; font-size: 1.2em; margin-top: 20px; margin-bottom: 15px; border-bottom: 1px solid #CE93D8; padding-bottom: 5px; }
.calcufacil-hypotenuse_calculator .calcufacil-left.calculator-form { flex: 1.3; min-width: 350px; padding: 20px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid #E1BEE7; }
.calcufacil-hypotenuse_calculator .calcufacil-right.results { flex: 1; min-width: 300px; background: #FCE4EC; padding: 25px; border-radius: 8px; border: 1px solid #F8BBD0; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; }

.calcufacil-hypotenuse_calculator .input-group { margin-bottom: 15px; }
.calcufacil-hypotenuse_calculator label { display: block; font-weight: 600; color: #4A148C; margin-bottom: 6px; font-size: 0.95em; }
.calcufacil-hypotenuse_calculator input[type="text"] { width: 100%; padding: 10px 12px; border: 1px solid #CE93D8; border-radius: 5px; font-size: 1em; background: #F9FBE7; font-family: sans-serif; }
.calcufacil-hypotenuse_calculator input[type="text"]:focus { border-color: #7B1FA2; box-shadow: 0 0 0 2px rgba(123, 31, 162, 0.2); outline: none; }

.calcufacil-hypotenuse_calculator button[type="submit"] { background-color: #6A1B9A; 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-hypotenuse_calculator button[type="submit"]:hover { background-color: #4A148C; }

/* Results Styling */
.calcufacil-hypotenuse_calculator .results-header h2 { color: #880E4F; margin-bottom: 20px; font-size: 1.4em; }
.calcufacil-hypotenuse_calculator .initial-message { text-align: center; color: #880E4F; font-style: italic; padding: 20px; background-color: #FCE4EC; border: 1px dashed #F8BBD0; border-radius: 5px; width:100%; }
.calcufacil-hypotenuse_calculator .calculation-summary { width: 100%; margin-bottom: 20px; }
.calcufacil-hypotenuse_calculator .main-result.final-result { background-color: #880E4F; color: #fff; font-size: 1.3em; padding: 15px 20px; border-color: #4A148C; margin-top:10px; font-weight: bold; text-align: center; display: block; }
.calcufacil-hypotenuse_calculator .main-result span:first-child { display:block; font-size: 0.8em; opacity: 0.8; margin-bottom: 5px; }
.calcufacil-hypotenuse_calculator .main-result span:last-child { font-weight: bold; font-size: 1.5em;}
.calcufacil-hypotenuse_calculator .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-hypotenuse_calculator .errors ul { list-style: none; padding: 0; margin: 0; }
.calcufacil-hypotenuse_calculator .disclaimer-box.info { padding: 15px; background-color: #EDE7F6; border: 1px solid #D1C4E9; border-left: 5px solid #5E35B1; border-radius: 8px; font-size: 0.9em; color: #311B92; width:100%; }
.calcufacil-hypotenuse_calculator .disclaimer-box.info h4 { color: #4527A0; font-size: 1.1em; margin-top: 0; margin-bottom: 10px; }
.calcufacil-hypotenuse_calculator .disclaimer-box.info ul { list-style: disc; margin-left: 20px; padding-left: 0; line-height: 1.6; }

@media (max-width: 768px) {
    .calcufacil-hypotenuse_calculator.calcufacil-container { flex-direction: column; gap: 20px; padding: 15px; }
    .calcufacil-hypotenuse_calculator .calcufacil-left.calculator-form, .calcufacil-hypotenuse_calculator .calcufacil-right.results { min-width: unset; width: 100%; }
}