:root {
    --primary: #f59b22;
    --secondary: #0b2639;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--secondary);
    background: url('images/farms.jpg') center center fixed;
    background-size: cover;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: -1;
}



.container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    position: relative;
}

.carousel-item {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    padding: 20px 0;
}

.carousel-item:first-child {
    min-height: 80vh;
}

.progress-bar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 120px;
    background: transparent;
    border-radius: 4px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    transition: left 0.3s ease;
}

.progress-dot {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    margin: 5px 0;
    flex-shrink: 0;
}

.progress-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.progress-dot.active {
    background: var(--white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.progress-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.box {
    width: 1000px;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* First Box - Hero Section */
.hero-box {
    background: var(--secondary);
    position: relative;
    padding: 40px 0;
}

.hero-left, .hero-right {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hero-left {
    justify-content: flex-start;
    padding-left: 80px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.hero-right {
    justify-content: flex-end;
    padding-right: 0;
    align-items: flex-end;
    position: relative;
}

.title-section {
    text-align: center;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.title-line-1 {
    display: flex;
    align-items: center;
    gap: 20px;
}

.title-line-2 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--white);
    margin-left: 0;
}

.illinois-icon {
    width: auto;
    height: 2em;
    display: block;
    flex-shrink: 0;
}

/* Desktop icon size */
@media (min-width: 769px) {
    .illinois-icon {
        height: 3em;
    }
}

/* Tablet and medium screen adjustments */
@media (max-width: 820px) {
    .hero-left {
        margin-left: 40px !important;
        margin-right: 40px !important;
        text-align: center;
    }
    
    .hero-box {
        padding: 40px 40px 40px 40px !important;
    }
}

/* Hide headshot and right column on smaller screens */
@media (max-width: 820px) {
    .hero-headshot {
        display: none;
    }
    
    .hero-right {
        display: none;
    }
}

.candidate-name {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    text-transform: uppercase;
}

/* Signup Form */
.signup-form {
    margin-top: 40px;
    width: 100%;
    max-width: 400px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    width: 100%;
}

.signup-form input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    color: var(--secondary);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.signup-form input:focus {
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.join-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 18px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.join-btn:hover {
    background: #e08a1e;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 155, 34, 0.3);
}

.message {
    background: rgba(255, 255, 255, 0.9);
    color: var(--secondary);
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
}

.hero-headshot {
    width: 400px;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate(20px, 20px);
    z-index: 3;
}



/* Second Box */
.second-box {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 80px 60px;
}

.issues-content {
    max-width: 800px;
    margin: 0 auto;
}

.second-box h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    line-height: 1.2;
}

.issues-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.issue-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.issue-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.issue-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.issue-item span {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Third Box */
.third-box {
    background: var(--white);
    color: var(--secondary);
    text-align: center;
    padding: 80px 60px;
}

.success-message {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #4caf50;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin: 20px 0;
}

/* Volunteer Form Specific Styles */
.form-group.full-width {
    width: 100%;
}

.form-group.full-width input {
    width: 100%;
}

/* Enhanced form field visibility and compact layout */
.third-box .signup-form {
    max-width: 600px;
    margin: 0 auto;
}

.third-box .form-group input {
    border: 2px solid #e0e0e0;
    background: white;
    color: var(--secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.third-box .form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 155, 34, 0.1);
    outline: none;
}

.third-box .form-group input::placeholder {
    color: #999;
    font-weight: 400;
}

.third-box .form-row {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.third-box .form-group {
    flex: 1;
}

.third-box .form-group.full-width {
    flex: none;
    width: 100%;
}

.volunteer-options {
    margin: 20px 0;
    text-align: left;
}

.volunteer-options h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.checkbox-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-item .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary);
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    background: white;
    transition: all 0.3s ease;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Download Links */
.download-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.download-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.download-link:hover {
    color: #004499;
    text-decoration: underline;
}

.link-separator {
    color: #999;
    margin: 0 15px;
    font-weight: 300;
}

.third-box .issue-item {
    background: rgba(0, 0, 0, 0.1);
    color: var(--secondary);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.third-box .issue-item:hover {
    background: rgba(0, 0, 0, 0.2);
}

.third-box .issue-icon {
    filter: none;
    color: var(--primary);
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.third-box h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    line-height: 1.2;
    color: var(--primary);
}

/* Fourth Box - About Don */
.fourth-box {
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 80px 60px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.fourth-box h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.family-photo {
    margin: 40px 0;
}

.family-image {
    height: 300px;
    width: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.bio-text {
    text-align: left;
    margin: 40px 0;
    line-height: 1.7;
}

.bio-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.disclaimer {
    margin-top: 50px;
    padding: 15px 25px;
    border: 2px solid var(--white);
    border-radius: 8px;
    display: inline-block;
}

.sms-consent {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.sms-consent p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--white);
    font-weight: 300;
    line-height: 1.4;
    opacity: 0.9;
}

.disclaimer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 400;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
    
    body::before {
        position: absolute;
    }
    
    .container {
        scroll-snap-type: none;
        height: auto;
        overflow-y: auto;
    }
    
    .carousel-item {
        min-height: auto;
        height: auto;
        scroll-snap-align: none;
        margin-bottom: 20px;
        padding: 20px 0;
    }
    
    .hero-left {
        width: 100%;
        text-align: center;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .hero-box {
        padding: 40px 20px !important;
    }
    
    .title-line-1 {
        justify-content: center;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .box {
        padding: 40px 20px;
        margin: 0 10px;
    }
    
    .progress-bar {
        display: none;
    }
    
    .candidate-name {
        font-size: 2.2rem;
    }
    
    .title-line-2 {
        font-size: 1.8rem;
    }
}
