:root {
    /* Logo Colors */
    --primary-blue: #004d99;
    /* Example clear blue */
    --primary-dark-blue: #002244;
    --accent-orange: #ff7700;
    --accent-red: #cc0000;
    --gradient-bg: linear-gradient(135deg, #002244 0%, #004d99 50%, #cc0000 100%);

    --bg-light: #f9f9f9;
    --text-dark: #333;
    --white: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

header {
    background: rgb(0, 51, 102);
    background: radial-gradient(circle at center, #00509e 0%, #002244 100%);
    color: var(--white);
    text-align: center;
    padding: 3rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Subtle background ray effect overlay (optional, simplified) */
header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.logo-container {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

#logo {
    max-width: 250px;
    /* Slightly larger */
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.3));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.6));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.3));
    }
}

h1 {
    margin: 0 0 1.5rem 0;
    font-weight: 700;
    font-size: 2.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #ff9900 0%, #ff4500 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.6);
}

main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem 100px 1rem;
    /* Padding bottom to account for fixed footer */
}

section {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

h2 {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Candidate Grid */
.candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.candidate-card {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.2s;
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.candidate-img {
    width: 100px;
    height: 100px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    object-position: top;
}

/* Form Styles */
.question-block {
    margin-bottom: 2rem;
}

textarea {
    width: 100%;
    height: 80px;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

select {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.options label {
    display: block;
    margin-bottom: 0.8rem;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    /* Space for custom check */
    font-size: 1.05rem;
    transition: color 0.2s;
}

/* Custom label hover effect only */
.options label:hover {
    color: var(--accent-orange);
}

/* Radio specific roundness */


/* Let's try the modern approach with appearance: none on the input itself, simplifying things */

.options input[type="radio"],
.options input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-blue);
    background-color: #fff;
    cursor: pointer;
    position: relative;
    top: 5px;
    /* Align with text */
    margin-right: 10px;
    outline: none;
    opacity: 1;
    /* Reset opacity from previous attempt idea */
}

.options input[type="radio"] {
    border-radius: 50%;
}

.options input[type="checkbox"] {
    border-radius: 4px;
}

.options input[type="radio"]:checked,
.options input[type="checkbox"]:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Inner dot/check */
.options input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-orange);
}

.options input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

button#submit-btn {
    background-color: var(--accent-orange);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

button#submit-btn:hover {
    background-color: #e65c00;
}

/* Charts */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-wrapper {
    background: #fff;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 6px;
}

.text-results ul {
    list-style-type: none;
    padding: 0;
}

.text-results li {
    background: #f9f9f9;
    margin-bottom: 0.5rem;
    padding: 0.8rem;
    border-left: 4px solid var(--primary-blue);
    font-size: 0.9rem;
}

.timestamp {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.2rem;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    /* Slight transparency */
    text-align: center;
    padding: 0.5rem 0;
    /* Slimmer padding */
    font-size: 0.8rem;
    /* Smaller font */
    color: #666;
    /* Subtler text color */
    border-top: 1px solid #eee;
    /* Subtle border instead of strong shadow */
    z-index: 1000;
}

/* Background Watermark */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Two logos: left and right */
    background-image: url('media/Logo_transp.png'), url('media/Logo_transp.png');
    background-position: left 2% center, right 2% center;
    background-repeat: no-repeat, no-repeat;
    background-size: 15vw auto, 15vw auto;
    /* Responsive width */
    opacity: 0.12;
    /* Increased opacity (was 0.03) */
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 600px) {
    .charts-container {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 0.2rem 0;
        font-size: 0.75rem;
    }

    main {
        padding-bottom: 60px;
    }
}