/* =======================
   Karnataka Govt Health Dept Style
======================= */

/* General Body */
body {
    font-family: 'Noto Sans Kannada', 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8; /* Light official blue-grey */
    color: #1a1a1a;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #004BA0; /* Karnataka blue */
    color: white;
    padding: 10px 25px;
    flex-wrap: wrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header img {
    height: 55px;
}

header .title {
    flex: 1;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 500;
}

header .lang-toggle {
    cursor: pointer;
    font-weight: bold;
    background-color: #ffffff;
    color: #004BA0;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid #ffffff;
    transition: all 0.3s ease;
}

header .lang-toggle:hover {
    background-color: #e6f2ff;
    border-color: #004BA0;
}

/* Hero Section */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    padding: 25px;
    background: linear-gradient(90deg, #e6f2ff 0%, #ffffff 100%);
    border-bottom: 3px solid #004BA0;
}

.hero img {
    width: 260px;
    border-radius: 6px;
    margin: 10px;
}

.hero .intro {
    max-width: 650px;
    font-size: 1rem;
    line-height: 1.6;
}

/* Form Container */
form {
    max-width: 920px;
    margin: 25px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    border-top: 5px solid #004BA0;
}

/* Steps */
.step {
    display: none;
    animation: fadeIn 0.5s;
}

.step.active {
    display: block;
}

/* Inputs */
input[type="number"], input[type="text"], select, input[type="file"], output {
    width: 96%;
    padding: 9px;
    margin: 6px 0 16px 0;
    border-radius: 5px;
    border: 1px solid #b3b3b3;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus,
input[type="file"]:focus {
    border-color: #004BA0;
    outline: none;
    box-shadow: 0 0 5px rgba(0,75,160,0.3);
}

input[type="range"] {
    width: 92%;
}

/* Buttons */
button {
    padding: 11px 24px;
    margin: 12px 6px;
    border: none;
    background: linear-gradient(90deg, #0073e6, #004BA0);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(90deg, #0059b3, #004080);
}

button:disabled {
    background-color: #888;
    cursor: not-allowed;
}

/* Navigation Buttons */
.form-nav {
    text-align: center;
    margin-top: 10px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    background: #d9e6f2;
    border-radius: 6px;
    margin-bottom: 22px;
    height: 12px;
}

.progress-bar-inner {
    height: 12px;
    width: 0%;
    background-color: #0073e6;
    border-radius: 6px;
}

/* Reference ID Popup */
#refPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#refContent {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    max-width: 420px;
    box-shadow: 0px 4px 16px rgba(0,0,0,0.2);
}

#refContent button {
    margin-top: 15px;
}

/* Fade Animation */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Footer */
footer {
    background-color: #004BA0;
    color: white;
    text-align: center;
    padding: 18px;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Responsive */
@media screen and (max-width: 768px){
    .hero {
        flex-direction: column;
        text-align: center;
    }

    header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    header .title {
        margin: 8px 0;
        font-size: 1rem;
    }

    .hero img {
        width: 220px;
    }

    form {
        margin: 20px 10px;
        padding: 20px;
    }
}
