:root {
    --bg: #ffffff;
    --ink: #1e3250;
    --accent: #9b7350;
    --accent-light: #d1b399;
    --accent-dark: #7a5b3f;
    --surface: #fffdf8;
    --line: #dbcdb7;
    --muted: #5a646c;
    --muted-white: #b7bec3;
    
}

* {
    box-sizing: border-box;
}
h1, h2, h3 {
    font-family:'Superior Title', 'Merriweather', Georgia, serif;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Cadiz', 'Open Sans', Arial, sans-serif;
    color: var(--ink);
    background:  var(--bg);
    position: relative;
    font-size:16px;
}

.page-bg-shape {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    border-radius: 999px;
    filter: blur(34px);
}



.site-header {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.site-header .wrapper {
    position: absolute;
    z-index: 1000;
    padding: 2.5rem 1.4rem 1.2rem;
    width: 98%;
    max-width: 1200px;
    color: var(--surface);
}
.eyebrow {
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--accent-light);
    font-weight: 700;
    font-size: 0.78rem;
    margin: 0;
}

.site-header h1 {
    margin: 0.5rem 0 0.6rem;
    font-family: "Merriweather", Georgia, serif;
    line-height: 1.2;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
}
.site-header .subtitle {
    color: var(--muted-white);
    font-weight: bold;
    font-size: 1.5rem;
}
.site-header h2 {
    color: var(--surface);
    font-size: 3rem;
}
.background-image, .background-image ul {
    width:100%;
    height: 50vh;
    display: block;
    overflow: hidden !important;
}
.background-image ul  {
    position: absolute;
    top:0;
    left:0;
     margin: 0;
     padding: 0;
}
.background-image li {
    display: block;
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    list-style: none;
    opacity: 0;
    transition: opacity 900ms ease-in-out;
}

.background-image li:first-child {
    opacity: 1;
}

.background-image li.is-active {
    opacity: 1;
}
.background-image li img{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background-image .overlay{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background-color: rgba(0, 0, 0, 0.6);
}
.subtitle {
    max-width: 740px;
    color: var(--muted);
    margin: 0;
}

.system-status-banner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.2rem;
    border: 1px solid #e6b66a;
    background: #fff5e3;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(90, 70, 26, 0.1);
}

.system-status-banner h2 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
}

.system-status-banner ul {
    margin: 0;
    padding-left: 1.15rem;
    line-height: 1.6;
}

.content-wrap {
    width: 98%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: -15vh;
    padding: 1rem 1.4rem 7rem;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 29;
}

.petition-main,
.petitioners-panel,
.thank-you-card,
.modal-content {
    background: rgba(255, 253, 248, 0.88);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 30px rgba(25, 40, 38, 0.08);
}

.petition-main {
    padding: 1.5rem;
}

.petition-main h2 {
    margin-top: 0;
    font-size: 1.45rem;
}

.petition-main p {
    margin: 0 0 1rem;
    line-height: 1.7;
}

.petition-points {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    line-height: 1.7;
}

.petitioners-panel {
    padding: 1.2rem;
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
}

.petitioners-panel h3 {
    margin-top: 0;
}

.panel-message {
    margin: 0;
    color: var(--muted);
}

.petitioners-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.petitioners-list li {
    border-bottom: 1px solid var(--line);
    padding: 0.65rem 0.15rem;
}

.floating-sign-btn {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    padding: 0.9rem 1.7rem;
    box-shadow: 0 14px 26px rgba(191, 63, 52, 0.32);
    cursor: pointer;
    z-index: 30;
}

.floating-sign-btn:hover {
    background: var(--accent-dark);
}

.mobile-list-btn {
    margin-top: 1.5rem;
    display: none;
    width: 100%;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 700;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.is-open {
    display: flex;
    animation: fadeIn 180ms ease-out;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 16, 25, 0.6);
}

.modal-content {
    position: relative;
    width: min(620px, 100%);
    padding: 1.25rem;
    max-height: 92vh;
    overflow: auto;
}

.modal-content h3 {
    margin-top: 0;
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.55rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.3rem;
    cursor: pointer;
}

form label {
    display: block;
    font-weight: 600;
    margin: 0.8rem 0 0.35rem;
}

form input {
    width: 100%;
    border: 1px solid #c1b59f;
    border-radius: 10px;
    padding: 0.72rem;
    font: inherit;
    background: #fff;
}

.submit-btn {
    margin-top: 1rem;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 0.78rem;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.form-errors {
    background: #fff3e8;
    border: 1px solid #e2b88b;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.8rem;
}

.form-errors p {
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.form-errors ul {
    margin: 0;
    padding-left: 1.15rem;
}

.thank-you-body {
    display: grid;
    place-items: center;
    padding: 1.4rem;
}

.thank-you-card {
    max-width: 620px;
    padding: 1.8rem;
}

.thank-you-card h1 {
    margin-top: 0.4rem;
    font-family: "Merriweather", Georgia, serif;
}

.back-link {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--accent-dark);
    font-weight: 700;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 900px) {
    .content-wrap {
        grid-template-columns: 1fr;
    }

    .petitioners-panel {
        display: none;
    }

    .mobile-list-btn {
        display: inline-block;
    }

    .floating-sign-btn {
        width: calc(100% - 2rem);
        max-width: 460px;
    }

    .petition-main {
        padding-bottom: 4.2rem;
    }

    .system-status-banner {
        margin: 0 1.4rem;
    }
    .site-header .subtitle {
        font-size: 1rem;
    }
    .site-header h2 {
        font-size: 1.5rem;
    }
}
