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

/* --- 1. THEME VARIABLES (Auto Light/Dark) --- */
:root {
    /* Default (Light Mode) */
    --bg-color: #ffffff;
    --text-color: #000000;
    --border-color: #000000;
    --btn-bg: #000000;
    --btn-text: #ffffff;
    --input-bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode (Matches your site: #111 / #ddd) */
        --bg-color: #111111;
        --text-color: #dddddd;
        --border-color: #dddddd;
        --btn-bg: #dddddd;
        --btn-text: #111111;
        --input-bg: #111111;
    }
}

/* --- 2. Global Page Reset --- */
body {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    font-family: 'Manrope', sans-serif !important;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Remove Listmonk's default wrapper styles */
.container.wrap {
    max-width: 500px !important;
    margin: 60px auto !important;
    padding: 20px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* --- 3. Hide Unwanted Elements --- */
.header .logo img { display: none !important; }
footer.container { display: none !important; }
.right { display: none !important; }

/* --- 4. Header Styling --- */
.header {
    margin-bottom: 40px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    text-align: left !important;
}

/* Text Logo via CSS (Backup for JS) */
.header .logo a::after {
    content: "ZOÉ BERNARDI";
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header .logo a { text-decoration: none !important; }

/* --- 5. Typography --- */
h2 {
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 30px !important;
    color: var(--text-color) !important;
    text-align: left !important;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--text-color) !important;
}

/* Success/Error Message Text */
div {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* --- 6. Form Elements --- */

/* Inputs */
input[type="email"],
input[type="text"] {
    width: 100%;
    padding: 12px 15px !important;
    margin-bottom: 20px !important;
    
    background: var(--input-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.95rem !important;
    color: var(--text-color) !important;
    outline: none !important;
    box-shadow: none !important;
}

input:focus {
    opacity: 0.8;
}

/* BUTTONS (Fixes the blue link button too) */
/* We target .button class, <button> tag, and submit inputs */
.button, 
button,
input[type="submit"] {
    display: inline-block !important; /* Fixes alignment for <a> tags */
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none !important;
    
    padding: 14px 20px !important;
    margin-top: 10px !important;
    
    background-color: var(--btn-bg) !important;
    color: var(--btn-text) !important;
    border: none !important;
    border-radius: 0 !important;
    
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.button:hover, 
button:hover,
input[type="submit"]:hover {
    opacity: 0.8;
    background-color: var(--btn-bg) !important; /* Prevent hover color shift */
    color: var(--btn-text) !important;
}

/* --- 7. Checkboxes --- */
.lists {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 30px 0 !important;
    border-top: 1px solid var(--border-color); /* Adaptive border */
    padding-top: 20px !important;
    opacity: 0.5; /* Fade the list selection slightly */
}

.lists input[type="checkbox"] {
    accent-color: var(--text-color);
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .container.wrap {
        margin-top: 20px !important;
        padding: 20px !important;
    }
    h2 { font-size: 1.8rem !important; }
}