/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding-top: 0;
    -webkit-text-size-adjust: 100%;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    padding-top: 1em;
    /* margin-bottom: 20px; */
}

.container {
    max-width: 1100px;
    min-width: 0;
    width: 100%;
    margin: auto;
    margin-top: 50px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 5em;
}

.chart {
    background-color: white;
    /* border: 1px solid black; */
}

p {
    padding-bottom: 0.5em;
}

.middle {
    padding: 2em 3em 3em 3em; /* Adding padding around the container */
    background: #bee3ff; /* Soft background color for the form */
    border-radius: 10px; /* Rounded edges for the form */
    box-shadow: 0 0 10px rgba(0,0,0,0.3); /* Adding a subtle shadow */
    border: 1px solid rgba(0,0,0,0.3);

    margin-top: 2em;
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: #0077cc;
    transition: color 0.3s ease;
}
/* 
a:hover {
    color: #0077cc;
} */

/* Button styles */
button {
    background: linear-gradient(to right, #0077cc, #33aaff);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: linear-gradient(to right, #0055aa, #0077cc);
}

/* Form styles */
input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

select{
    width: auto !important;
    display: block;
}

input[type="submit"] {
    background: #0077cc;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Additional styles for radio buttons */
input[type="radio"] {
    margin-right: 10px;
}

/* ----- mobile / narrow-viewport ----- */
@media (max-width: 720px) {
    .container {
        margin-top: 24px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .middle {
        padding: 1.25em 1em;
    }
    h1 {
        font-size: 1.4rem;
        line-height: 1.25;
    }
    h2 {
        font-size: 1.1rem;
    }
    body {
        font-size: 16px;  /* keep iOS Safari from auto-zooming inputs */
    }
    select, input[type="text"], input[type="email"], textarea {
        font-size: 16px;
    }
    .chart {
        max-width: 100%;
    }
}

/* Mild polish - tighter form spacing on the main page */
form > * { margin-bottom: 8px; }
form label, form p { margin-bottom: 4px; }
