:root {
    --primary: #000000;
    --primary-hover: #333333;
    --bg-dark: #000000;
    --text-light: #ffffff;
    --text-muted: #ffffff;
    --glass: rgba(30, 41, 59, 0.4);
    --border: rgba(255, 255, 255, 0.2);
    --input-bg: rgba(15, 23, 42, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Removed pulse animation as it might conflict with static image background or be too distracting */

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.container {
    width: 100%;
    max-width: 900px;
    /* Reduced from 1000px */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* Reduced from 3rem */
}

.header {
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

.title {
    font-size: 3rem;
    /* Reduced from 3.5rem */
    font-weight: 800;
    color: #000000;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    /* White shadow for readability over image */
}

.subtitle {
    font-size: 1.1rem;
    /* Reduced from 1.25rem */
    color: #000000;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    /* White shadow for readability over image */
}

.petition-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Made left column wider */
    gap: 1.5rem;
    /* Reduced from 2rem */
    background: rgba(30, 41, 59, 0.85);
    /* Increased opacity slightly for readability */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    /* Reduced from 24px */
    padding: 1.75rem;
    /* Reduced from 2rem */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.content {
    padding-right: 2rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.petition-text-scroll {
    max-height: none;
    /* Remove height limit to show all content */
    overflow-y: visible;
    padding-right: 1rem;
    color: #ffffff;
    line-height: 1.7;
    font-size: 1.05rem;
    min-width: 100%;
}

/* Custom scrollbar for the petition text */
.petition-text-scroll::-webkit-scrollbar {
    width: 6px;
}

.petition-text-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.petition-text-scroll::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 3px;
}

.form-container {
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.875rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-container {
    padding-left: 1rem;
    position: relative;
}

.form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.disclaimer {
    font-size: 0.75rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.disclaimer p {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.submit-btn.loading .btn-text {
    visibility: hidden;
}

.submit-btn.loading .loader {
    display: block;
}

.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    padding: 3rem 2rem;
    background: #1e293b;
    /* Fully solid background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 9999;
}

.success-message.hidden {
    display: none;
}

.success-message.visible {
    opacity: 1;
    pointer-events: all;
}

.success-message h3,
.success-message p {
    color: #ffffff;
}

.check-icon {
    color: #ffffff;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
        gap: 2rem;
    }

    .petition-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .content {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 1.5rem;
    }

    .form-container {
        padding-left: 0;
    }

    .title {
        font-size: 2rem;
    }

    .stats {
        gap: 1.5rem;
        justify-content: space-around;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}