/*
  Dearden2007 CSS split generated from the original style.css.
  shared.css contains only global header/navigation/footer/base rules.
  Each page stylesheet contains rules matched to that page's HTML.
*/

/* Page: volunteer */

.form-row{

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

.timeline-button{

    display:inline-block;

    margin-top:25px;

    background:#d61c1c;

    color:white;

    padding:14px 30px;

    text-decoration:none;

    border-radius:8px;

    transition:all .3s ease;

}

.timeline-button:hover{

    transform:translateY(-4px);

    box-shadow:
        0 0 20px rgba(214,28,28,.45);

}

.timeline-button.secondary{

    background:linear-gradient(
        135deg,
        #1e4cff,
        #3b82f6
    );

    color:white;

    border:1px solid #5fa8ff;

}

.timeline-button.secondary:hover{

    background:linear-gradient(
        135deg,
        #3b82f6,
        #5fa8ff
    );

    transform:translateY(-4px);

    box-shadow:
        0 0 20px rgba(30,76,255,.45);

}

.volunteer-hero{

    text-align:center;

    padding:80px 20px;

    background:#111;

    color:white;

}

.volunteer-hero h1{

    font-size:48px;

    color:#d61c1c;

}

.volunteer-hero h2{

    font-size:30px;

}

.volunteer-hero p{

    max-width:800px;

    margin:20px auto;

    font-size:18px;

    line-height:1.7;

}

.volunteer-section{

    padding:70px 20px;

    background:#050505;

    color:white;

}

.volunteer-section h2{

    text-align:center;

    font-size:38px;

    margin-bottom:50px;

}

.volunteer-grid{

    max-width:1200px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:30px;

}

.volunteer-card{

    background:#151515;

    border:1px solid #333;

    border-radius:15px;

    padding:30px;

    transition:.3s ease;

}

.volunteer-card:hover{

    transform:translateY(-8px);

    border-color:#d61c1c;

    box-shadow:0 0 25px rgba(214,28,28,.35);

}

.volunteer-card h3{

    color:#3b82f6;

    font-size:24px;

}

.volunteer-card p{

    line-height:1.6;

}

.volunteer-card ul{

    padding-left:20px;

}

.volunteer-card li{

    margin-bottom:8px;

}

.volunteer-card.special{

    border-color:#1e4cff;

}

.volunteer-bottom{

    text-align:center;

    padding:70px 20px;

    background:#111;

    color:white;

}

.volunteer-bottom h2{

    font-size:38px;

}

.volunteer-bottom p{

    font-size:20px;

    max-width:700px;

    margin:20px auto 40px;

}

.volunteer-form{

    margin-top:70px;

    padding:80px 20px;

    background:#050505;

    color:white;

    box-shadow:
        0 -10px 30px rgba(214,28,28,.25);

}

.volunteer-form h2{

    text-align:center;

    color:#d61c1c;

    font-size:38px;

}

.volunteer-transition{

    text-align:center;

    padding:50px 20px;

    background:#111;

    color:white;

}

.volunteer-transition h2{

    color:#3b82f6;

    font-size:32px;

}

.volunteer-form{

    padding:80px 20px;

    background:#050505;

    color:white;

    border-top:3px solid #d61c1c;

}

.volunteer-form h2{

    text-align:center;

    color:#d61c1c;

    font-size:40px;

}

.form-intro{

    text-align:center;

    max-width:800px;

    margin:20px auto 50px;

    font-size:18px;

}

.volunteer-application .checkbox-grid input[type="checkbox"]{
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    padding: 0;

    accent-color: #3c78c8;
    cursor: pointer;
}

.volunteer-application{

    max-width:900px;

    margin:auto;

}

.volunteer-application label{

    display:block;

    margin-top:20px;

    margin-bottom:8px;

    font-weight:bold;

}

.volunteer-application input,
.volunteer-application select,
.volunteer-application textarea{
    width: 100%;
    padding: 14px;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #444;
    background: #111;
    color: white;
}

.form-row{

    display:grid;

    grid-template-columns:repeat(2, 1fr);

    gap:30px;

}

.form-row > div{

    width:100%;

}

.checkbox-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 12px 0 30px;
}

