.Page-Heading{
    margin-top: 0px;
    background-color: var(--scout-beaver-blue);
    padding: clamp(20px, 5vw, 36px) 20px;
}

.Page-Heading h1 {
    color: white;
    text-align: center;
    font-size: clamp(26px, 6vw, 40px);
    margin: 0;
}

/* =============================
   Form Intro
============================= */

.Form-Intro {
    max-width: min(800px, 90vw);
    margin: clamp(24px, 4vw, 40px) auto clamp(16px, 2.5vw, 24px);
    text-align: center;
}

.Form-Intro p {
    font-family: 'Roboto';
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.5;
    margin: 0;
}

/* =============================
   Form Container
============================= */

.Form-Container {
    max-width: min(900px, 90vw);
    margin: 0 auto clamp(24px, 4vw, 40px);
    padding: clamp(16px, 2.5vw, 24px);
    border-radius: 6px;
    background-color: #f2f2f2;
}

/* =============================
   Labels
============================= */

.Form-Container label {
    font-family: 'Roboto';
    font-weight: bold;
    font-size: clamp(16px, 2.2vw, 22px);
    display: block;
    margin-bottom: clamp(4px, 0.8vw, 6px);
}

/* =============================
   Inputs & textarea
============================= */

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: clamp(8px, 1.5vw, 12px);
    /* NOTE: 16px minimum prevents iOS auto-zoom on focus */
    font-size: max(16px, clamp(14px, 1.8vw, 16px));
    font-family: 'Roboto';
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: clamp(10px, 1.8vw, 16px);
    resize: vertical;
    /* Minimum touch target height */
    min-height: 44px;
    /* Prevent weird appearance on iOS */
    -webkit-appearance: none;
    appearance: none;
}

/* =============================
   Submit button
============================= */

input[type="submit"] {
    background-color: var(--scout-purple);
    color: white;
    padding: clamp(8px, 1.5vw, 12px) clamp(14px, 2.5vw, 20px);
    border: none;
    border-radius: 4px;
    font-size: clamp(14px, 1.8vw, 16px);
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

input[type="submit"]:hover {
    background-color: var(--scout-purple-light);
    transform: translateY(-1px);
}

/* =============================
   Page Heading (theme-based)
============================= */

.Page-Heading {
    background-color: var(--page-accent, var(--scout-purple));
}

/* =============================
   Tablet  (≤ 768px)
============================= */

@media (max-width: 768px) {

    .Form-Intro {
        max-width: 95vw;
        margin: 24px auto 16px;
    }

    .Form-Intro p {
        font-size: clamp(16px, 4vw, 20px);
    }

    .Form-Container {
        max-width: 95vw;
        padding: 20px 18px;
    }

    .Form-Container label {
        font-size: clamp(15px, 3.5vw, 18px);
    }
}

/* =============================
   Mobile  (≤ 480px)
============================= */

@media (max-width: 480px) {

    .Form-Intro {
        max-width: 100%;
        padding: 0 16px;
        margin: 20px auto 14px;
    }

    .Form-Intro p {
        font-size: 16px;
    }

    /* Full-bleed form on small screens */
    .Form-Container {
        max-width: 100%;
        margin: 0 0 24px;
        padding: 18px 16px;
        border-radius: 0;       /* edge-to-edge feel on phone */
    }

    .Form-Container label {
        font-size: 16px;
        margin-bottom: 6px;
    }

    input[type="text"],
    input[type="email"],
    select,
    textarea {
        font-size: 16px;        /* iOS zoom prevention */
        padding: 12px;
        margin-bottom: 14px;
        border-radius: 6px;
    }

    textarea {
        min-height: 120px;
    }

    /* Submit button goes full width on phone */
    input[type="submit"] {
        width: 100%;
        font-size: 16px;
        padding: 14px;
        min-height: 50px;
        border-radius: 6px;
    }
}

/* Shown when a visitor arrives from the volunteer "Register Interest" declaration */
.vol-declared {
    max-width: min(900px, 90vw);
    margin: 0 auto 14px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #dcfce7;
    color: #166534;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vol-declared[hidden] { display: none; }
