/* ================= GLOBAL RESET & BODY ================= */
body {
    font: 12px Verdana, Arial, Helvetica, sans-serif;
    color: #D5AE66;
    background-color: #001344;
    margin: 0;
    padding: 0 5%;
    min-height: 100vh;
    box-sizing: border-box;
}

/* ================= WRAPPER ================= */
#wrapper {
    width: 90%;
    max-width: 900px;
    padding: 1% 5% 3%;
    margin: 20px auto 40px;
    border: 1px solid #6282DC;
    background-color: #395b9b; 
    background-image: linear-gradient(-45deg, #395b9b, #002366 50%, #395b9b);
    background-repeat: no-repeat;
}

/* ================= BOTTOM CONTAINER ================= */
.bottom-nav-container {
    display: block !important;
    position: relative;
    margin: 30px auto 5px auto;
    width: 100%;
    max-width: 860px;
    padding: 10px 20px;
    box-sizing: border-box;
    border: 1px solid #9291D4 !important;
    text-align: center;
    background-color: #395b9b;
    background-image: url(../images/grad/h5_bleugrandeur3.jpg) !important;
    background-repeat: repeat;
    background-position: center;
    min-height: 40px;
}

.bottom-nav-container a.link1 {
    display: inline-block;
    margin: 5px 1% !important;
    white-space: nowrap;
}

#navtop {
	width: 80%;
	text-align: center;
	margin: 2% auto;
	}

#navtop a.link1 { 	margin: 0% 5%;
					color: #62A0D7 }

p { color: #ADBDF4; }

/* ================= FORM STYLES ================= */
.form-group { margin-bottom: 15px; }

label { 
    display: block; 
    margin-bottom: 5px; 
    font-weight: bold; 
    color: #D1B19A; 
}

/* CRITICAL MOBILE FIX: Font-size 16px prevents iOS auto-zoom */
input[type="text"], 
input[type="email"], 
textarea, 
select {
    width: 100%;
    padding: 10px;
    background: #221a18;
    border: 1px solid #A4946A;
    color: #99A7D7;
    font-family: sans-serif;
    font-size: 16px; /* Increased from 1em to prevent zoom */
    box-sizing: border-box;
    border-radius: 4px; /* Slight rounding for modern look */
}

input[type="checkbox"] { margin-right: 10px; }

.checkbox-group { 
    background: #221a18; 
    padding: 10px; 
    border: 1px solid #A4946A; 
    border-radius: 4px;
}

.checkbox-label { 
    display: inline-block; 
    margin-right: 15px; 
    margin-bottom: 5px; /* Wrap safety */
    font-weight: normal; 
    color: #99A7D7; 
}

button {
    background: #6282DC;
    color: #fff;
    border: 1px solid #ADA58F;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 10px;
    border-radius: 4px;
    width: 100%; /* Full width on mobile looks better */
    max-width: 300px; /* Limit width on desktop */
}

button:hover { background: #7a94e6; }

.status-msg { 
    padding: 15px; 
    margin-bottom: 20px; 
    border-radius: 4px; 
    font-weight: bold; 
}
.success { background: #2f4f2f; color: #8fbc8f; border: 1px solid #8fbc8f; }
.error { background: #4f2f2f; color: #e68f8f; border: 1px solid #e68f8f; }

/* Honeypot: Hidden from humans */
.honey-pot { 
    display: none; 
    visibility: hidden; 
    position: absolute; 
    top: -9999px; 
}

/* ================= TYPOGRAPHY ================= */
.headline {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #83A7FC;
    background-image: url(../images/grad/h5_bleugrandeur3.jpg);
    background-repeat: repeat;
    background-position: center;
    padding: 5px 5px 5px 30px;
    margin: 10px 8px 20px 8px;
    border: 1px solid #B09C40;
    box-sizing: border-box;
    text-align: left;
    text-shadow: 1px 1px 1px #000;
}

.header {
    font-size: 13pt;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    color: #E09774;
    margin-bottom: 10px;
    display: block;
    text-shadow: 1px 1px 1px #000;
}

/* ================= LINKS ================= */
a.link1 {
    font: normal 12px Arial, Helvetica, sans-serif;
    text-decoration: none;
    color: #62A0D7 !important;
    text-shadow: 1px 1px 1px #000;
}
a.link1:hover {
    color: #E7C76C !important;
    text-decoration: underline;
}

a.link2:link { color: #84B4D0; text-decoration: none; }
a.link2:hover { color: #E2728E; text-decoration: underline; }

#bottom-nav-container { color: #62A0D7 !important; }

/* ================= RESPONSIVE / MOBILE ================= */
@media (max-width: 768px) {
    
    /* Increase base font size for readability */
    body {
        font-size: 14px;
        padding: 0 2%; /* Reduce side padding */
    }

    #wrapper {
        width: 95%;
        padding: 5%;
        margin: 10px auto;
    }
    #navtop a.link1 { 	margin: 0% 2%;

    .headline {
        font-size: 20px;
        padding: 10px;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
    }

    .header {
        font-size: 1.1em; /* Relative size */
    }

    /* Ensure form elements are touch-friendly */
    input[type="text"], 
    input[type="email"], 
    textarea, 
    select {
        font-size: 16px; /* MUST be 16px+ to prevent zoom */
        padding: 12px; /* Larger touch target */
    }


    button {
        width: 100%; /* Full width button for easy tapping */
        max-width: none;
        padding: 15px;
    }

    .bottom-nav-container {
        max-width: 100%;
        padding: 5px;
    }
}