/* --- css/participate.css --- */

/* Timeline Layout for Upcoming Events */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-item {
    display: flex;
    background: #ffffff;
    border: 1px solid #EAE1D3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(140, 74, 50, 0.08);
    border-color: #8C4A32;
}

.timeline-date {
    background: #F4EFE6;
    color: #4A6B4A;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-right: 1px solid #EAE1D3;
}

.timeline-date .month {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.timeline-date .day {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1;
    color: #8C4A32;
}

.timeline-content {
    padding: 35px 30px;
    flex: 1;
}

.timeline-content h3 {
    font-size: 1.6rem;
    color: #3A3532;
    margin-bottom: 5px;
}

.timeline-content .location {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    color: #8C4A32;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content p {
    color: #5A5552;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Button style for the timeline */
.btn-primary.small-btn {
    background: #4A6B4A;
    color: #FCFAF5;
    padding: 8px 18px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary.small-btn:hover {
    background: #8C4A32;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column; /* Stacks the date on top of the content on phones */
    }
    
    .timeline-date {
        flex-direction: row;
        gap: 15px;
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid #EAE1D3;
        padding: 15px;
    }
    
    .timeline-date .day {
        font-size: 2rem;
    }
    
    .timeline-content {
        padding: 25px 20px;
    }
}

/* --- Build With Us Form Styling --- */
.contact-parallax {
    /* Ensure the background image has a dark enough overlay for text contrast */
    background-image: linear-gradient(rgba(58, 53, 50, 0.92), rgba(58, 53, 50, 0.92)), url('/images/background/group.jpeg') !important;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input, 
.contact-form textarea,
.form-select {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(234, 225, 211, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
    color: #FCFAF5;
    font-family: 'DM Sans', sans-serif;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23FCFAF5' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-select option {
    background-color: #3A3532;
    color: #FCFAF5;
}

.contact-form input:focus, 
.contact-form textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #8C4A32;
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-submit {
    padding: 16px 30px;
    background-color: #8C4A32;
    color: #FCFAF5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #4A6B4A;
    transform: translateY(-2px);
}

/* Mobile fix for the 2-column input row */
@media (max-width: 600px) {
    .contact-form div {
        grid-template-columns: 1fr !important;
    }
}

/* --- Light Theme Form Styling --- */
.contact-form-light input, 
.contact-form-light textarea,
.form-select-light {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #EAE1D3; /* Subtle border for light background */
    background-color: #ffffff;
    color: #3A3532;
    font-family: 'DM Sans', sans-serif;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-select-light {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238C4A32' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.contact-form-light input:focus, 
.contact-form-light textarea:focus,
.form-select-light:focus {
    outline: none;
    border-color: #8C4A32;
    box-shadow: 0 0 0 3px rgba(140, 74, 50, 0.1);
}

.btn-submit {
    padding: 16px 30px;
    background-color: #8C4A32;
    color: #FCFAF5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    width: 100%; /* Makes the button full width on this form */
}

.btn-submit:hover {
    background-color: #4A6B4A;
    transform: translateY(-2px);
}