/* --- NEO-MEDICAL RETRO-MODERN LAYOUT (Functional & Compact) --- */
/* THEME: RESPIRATOR (Blue/Azure) */

/* 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);
    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(3, 169, 244, 0.03);
    /* Discrete Respirator Tint */
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    border-left: 5px solid #03A9F4;
    /* Respirator Accent */
    transition: background 0.2s;
}

.input-container:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
    border-left-color: #03A9F4;
    box-shadow: 0 2px 8px rgba(3, 169, 244, 0.1);
}

/* 4. LAYOUT LOGIC (Robust Inline-Block) */
label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
}

/* Slider takes left 78% */
input[type=range],
.slider {
    width: 78%;
    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 */
input[type=range] {
    -webkit-appearance: none;
    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: #03A9F4;
    /* Blue Thumb */
    margin-top: -6px;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 6. SELECTS */
select,
input[type="email"],
input[type="tel"],
input[type="text"].wide-select {
    width: 100%;
    padding: 8px;
    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, #03A9F4, #0288D1);
    /* Blue Gradient */
    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 {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 8. UTILITIES */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-left: 10px;
}

#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: #03A9F4;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 18px;
    background: rgba(3, 169, 244, 0.1);
    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;
}