html {
  font-family: Arial, sans-serif;
}

.page-style {
    padding: 20px;
    background-color: #DCE9F9;  
}

.h1-style {      
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 800;      
    text-align: center;
    margin-bottom: 1rem;
    color: #0D1B2A;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.h2-style {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: #0D1B2A;
}

.intro-text {
    font-size: 1.25rem;
    font-weight: 500;    
    color: #0D1B2A;
    text-align: center;
    margin: 3vh auto;
    line-height: 1.5;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    width: 90%; 
    margin: 5vh auto; 
    background-color: #162A44; 
    padding: 4vh 5vw; 
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
    color: #E0E0E0;
    box-sizing: border-box;
}

.form-intro {
    padding: 10px 0;
    color: #E0E0E0;
    font-size: 1.1rem;
    line-height: 1;
    text-align: center;
    margin: 5px 0;
    font-weight: bold;
}

.form-container label {
    font-weight: bold;
    font-size: 1rem;
    margin: 0.5vh;
}

.form-container input[type="text"] {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #1B263B;
    background-color: #1B263B;
    width: 100%;
    box-sizing: border-box;
    border-color: #E0E0E0;
    color: #FFFFFF;
    font-size: 16px; /* prevents iOS zoom on focus */
    font-weight: bold;
}

.form-container input[type="text"]:focus {
    border-color: #FF4C4C; 
    outline: none;
    box-shadow: 0 0 5px rgba(255, 76, 76, 0.7);
}

.form-container input[type="radio"],
.form-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.button {
    background-color: #D64545;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: bold;
    padding: 12px 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.15s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
    text-align: center;
    text-decoration: none;
    min-width: 90px;
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0;
    width: 90%;
    max-width: 500px;
    margin: 10px auto;
}

.slider-container input[type="range"] {
    flex: 1;
    background-color: #1B263B;
    border-radius: 4px;
    cursor: pointer;
    height: 24px;
}

.slider-container input[type="range"]::-moz-range-track {
    background-color: #1B263B;
    height: 8px;
    border-radius: 4px;
}

.slider-label {
    font-weight: bold;
    color: #E0E0E0;
    min-width: 50px;
    text-align: center;
    font-size: 1rem;
}

.route-display-container {
    display: flex;
    gap: 25px;
    justify-content: center;
    padding: 20px 0;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 0 auto;
    max-width: 1200px;
}

.route-details .h2-style {
    text-align: left; 
    margin-bottom: 0.5rem; 
}

.map-and-summary {
    flex: 0 1 65%;
    padding: 15px;
    justify-content: center;
    border-radius: 8px;
    background-color: transparent;  
    min-width: 300px;
    overflow: hidden;
}
  
.route-details {
    flex: 1 1 300px;
}

.route-display-container .map-and-summary img {
    display: block; 
    width: 100%;
    min-width: 250px;
    max-width: px;
    margin: 0 auto;
    height: auto;
}

.list-style li {
    margin-bottom: 10px; 
    line-height: 1.4;
}


.route-display-container + .button {
display: block;
margin: 20px auto;
width: fit-content;
}

/* mobile overrides */
@media (max-width: 768px) {
    .page-style {
        padding: 12px;
    }

    .h1-style {
        font-size: 1.75rem;
        line-height: 2rem;
    }

    .h2-style {
        font-size: 1.4rem;
        line-height: 1.8rem;
    }

    .intro-text {
        font-size: 1.1rem;
    }

    .form-container {
        width: 95%;
        padding: 20px 16px;
        gap: 18px;
    }

    .form-container label {
        font-size: 1.1rem;
        display: block;
        margin-bottom: 4px;
    }

    .form-container input[type="text"] {
        padding: 14px;
        font-size: 16px;
    }

    .form-container input[type="radio"],
    .form-container input[type="checkbox"] {
        width: 24px;
        height: 24px;
        margin-right: 10px;
    }

    .button {
        padding: 14px 30px;
        font-size: 1.1rem;
        width: 100%;
    }

    .slider-container {
        width: 100%;
        flex-wrap: wrap;
    }

    .slider-label {
        font-size: 1.1rem;
    }

    .route-display-container {
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
        gap: 20px
    }

    .map-and-summary {
        padding: 0;
        min-width: unset;
        width: 100%;
    }

    .route-display-container .map-and-summary img {
    display: block; 
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    }

    .route-details {
        width: 90%; 
        margin: 0 auto;
        padding: 15px;
    }
    
    .route-details .h2-style {
        text-align: center; 
        margin-bottom: 0.5rem;
    }
}