html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #444950;
    color: #fff;
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
}

* { box-sizing: border-box; }

.page-container { display: flex; height: 100%; }

.sidebar {
    width: 240px;
    flex: 0 0 240px;
    height: 100vh;
    padding: 20px;
    overflow-y: auto;
    background: #343a40;
    color: #f8f9fa;
}

.sidebar-header h2 {
    margin: 0 0 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #258af0;
    color: #f8f9fa;
    font-size: 1.5em;
    text-align: center;
}
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar a {
    display: block;
    padding: 15px 10px;
    border-radius: 5px;
    color: #dee2e6;
    text-decoration: none;
    transition: background-color .3s, color .3s;
}
.sidebar a:hover, .sidebar a.active { background: #495057; color: #fff; }

.main-content {
    flex: 1;
    height: 100vh;
    padding: 40px;
    overflow-y: auto;
}
.main-content > header h1 {
    margin: 0 0 30px;
    color: #237fdb;
    text-align: center;
}

.section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}
.main-content .section:last-child { margin-bottom: 0; border-bottom: 0; }
.section h2 {
    margin: 0 0 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    color: #3498db;
    text-align: center;
}

.notice-box {
    margin: 20px 0;
    padding: 14px 16px;
    border-left: 5px solid #ffcc00;
    border-radius: 3px;
    background: #474537;
    color: #fff;
}
.steps { padding-left: 1.5rem; }

.newsletter-form { max-width: 650px; }
.form-group { margin-bottom: 22px; }
.form-group > label, .category-group legend { color: #ddd; font-weight: 700; }

input[type="email"] {
    width: 100%;
    margin-top: 8px;
    padding: 11px 12px;
    border: 1px solid #aeb8c5;
    border-radius: 6px;
    background: #fff;
    color: #182230;
    font: inherit;
}
input[type="email"]:focus { outline: 3px solid rgba(30, 118, 184, .22); border-color: #1e76b8; }

.category-group { padding: 16px; border: 1px solid #aeb8c5; border-radius: 7px; }
.category-group label { display: block; padding: 7px 0; }
.category-group input, .consent-group input { width: 18px; height: 18px; vertical-align: -3px; }

.consent-group { display: flex; gap: 9px; align-items: flex-start; }
.consent-group label { font-weight: 400; }

.consent-group a { color: #8ec9ff; }
.consent-group a:visited { color: #c6a3e6; }
.form-help, .footnote { color: #d8dde2; font-size: .92rem; }
.form-status { min-height: 1.7em; margin: 12px 0; padding: 0; }
.form-status.success, .form-status.error { padding: 12px 14px; border-radius: 6px; }
.form-status.success { border: 1px solid #79d69a; background: rgba(25, 135, 84, .2); color: #effff4; }
.form-status.error { border: 1px solid #ff8c8c; background: rgba(180, 30, 30, .25); color: #fff0f0; }

.submit-btn {
    padding: 12px 20px;
    border: 0;
    border-radius: 6px;
    background: #3498db;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.submit-btn:hover:not(:disabled) { background: #2980b9; }
.submit-btn:disabled { background: #6c757d; cursor: not-allowed; opacity: .8; }

.honeypot-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

#menu-toggle-btn, .overlay { display: none; }

@media (max-width: 768px) {
    #menu-toggle-btn {
        position: fixed;
        top: 14px;
        left: 14px;
        z-index: 2000;
        display: block;
        width: 40px;
        height: 40px;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 5px;
        background: #fff;
    }
    #menu-toggle-btn span { display: block; height: 3px; margin: 4px 0; border-radius: 2px; background: #333; }
    .page-container { display: block; }
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1000;
        width: 250px;
        flex-basis: 250px;
        transform: translateX(-100%);
        transition: transform .3s ease-in-out;
        overflow-y: auto;
    }
    .sidebar.open { transform: translateX(0); }
    .overlay.open { position: fixed; inset: 0; z-index: 1000; display: block; background: rgba(0, 0, 0, .5); }
    .main-content { width: 100%; padding: 70px 20px 20px; }
    .main-content > header { display: none; }
}
