/* --- NEO-MEDICAL RETRO-MODERN LAYOUT (Functional & Compact) --- */

/* 1. CONTAINER & BODY */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: #f8f9fa;
    color: #2c3e50;
    margin: 0;
    padding: 10px;
}

#calculator-container {
    width: 600px;
    max-width: 98%;
    margin: 10px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* Reduced shadow spread */
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* 2. TYPOGRAPHY */
h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 5px;
}

h2 {
    font-size: 0.95rem;
    font-weight: 400;
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* 3. INPUTS CONTAINER (Standard Block) */
.input-container {
    background: rgba(255, 82, 82, 0.03);
    /* Discrete Metabolic Tint */
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    /* Compact spacing */
    border: 1px solid transparent;
    /* default border */
    border-left: 5px solid #FF5252;
    /* Metabolic Accent */
    transition: background 0.2s;
}

.input-container:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
    border-left-color: #FF5252;
    /* Keep accent */
    box-shadow: 0 2px 8px rgba(255, 82, 82, 0.1);
}

/* 4. LAYOUT LOGIC (The "Old Way" - Robust) */
/* Label takes full width top */
label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
}

/* Slider takes left 80% */
input[type=range],
.slider {
    width: 78%;
    /* Slightly less to avoid wrap */
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    cursor: pointer;
}

/* Value takes right 20% */
.no-border,
input[type="number"].no-border,
span.no-border,
input[type="number"] {
    width: 20% !important;
    display: inline-block;
    vertical-align: middle;
    text-align: right;
    font-weight: 700;
    color: #2980b9;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    padding: 0;
    margin: 0;
}

/* 5. SLIDER STYLING (Custom but Compact) */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: #dfe6e9;
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #2980b9;
    margin-top: -6px;
    /* Center thumb */
    -webkit-appearance: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 6. SELECTS (Full Width) */
select,
input[type="email"],
input[type="tel"],
input[type="text"].wide-select {
    width: 100%;
    padding: 8px;
    /* Compact padding */
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 1rem;
    color: #2c3e50;
    margin-top: 5px;
    display: block;
}

/* 7. BUTTONS */
#send_button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #2980b9, #2c3e50);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#send_button:hover {
    background: #3498db;
}

/* 8. UTILITIES & CHECKBOXES */
/* Checkboxes: Ensure they stay next to text */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-left: 10px;
}

/* Progress Bar */
#progress_bar_container {
    width: 100%;
    height: 12px;
    background: #ecf0f1;
    border-radius: 6px;
    margin: 15px 0;
    overflow: hidden;
}

#risk_progress {
    height: 100%;
    background: #27ae60;
    width: 0%;
    transition: width 0.5s;
}

#result_label {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin: 15px 0;
}

.message {
    display: none;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
}

.error {
    background: #fadbd8;
    color: #c0392b;
    border: 1px solid #e6b0aa;
}

.success {
    background: #d4efdf;
    color: #27ae60;
    border: 1px solid #a9dfbf;
}

#logo-container {
    text-align: center;
    margin: 20px 0;
}

#disclaimer-container {
    font-size: 0.75rem;
    color: #95a5a6;
    margin-top: 20px;
    text-align: justify;
}

/* 9. TOOLTIPS */
.hover-container {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
}

.hover-target {
    cursor: help;
    color: #2980b9;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 18px;
    background: #ecf0f1;
    text-align: center;
    font-size: 12px;
    margin: 0;
}

.hover-popup {
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    padding: 10px;
    background: #34495e;
    color: #fff;
    border-radius: 5px;
    font-size: 0.8rem;
    display: none;
    z-index: 100;
}

.hover-container:hover .hover-popup {
    display: block;
}
/* FIX for Number Inputs acting as primary inputs */
input[type="number"].wide-select {
    width: 100% !important;
    display: block !important;
    text-align: left !important;
    background: #fff !important;
    border: 1px solid #bdc3c7 !important;
    border-radius: 6px !important;
    margin-top: 5px !important;
    padding: 8px !important;
    font-weight: 400 !important;
    color: #2c3e50 !important;
    height: auto !important;
}
input[type="number"].wide-select:focus {
    border-color: #3498db !important;
    outline: none !important;
}


/* FIX for Number Inputs acting as primary inputs */
input[type="number"].wide-select {
    width: 100% !important;
    display: block !important;
    text-align: left !important;
    background: #fff !important;
    border: 1px solid #bdc3c7 !important;
    border-radius: 6px !important;
    margin-top: 5px !important;
    padding: 8px !important;
    font-weight: 400 !important;
    color: #2c3e50 !important;
    height: auto !important;
}
input[type="number"].wide-select:focus {
    border-color: #3498db !important;
    outline: none !important;
}

