/* public/css/request.css */

:root{
    --primary:#2e7d32;
    --primary-dark:#256628;
    --primary-light:#eef8f0;
    --border:#e4e8e4;
    --text:#374151;
    --muted:#6b7280;
    --white:#ffffff;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:linear-gradient(
        180deg,
        #eef8f0 0%,
        #f8fbf8 40%,
        #ffffff 100%
    );
    font-family:'Segoe UI',sans-serif;
    color:var(--text);
    min-height:100vh;
}

/* Navbar */

.navbar{
    border-bottom:1px solid var(--border);
    background:rgba(255,255,255,.95)!important;
    backdrop-filter:blur(10px);
}

.navbar-brand{
    color:var(--primary)!important;
    font-size:1.1rem;
}

/* Section */

.request-section{
    padding:50px 0;
}

/* Main Card */

.request-card{
    max-width:1100px;
    margin:auto;
    background:var(--white);
    border-radius:24px;
    padding:40px;
    box-shadow:
    0 10px 30px rgba(0,0,0,.05);
    border:1px solid #edf0ed;
}

.page-title{
    font-size:2.3rem;
    font-weight:700;
    color:#1f2937;
}

/* Section Headings */

h4{
    font-size:1.1rem;
    font-weight:700;
    color:var(--primary);
    margin-bottom:20px;
    padding-bottom:10px;
    border-bottom:2px solid #edf3ee;
}

/* Inputs */

.form-control{
    border-radius:12px;
    border:1px solid var(--border);
    padding:12px 14px;
    min-height:50px;
}

.form-control:focus{
    border-color:var(--primary);
    box-shadow:
    0 0 0 4px rgba(46,125,50,.10);
}

textarea.form-control{
    min-height:120px;
}

.form-label{
    font-weight:600;
    margin-bottom:8px;
}

/* Plant Selection */

.plant-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fill,minmax(170px,1fr));
    gap:12px;
}

.plant-card{
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px;
    border:1px solid var(--border);
    border-radius:12px;
    background:#fafcfa;
    cursor:pointer;
    transition:.25s;
}

.plant-card:hover{
    border-color:var(--primary);
    background:var(--primary-light);
}

.plant-card input{
    transform:scale(1.15);
}

.plant-card span{
    font-weight:500;
}

/* Map */

#map{
    height:400px;
    width:100%;
    border-radius:16px;
    overflow:hidden;
    border:2px solid #e8efe8;
}

/* Preview Image */

#imagePreview{
    margin-top:15px;
    width:100%;
    max-width:350px;
    border-radius:14px;
    border:1px solid var(--border);
    box-shadow:
    0 8px 20px rgba(0,0,0,.05);
}

/* Checkbox */

.form-check{
    background:#f8faf8;
    border:1px solid #edf1ed;
    padding:15px 15px 15px 40px;
    border-radius:12px;
}

.form-check-input{
    cursor:pointer;
}

.form-check-label{
    cursor:pointer;
}

/* Submit Button */

.btn-success{
    background:var(--primary);
    border:none;
    min-height:55px;
    font-weight:600;
    font-size:1rem;
    border-radius:14px;
    transition:.25s;
}

.btn-success:hover{
    background:var(--primary-dark);
    transform:translateY(-2px);
}

/* Home Button */

.btn-outline-success{
    border-color:var(--primary);
    color:var(--primary);
}

.btn-outline-success:hover{
    background:var(--primary);
    border-color:var(--primary);
}

/* Optional Box */

#otherPlantWrapper{
    background:#f8fbf8;
    padding:15px;
    border-radius:12px;
    border:1px solid #edf2ed;
}

/* Readonly Coordinates */

input[readonly]{
    background:#f8faf8;
}

/* Mobile */

@media(max-width:768px){

    .request-section{
        padding:20px 0;
    }

    .request-card{
        padding:20px;
        border-radius:18px;
    }

    .page-title{
        font-size:1.8rem;
    }

    #map{
        height:300px;
    }

    .plant-grid{
        grid-template-columns:
        repeat(2,1fr);
    }

}

@media(max-width:480px){

    .plant-grid{
        grid-template-columns:1fr;
    }

    .page-title{
        font-size:1.6rem;
    }

}

.pledge-box{
    background:#f4faf4;
    border:1px solid #d7e9d7;
    border-radius:15px;
    padding:20px;
}

.pledge-box h5{
    color:#2e7d32;
    font-weight:700;
    margin-bottom:10px;
}

.pledge-box label{
    line-height:1.8;
}