/* ===========================================
    Home Insurance Calculator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.hi-box {
    max-width: 700px; 
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.hi-form {
    padding: 25px; 
    border: 1px solid #4E342E; /* Dark Brown Border */
    border-radius: 8px;
    background-color: #FAFAFA; /* Very Light Gray Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.hi-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #6D4C41; /* Medium Brown */
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* --- Input Grid --- */
.hi-input-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 15px 2%;
    margin-bottom: 10px; 
}

.hi-input-group {
    flex-basis: 48%; /* Allows two inputs per row */
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.hi-input-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 8px;
}

.hi-input-group input,
.hi-input-group select {
    padding: 12px;
    border: 1px solid #BCAAA4;
    border-radius: 6px;
    font-size: 1rem;
    flex-grow: 1;
    text-align: right;
    background-color: white;
}
.hi-input-group select {
    text-align: left; /* Keep select options readable */
}

/* Button Styles */
.hi-calculate-btn {
    display: block;
    width: 100%;
    padding: 16px; 
    margin-top: 30px; 
    background-color: #6D4C41; /* Primary Brown */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.hi-calculate-btn:hover {
    background-color: #4E342E;
}

/* --- Results Display --- */
.hi-results {
    margin-top: 20px; 
    padding: 25px;
    border: 2px solid #6D4C41; 
    border-radius: 8px;
    background-color: #F3E5F5; /* Very Light Purple/Pink for contrast */
    text-align: center;
}

.hi-results-title {
    color: #4E342E;
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #D7CCC8;
    padding-bottom: 5px;
}

/* Results Table */
.hi-results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.hi-results-table th, .hi-results-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #D7CCC8;
    text-align: left;
}
.hi-results-table th {
    background-color: #FAFAFA; 
    color: #4E342E;
    font-weight: 600;
    width: 65%;
}

/* Key Value Styling */
.hi-results-table td {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A237E; /* Dark Blue for money values */
}

/* Final Balance Highlight */
.hi-results-table tr.final-premium td {
    font-size: 1.6rem;
    color: #D32F2F; /* Red for key result (cost) */
}

/* Recalculate Button (Global Style Reuse) */
.bc-recalculate-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #9E9E9E;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.bc-recalculate-btn:hover {
    background-color: #616161;
}

/* --- Responsive Adjustments --- */
@media (max-width: 550px) {
    .hi-input-group {
        flex-basis: 100%;
        min-width: unset;
    }
    .hi-input-group input,
    .hi-input-group select {
        text-align: left; 
    }
}