.checkbox-grid label:hover{
    transform: translateY(-3px);
    color: #ffffff;
    border-color: #3c78c8;
    background: linear-gradient(135deg, #18212d, #202b39);
    box-shadow: 0 8px 20px rgba(60, 120, 200, 0.18);
}

.checkbox-grid label:has(input:checked){
    color: #ffffff;
    border-color: #4f9cff;
    background: linear-gradient(135deg, #17345a, #1d4f85);
    box-shadow:
        0 0 0 1px rgba(79, 156, 255, 0.3),
        0 8px 22px rgba(40, 110, 200, 0.25);
}

.checkbox-grid label:has(input:focus-visible){
    outline: 3px solid rgba(79, 156, 255, 0.45);
    outline-offset: 3px;
}

.checkbox-grid label{
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    margin: 0;
    padding: 14px 16px;
    box-sizing: border-box;

    color: #e8e8e8;
    font-size: 16px;
    font-weight: 600;

    background: linear-gradient(135deg, #151515, #202020);
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.checkbox-grid input{

    width:auto;

}

.donation-note{

    margin-top:20px;

    color:#aaa;

}

/* Agreement confirmation box */

.agreement-box{
    margin: 35px 0 30px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #151515, #202020);
    border: 1px solid #3c78c8;
    border-left: 5px solid #3c78c8;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.agreement{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0;
    cursor: pointer;
}

.volunteer-application .agreement input[type="checkbox"]{
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin: 0;
    padding: 0;
    accent-color: #3c78c8;
    cursor: pointer;
}

.agreement span{
    max-width: 700px;
    color: #f3f3f3;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
}

/* Agreement box hover effect */

.agreement-box:hover{
    border-color: #5c9bea;
    box-shadow: 0 10px 28px rgba(60, 120, 200, 0.2);
    transform: translateY(-2px);
    transition: 0.25s ease;
}

@media (max-width: 700px){
.agreement-box{
        padding: 20px;
    }
.agreement{
        align-items: flex-start;
    }
.agreement span{
        font-size: 15px;
        text-align: left;
    }
}

@media(max-width:700px){
.form-row{

        grid-template-columns:1fr;

        gap:20px;

    }
}

/* Only affects the First Name and Last Name row */

.name-row{
    column-gap: 50px;
}

.name-row > *{
    min-width: 0;
}

.name-row input{
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px){
.checkbox-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px){
.checkbox-grid{
        grid-template-columns: 1fr;
    }
}

/* Tablet */

/* Phones */

/* Volunteer application section spacing */

.volunteer-form{
    margin-top: 30px;
    padding: 35px 20px 60px;
}

/* Center the logo and heading together */

.application-heading{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 0 auto 20px;
}

/* Application logo only */

.application-heading .application-logo{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(214, 28, 28, 0.3);
}

/* Application heading only */

.application-heading h2{
    margin: 0;
    text-align: left;
    color: #d61c1c;
    font-size: 40px;
}

@media (max-width: 600px){
.volunteer-form{
        margin-top: 20px;
        padding-top: 30px;
    }
.application-heading{
        gap: 14px;
    }
.application-heading .application-logo{
        width: 75px;
        height: 75px;
    }
.application-heading h2{
        font-size: 28px;
    }
}

/* Volunteer hero image */

.volunteer-hero-image {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 80px clamp(24px, 7vw, 120px);
    box-sizing: border-box;

    background-image: url("../img/volunteerhero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    text-align: left;
}

.volunteer-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.94) 0%,
            rgba(0, 0, 0, 0.76) 35%,
            rgba(0, 0, 0, 0.25) 68%,
            rgba(0, 0, 0, 0.35) 100%
        );
}

.volunteer-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
}

.volunteer-hero-image h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1;
    text-shadow:
        0 3px 12px rgba(0, 0, 0, 0.95),
        0 0 20px rgba(214, 28, 28, 0.45);
}

.volunteer-hero-image h2 {
    margin: 0 0 24px;
    color: #4f8cff;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.95);
}

.volunteer-hero-image p {
    max-width: 600px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.75;
    text-shadow: 0 2px 8px #000000;
}

.volunteer-hero-image .timeline-button {
    margin-top: 18px;
    padding: 17px 34px;
    font-size: 1.08rem;
    font-weight: 800;
    border: 1px solid #ff4a50;
    box-shadow: 0 12px 30px rgba(214, 28, 28, 0.4);
}

@media (max-width: 700px) {
    .volunteer-hero-image {
        min-height: 650px;
        align-items: flex-end;
        padding: 80px 22px 45px;
        background-position: 58% center;
        text-align: center;
    }

    .volunteer-hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.18) 0%,
                rgba(0, 0, 0, 0.45) 38%,
                rgba(0, 0, 0, 0.96) 100%
            );
    }

    .volunteer-hero-content {
        max-width: 100%;
    }

    .volunteer-hero-image p {
        font-size: 1rem;
        line-height: 1.6;
    }
}