/* --- 1. Global Reset & Layout --- */
html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
}

/* --- 2. Centered & Responsive Navigation --- */
nav {
    display: flex;
    justify-content: center; /* Centers items horizontally */
    flex-wrap: wrap;         /* Allows items to stack on small screens */
    gap: 1.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border-bottom: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

nav a {
    text-decoration: none;
    font-weight: 700;
    color: #007bff;
    transition: color 0.2s;
}

nav a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* --- 3. Content Area Wrapper --- */
/* This forces the Newsletter (and all pages) to be centered and 
   prevents them from floating up next to the nav */
.content-area {
    display: flex;
    flex-direction: column;
    align-items: center; 
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    clear: both; 
}

/* --- 4. Page Containers (Newsletter, About, etc.) --- */
.newsletter-container, .page-box {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px; /* Limits width on desktop */
    box-sizing: border-box;
}

h1, h2 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

/* --- 5. Form Elements --- */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, select, textarea, button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
}

button:hover { background-color: #0056b3; }

#countrySearch { background-color: #fff9e6; border-style: dashed; }

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid #c3e6cb;
}
