/* ===========================================
    Baby Gender Calculator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.bg-box {
    max-width: 680px; 
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.bg-form {
    padding: 25px; 
    border: 1px solid #7E57C2; /* Deep Lavender Border */
    border-radius: 8px;
    background-color: #F3E5F5; /* Very Light Pink/Purple Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.bg-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4527A0; /* Dark Purple */
    border-bottom: 2px solid #E1BEE7;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* --- Input Grid --- */
.bg-input-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 15px 2%;
    margin-bottom: 10px; 
}

.bg-input-group {
    flex-basis: 48%; /* Allows two inputs per row */
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.bg-input-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 8px;
}

.bg-input-group input,
.bg-input-group select {
    padding: 12px;
    border: 1px solid #CE93D8;
    border-radius: 6px;
    font-size: 1rem;
    flex-grow: 1;
    text-align: left; 
    background-color: white;
}
.bg-input-group input[type="date"] {
    text-align: right;
}

/* Button Styles */
.bg-calculate-btn {
    display: block;
    width: 100%;
    padding: 16px; 
    margin-top: 30px; 
    background-color: #AB47BC; /* Medium Purple */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.bg-calculate-btn:hover {
    background-color: #6A1B9A;
}

/* --- Results Display --- */
.bg-results {
    margin-top: 20px; 
    padding: 25px;
    border: 2px solid #7E57C2; 
    border-radius: 8px;
    background-color: #E8EAF6; /* Light Blue/Gray for neutral container */
    text-align: center;
}

.bg-results-title {
    color: #4527A0;
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #C5CAE9;
    padding-bottom: 5px;
}

/* Prediction Grid */
.prediction-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.prediction-box {
    flex-basis: 45%;
    min-width: 250px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.prediction-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #4527A0;
}

/* Specific Gender Styling */
.result-boy {
    background-color: #BBDEFB; /* Light Blue */
    border: 2px solid #2196F3;
}
.result-girl {
    background-color: #FFCDD2; /* Light Pink */
    border: 2px solid #E91E63;
}

.result-gender {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 10px 0;
}

.result-gender.boy {
    color: #0D47A1;
}
.result-gender.girl {
    color: #C2185B;
}

.prediction-disclaimer {
    font-size: 0.9rem;
    color: #616161;
    margin-top: 15px;
}

/* Recalculate Button (Global Style Reuse) */
.bc-recalculate-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 30px;
    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: 600px) {
    .bg-input-group {
        flex-basis: 100%;
        min-width: unset;
    }
    .prediction-box {
        flex-basis: 100%;
        margin-bottom: 15px;
    }
}