/* =========================================================
   ASSOCIATE WITH US
   FOREST FRIEND APPLICATION
   ========================================================= */

:root {
    --forest-dark: #145b2d;
    --forest-green: #237c3b;
    --forest-main: #2d8a3f;
    --forest-light: #eef8ef;
    --forest-border: #d4dfd3;
    --text: #23352a;
    --muted: #707970;
    --white: #ffffff;
}


/* =========================================================
   MAIN BACKGROUND
   ========================================================= */

.volunteer-form-section {

    min-height: 100vh;

    padding: 48px 20px 70px;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(110, 180, 120, 0.12),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 70%,
            rgba(100, 180, 110, 0.10),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f7fcf7 0%,
            #eef8f0 50%,
            #f8fcf8 100%
        );
}


/* =========================================================
   CONTAINER
   ========================================================= */

.volunteer-form-section .container {

    width: min(100%, 980px);

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.form-header {

    text-align: center;

    margin-bottom: 32px;
}


.forest-friend-icon {

    width: 58px;
    height: 58px;

    margin: 0 auto 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #dff1df;

    color: var(--forest-green);

    font-size: 25px;
}


.form-header h2 {

    margin: 0;

    color: #145b2d;

    font-size: clamp(30px, 4vw, 40px);

    font-weight: 750;

    letter-spacing: 1px;
}


.form-main-title {

    margin: 8px 0 14px;

    color: #59645c;

    font-size: 15px;
}


.form-main-title strong {

    color: #536056;

    font-weight: 600;
}


/* HEADER DECORATION */

.header-decoration {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    margin-top: 12px;
}


.header-decoration span {

    width: 88px;

    height: 2px;

    background: #a9bea9;
}


.header-decoration i {

    color: var(--forest-green);

    font-size: 16px;
}


/* =========================================================
   FORM CARD
   ========================================================= */

.volunteer-form {

    background: #ffffff;

    border: 1px solid #dfe8df;

    border-radius: 12px;

    box-shadow:
        0 8px 25px rgba(20, 75, 35, 0.12);

    overflow: hidden;

    padding: 0;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.form-section-title {

    display: flex;

    align-items: center;

    min-height: 58px;

    padding: 0 26px;

    margin: 0;

    border-bottom: 1px solid #e4e9e4;
}


.form-section-title h3 {

        margin: 0;
    color: #124724;
    font-size: 21px;
    font-weight: 900;
}


/* =========================================================
   FORM CONTENT
   ========================================================= */

.form-section-title + .form-row,
.form-section-title + .form-group,
.form-section-title + .option-grid,
.form-section-title + .range-grid,
.form-section-title + .contribution-grid,
.form-section-title + .pledge-box {

    margin-top: 0;
}


.form-group,
.form-row,
.option-grid,
.range-grid,
.contribution-grid,
.pledge-box,
.pledge-confirm,
.pledge-details,
.submit-btn {

    margin-left: 26px;

    margin-right: 26px;
}


/* =========================================================
   FORM ROW
   ========================================================= */

.form-row {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;

    margin-top: 22px;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.form-group {

    margin-top: 20px;

    margin-bottom: 20px;
}


.form-row .form-group {

    margin-top: 0;
}


.form-group > label {

    display: block;

    margin-bottom: 8px;

    color: #26392c;

    font-size: 11px;

    font-weight: 700;

    text-transform: none;

    letter-spacing: 0.3px;
}


.required {

    color: #27783b;
}


/* =========================================================
   INPUTS
   ========================================================= */

.volunteer-form input[type="text"],
.volunteer-form input[type="tel"],
.volunteer-form input[type="email"],
.volunteer-form input[type="date"],
.volunteer-form textarea {

    width: 100%;

    box-sizing: border-box;

    padding: 12px 14px;

    border: 1px solid #145b2dad;

    border-radius: 6px;

    background: #ffffff;

    color: #26352b;

    font-family: inherit;

    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.volunteer-form input:focus,
.volunteer-form textarea:focus {

    border-color: #5b9865;

    box-shadow:
        0 0 0 3px rgba(45, 138, 63, 0.08);
}


.volunteer-form textarea {

    min-height: 92px;

    resize: vertical;
}


.volunteer-form input::placeholder,
.volunteer-form textarea::placeholder {

    color: #a0aaa2;
}


/* =========================================================
   ORGANISATION TYPE
   ========================================================= */

.option-grid {

    display: grid;

    grid-template-columns:
        repeat(8, minmax(0, 1fr));

    gap: 8px;

    margin-top: 10px;
}


.option-card {

    min-height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 8px 9px;

    border: 1px solid #d8dfd8;

    border-radius: 6px;

    background: #ffffff;

    cursor: pointer;

    color: #083718;

    font-size: 12px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


.option-card input {

    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.option-card i {

    color: #718078;

    font-size: 14px;
}


.option-card:has(input:checked) {

    border-color: #6d9f73;

    background: #f5faf5;

    color: #245d30;
}


.option-card:has(input:checked) i {

    color: #2d7c3d;
}


.other-help {

    margin: 10px 0 0 26px;

    color: #68736b;

    font-size: 11px;
}


.other-input {

    margin-top: 8px !important;
}


/* =========================================================
   FOREST RANGE
   ========================================================= */

.range-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;

    margin-top: 10px;
}


.range-card {

    position: relative;

    min-height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border: 1px solid #a9bba8;

    border-radius: 6px;

    background: #ffffff;

    color: #3c443e;

    font-size: 13px;

    cursor: pointer;
}


.range-card input {

    position: absolute;

    opacity: 0;

}


.range-card i {

    color: #4d8a4e;

    font-size: 13px;
}


.range-card:has(input:checked) {

    background: #f1f8f1;

    border-color: #4b8b54;

    box-shadow:
        inset 0 0 0 1px #4b8b54;
}


/* =========================================================
   ALLOT PATCH
   ========================================================= */

.allot-option {

    display: flex;

    align-items: center;

    gap: 9px;

    color: #4d554e;

    font-size: 12px;

    cursor: pointer;
}


.allot-option input {

    width: 17px;
    height: 17px;

    accent-color: #398346;
}


/* =========================================================
   CONTRIBUTION
   ========================================================= */

.contribution-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-top: 22px;

    margin-bottom: 25px;
}


.contribution-card {

    min-height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border: 1px solid #b5c4b3;

    border-radius: 6px;

    background: #ffffff;

    color: #364139;

    font-size: 13px;

    cursor: pointer;
}


.contribution-card input {

    position: absolute;

    opacity: 0;

}


.contribution-card i {

    color: #668e68;

    font-size: 16px;
}


.contribution-card:has(input:checked) {

    background: #f2f9f2;

    border-color: #568c5c;
}


.contribution-card:has(input:checked) i {

    color: #277638;
}


.contribution-wide {

    grid-column: 1 / -1;
}


/* =========================================================
   PLEDGE
   ========================================================= */

.pledge-box {

    display: flex;

    align-items: center;

    gap: 20px;

    margin-top: 20px;

    margin-bottom: 15px;

    padding: 17px 20px;

    border: 1px solid #d2dfd1;

    border-radius: 7px;

    background: #f4f8f2;
}


.pledge-icon {

    flex: 0 0 38px;

    color: #56894e;

    font-size: 26px;

    text-align: center;
}


.pledge-box p {

    margin: 0;

    color: #074216;

    font-size: 12px;

    line-height: 1.7;
}


.pledge-confirm {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 10px;

    margin-bottom: 15px;

    color: #555e57;

    font-size: 12px;
}


.pledge-confirm input {

    width: 16px;

    height: 16px;

    accent-color: #3d8646;
}


/* =========================================================
   DATE + PLACE
   ========================================================= */

.pledge-details {

    margin-top: 0;
}


.pledge-details .form-group {

    margin-top: 0;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.submit-btn {

    width: calc(100% - 52px);

    min-height: 44px;

    margin-top: 10px;

    margin-bottom: 25px;

    border: none;

    border-radius: 6px;

    background: linear-gradient(
        135deg,
        #237c38,
        #4b9b32
    );

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 5px 12px rgba(35, 124, 59, 0.18);

    transition: 0.2s ease;
}


.submit-btn i {

    margin-right: 8px;
}


.submit-btn:hover {

    transform: translateY(-1px);

    background: linear-gradient(
        135deg,
        #1d6b30,
        #438d2c
    );
}


/* =========================================================
   MESSAGES
   ========================================================= */

.volunteer-message {

    margin-bottom: 20px;

    padding: 12px 15px;

    border-radius: 6px;

    font-size: 13px;
}


.volunteer-message.success {

    background: #eaf7eb;

    color: #216a31;

    border: 1px solid #c5e2c8;
}


.volunteer-message.error {

    background: #fff1f1;

    color: #a42d2d;

    border: 1px solid #efc7c7;
}


/* =========================================================
   DISABLED
   ========================================================= */

.volunteer-form input:disabled {

    background: #f0f3f0;

    color: #999;

    cursor: not-allowed;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .option-grid {

        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .volunteer-form-section {

        padding: 35px 12px 55px;
    }


    .form-header h2 {

        font-size: 30px;
    }


    .form-main-title {

        font-size: 14px;

        line-height: 1.5;
    }


    .header-decoration span {

        width: 60px;
    }


    .form-row {

        grid-template-columns: 1fr;

        gap: 0;
    }


    .form-section-title {

        min-height: 55px;

        padding: 0 18px;
    }


    .form-section-title h3 {

        font-size: 16px;
    }


    .form-group,
    .form-row,
    .option-grid,
    .range-grid,
    .contribution-grid,
    .pledge-box,
    .pledge-confirm,
    .pledge-details {

        margin-left: 18px;

        margin-right: 18px;
    }


    .option-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .range-grid {

        grid-template-columns: 1fr;
    }


    .contribution-grid {

        grid-template-columns: 1fr;
    }


    .contribution-wide {

        grid-column: auto;
    }


    .pledge-box {

        align-items: flex-start;

        gap: 12px;

        padding: 15px;
    }


    .pledge-box p {

        font-size: 11px;

        line-height: 1.6;
    }


    .other-help {

        margin-left: 18px;
    }


    .submit-btn {

        width: calc(100% - 36px);

        margin-left: 18px;

        margin-right: 18px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .volunteer-form-section {

        padding-left: 8px;

        padding-right: 8px;
    }


    .form-header h2 {

        font-size: 27px;
    }


    .option-grid {

        grid-template-columns: 1fr 1fr;

        gap: 6px;
    }


    .option-card {

        font-size: 11px;

        padding: 7px 5px;
    }

}


/* =========================================================
   FINAL ALIGNMENT + SELECTED OPTION STYLE
   ========================================================= */

/* ---------- FORM CONTENT ALIGNMENT ---------- */

.volunteer-form-section .container {
    width: min(100%, 980px);
    margin: 0 auto;
}

.volunteer-form {
    width: 100%;
    box-sizing: border-box;
}

/* Keep all form content aligned */
.form-section-title {
    padding-left: 32px;
    padding-right: 32px;
}

.form-row,
.form-group,
.option-grid,
.range-grid,
.contribution-grid,
.pledge-box,
.pledge-confirm,
.pledge-details {
    margin-left: 32px;
    margin-right: 32px;
}

/* ---------- NAME + ORGANISATION ---------- */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 20px;
    margin-bottom: 0;
}

.form-row .form-group {
    margin-top: 0;
    margin-bottom: 18px;
}

.form-group {
    margin-top: 16px;
    margin-bottom: 18px;
}

.form-group > label {
    margin-bottom: 9px;
}


/* ---------- INPUT ALIGNMENT ---------- */

.volunteer-form input[type="text"],
.volunteer-form input[type="tel"],
.volunteer-form input[type="email"],
.volunteer-form input[type="date"],
.volunteer-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
}


/* =========================================================
   ORGANISATION TYPE
   SELECTED = GREEN BACKGROUND + WHITE TEXT
   ========================================================= */

.option-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.option-card {
    position: relative;

    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 8px 8px;

    border: 1px solid #c8d5c8;
    border-radius: 7px;

    background: #ffffff;

    color: #06230e;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* SELECTED */
.option-card:has(input:checked) {
    background: #074216;
    border-color: #237c3b;
    color: #ffffff;
}

.option-card:has(input:checked) i {
    color: #ffffff;
}

.option-card i {
    color: #607166;
    font-size: 14px;
}


/* =========================================================
   PREFERRED FOREST / PLANTATION
   ========================================================= */

.range-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

    margin-top: 12px;
}

.range-card {
    position: relative;

    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 8px 12px;

    border: 1px solid #aebfac;
    border-radius: 7px;

    background: #ffffff;

    color: #3b453d;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.range-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.range-card i {
    color: #156c1b;
    font-size: 13px;
}

/* SELECTED */
.range-card:has(input:checked) {
    background: #074216;
    border-color: #237c3b;
    color: #ffffff;
    box-shadow: none;
}

.range-card:has(input:checked) i {
    color: #ffffff;
}


/* =========================================================
   CONTRIBUTION OPTIONS
   ========================================================= */

.contribution-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-top: 18px;
}

.contribution-card {
    position: relative;

    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 9px 14px;

    border: 1px solid #b7c8b6;
    border-radius: 7px;

    background: #ffffff;

    color: #3d4740;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.contribution-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contribution-card i {
    color: #1c713f;
    font-size: 16px;
}

/* SELECTED */
.contribution-card:has(input:checked) {
    background: #074216;
    border-color: #237c3b;
    color: #ffffff;
}

.contribution-card:has(input:checked) i {
    color: #ffffff;
}


/* =========================================================
   PREFERRED PATCH
   ========================================================= */

.allot-option {
    margin-top: 5px;
}


/* =========================================================
   PLEDGE ALIGNMENT
   ========================================================= */

.pledge-box {
    margin-top: 18px;
    background: #0f542b1c;
    border: 1px solid #063f0c61;
}

.pledge-confirm {
    margin-top: 12px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .option-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}


@media (max-width: 650px) {

    .form-section-title {
        padding-left: 20px;
        padding-right: 20px;
    }

    .form-row,
    .form-group,
    .option-grid,
    .range-grid,
    .contribution-grid,
    .pledge-box,
    .pledge-confirm,
    .pledge-details {
        margin-left: 20px;
        margin-right: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .option-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .range-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contribution-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 420px) {

    .volunteer-form-section {
        padding-left: 8px;
        padding-right: 8px;
    }

    .form-section-title {
        padding-left: 16px;
        padding-right: 16px;
    }

    .form-row,
    .form-group,
    .option-grid,
    .range-grid,
    .contribution-grid,
    .pledge-box,
    .pledge-confirm,
    .pledge-details {
        margin-left: 16px;
        margin-right: 16px;
    }

    .option-grid {
        grid-template-columns: 1fr 1fr;
    }

    .range-grid {
        grid-template-columns: 1fr;
    }

}