/* 1. Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* 2. Global Reset & Body Styling */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f6f9; /* Soft grey-blue background */
    color: #334155; /* Dark slate text for readability */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 3. Main Container (Card Layout) */
.container.wrap {
    max-width: 520px;
    margin: 60px auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

/* 4. Header & Logo */
.header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.logo img {
    max-width: 250px; /* Restricts huge logo size */
    height: auto;
    display: inline-block;
}

/* 5. Typography */
h2 {
    font-weight: 700;
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
    margin-top: 0;
}

p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    color: #64748b;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* 6. Form Elements (Checkbox & Radios) */
input[type="checkbox"], 
input[type="radio"] {
    accent-color: #2563eb; /* Modern blue check color */
    transform: scale(1.1);
    margin-right: 10px;
    cursor: pointer;
}

label {
    cursor: pointer;
    font-weight: 500;
    color: #1e293b;
}

/* 7. Buttons */
button, 
input[type="submit"], 
.button {
    background-color: #0f172a; /* Dark Navy branding */
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    display: block;
}

button:hover, 
input[type="submit"]:hover, 
.button:hover {
    background-color: #2563eb; /* Brighter blue on hover */
    transform: translateY(-1px);
    box-shadow: 0 6px 10px -1px rgba(0, 0, 0, 0.15);
}

/* Secondary Button (Outline style for Data/Privacy section) */
.button-outline {
    background-color: transparent;
    border: 2px solid #cbd5e1;
    color: #475569;
    box-shadow: none;
}

.button-outline:hover {
    border-color: #94a3b8;
    background-color: #f8fafc;
    color: #0f172a;
}

/* 8. Specific Layout Fixes */
.unsub-form div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Link to Manage Preferences */
.unsub-form a[href*="manage"] {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #64748b;
}

/* Privacy Section separation */
#data-form {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed #e2e8f0;
}

.row {
    margin-bottom: 15px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* 9. Footer */
footer.container {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 40px;
    padding-bottom: 40px;
}

footer a {
    color: #94a3b8;
}

/* 10. Mobile Responsiveness */
@media (max-width: 600px) {
    .container.wrap {
        margin: 20px;
        padding: 25px;
    }
    
    .logo img {
        max-width: 200px;
    }
}