/* ==========================================================
   ExpertsGuys Soil Moisture Layer Studio
   File: eg-soil-moisture.css
   Version: 2.0.0
========================================================== */

.egsm-wrap{
    width:100%;
    max-width:1100px;
    margin:36px auto;
    padding:0 8px;
    box-sizing:border-box;
    font-family:inherit;
    color:#2b2b2b;
}

.egsm-wrap *,
.egsm-wrap *::before,
.egsm-wrap *::after{
    box-sizing:border-box;
}

/* ==========================================================
   HERO
========================================================== */

.egsm-hero{
    width:100%;
    margin:0 0 20px;
    padding:26px;
    border:2px solid #d8c3a5;
    border-radius:22px;
    background:#f8f4ec;
    box-shadow:0 10px 26px rgba(44,36,29,.06);
}

.egsm-hero > span{
    display:inline-block;
    margin:0 0 12px;
    padding:7px 14px;
    border:1px solid #bfd4c2;
    border-radius:999px;
    background:#edf6ee;
    color:#28543a;
    font-size:12px;
    font-weight:800;
    line-height:1.3;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.egsm-hero h2{
    margin:0 0 10px;
    color:#000;
    font-size:34px;
    font-weight:800;
    line-height:1.2;
}

.egsm-hero p{
    margin:0;
    color:#444;
    font-size:16px;
    line-height:1.75;
}

/* ==========================================================
   PROGRESS BAR
========================================================== */

.egsm-progress{
    width:100%;
    height:10px;
    margin:22px 0 0;
    overflow:hidden;
    border-radius:999px;
    background:#e4ddd2;
}

#egsm-progress-bar{
    width:12.5%;
    height:100%;
    border-radius:999px;
    background:#28543a;
    transition:width .3s ease;
}

.egsm-step-text{
    margin-top:10px;
    color:#333;
    font-size:14px;
    font-weight:800;
}

/* ==========================================================
   FORM
========================================================== */

#egsm-form{
    width:100%;
    margin:0;
    padding:0;
}

.egsm-step{
    display:none;
    width:100%;
    margin:0 0 18px;
    padding:24px;
    border:2px solid #d8c3a5;
    border-radius:18px;
    background:#fff;
    box-shadow:0 8px 20px rgba(44,36,29,.035);
}

.egsm-step.active{
    display:block;
}

.egsm-step h3{
    margin:0 0 18px;
    color:#000;
    font-size:24px;
    font-weight:800;
    line-height:1.3;
}

.egsm-step p{
    margin:0 0 18px;
    color:#444;
    font-size:16px;
    line-height:1.75;
}

.egsm-step ul{
    margin:0;
    padding-left:22px;
}

.egsm-step li{
    margin:0 0 8px;
    color:#444;
    line-height:1.65;
}

/* ==========================================================
   FIELD GRID
========================================================== */

.egsm-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:18px;
    width:100%;
}

.egsm-grid label{
    display:flex;
    flex-direction:column;
    gap:8px;
    min-width:0;
    color:#222;
    font-size:15px;
    font-weight:700;
    line-height:1.45;
}

.egsm-grid select,
.egsm-grid input[type="text"],
.egsm-grid input[type="number"],
.egsm-step textarea{
    width:100%;
    max-width:100%;
    min-height:48px;
    margin:0;
    padding:12px 14px;
    border:1px solid #cbc3b7;
    border-radius:10px;
    background:#fff;
    color:#111;
    font:inherit;
    font-size:16px;
    line-height:1.45;
    box-shadow:none;
    outline:none;
    transition:border-color .2s ease, box-shadow .2s ease;
}

.egsm-grid select:focus,
.egsm-grid input[type="text"]:focus,
.egsm-grid input[type="number"]:focus,
.egsm-step textarea:focus{
    border-color:#4d775e;
    box-shadow:0 0 0 3px rgba(77,119,94,.12);
}

.egsm-step textarea{
    display:block;
    min-height:190px;
    resize:vertical;
}

.egsm-step textarea::placeholder{
    color:#777;
    opacity:1;
}

/* ==========================================================
   RANGE SLIDERS
========================================================== */

.egsm-slider{
    width:100%;
    height:8px;
    margin:10px 0 4px;
    padding:0;
    border:0;
    border-radius:999px;
    background:#ddd7cd;
    accent-color:#28543a;
    cursor:pointer;
}

.egsm-slider::-webkit-slider-thumb{
    width:22px;
    height:22px;
    border:3px solid #fff;
    border-radius:50%;
    background:#28543a;
    box-shadow:0 2px 6px rgba(0,0,0,.2);
    cursor:pointer;
}

.egsm-slider::-moz-range-thumb{
    width:18px;
    height:18px;
    border:3px solid #fff;
    border-radius:50%;
    background:#28543a;
    box-shadow:0 2px 6px rgba(0,0,0,.2);
    cursor:pointer;
}

/* ==========================================================
   CHECKBOXES
========================================================== */

.egsm-checkboxes{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
    gap:12px;
    width:100%;
}

.egsm-check{
    display:flex;
    align-items:center;
    gap:11px;
    min-height:54px;
    margin:0;
    padding:13px 14px;
    border:1px solid #ddd5ca;
    border-radius:12px;
    background:#fff;
    color:#222;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    transition:border-color .2s ease, background .2s ease, transform .2s ease;
}

.egsm-check:hover{
    border-color:#b6cbb9;
    background:#f7faf7;
    transform:translateY(-1px);
}

.egsm-check:has(input:checked){
    border-color:#47745a;
    background:#edf6ee;
}

.egsm-check input[type="checkbox"]{
    width:18px;
    height:18px;
    margin:0;
    flex:0 0 auto;
    accent-color:#28543a;
}

/* ==========================================================
   NAVIGATION
========================================================== */

.egsm-navigation{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    width:100%;
    margin:22px 0 0;
}

.egsm-navigation button{
    min-height:48px;
    margin:0;
    padding:13px 22px;
    border:0;
    border-radius:11px;
    font:inherit;
    font-size:15px;
    font-weight:800;
    line-height:1.2;
    cursor:pointer;
    transition:opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}

.egsm-navigation button:hover{
    opacity:.94;
    transform:translateY(-1px);
}

.egsm-navigation button:focus-visible{
    outline:3px solid rgba(40,84,58,.25);
    outline-offset:2px;
}

.egsm-navigation button:disabled{
    opacity:.6;
    cursor:not-allowed;
    transform:none;
}

#egsm-back{
    background:#ded9d1;
    color:#111;
}

#egsm-next{
    margin-left:auto;
    background:#28543a;
    color:#fff;
}

#egsm-submit{
    display:none;
    margin-left:auto;
    background:#1f2b48;
    color:#fff;
}

/* ==========================================================
   LOADING AND ERROR
========================================================== */

.egsm-loading,
.egsm-error{
    width:100%;
    margin:26px 0 0;
    padding:20px;
    border-radius:14px;
    font-size:16px;
    font-weight:800;
    line-height:1.6;
    text-align:center;
}

.egsm-loading{
    border:1px solid #dec77d;
    background:#fff8dd;
    color:#5b4917;
}

.egsm-error{
    border:1px solid #e7aaaa;
    background:#fff0f0;
    color:#7a2525;
}

/* ==========================================================
   RESULTS WRAPPER
========================================================== */

#egsm-results{
    width:100%;
    margin-top:28px;
}

.egsm-results{
    width:100%;
}

/* ==========================================================
   RESULT CARDS
========================================================== */

.egsm-card{
    width:100%;
    margin:0 0 16px;
    padding:24px;
    border:2px solid #d8c3a5;
    border-radius:18px;
    background:#fff;
    box-shadow:0 8px 22px rgba(43,36,29,.045);
}

.egsm-card h3{
    margin:0 0 16px;
    color:#000;
    font-size:22px;
    font-weight:800;
    line-height:1.3;
}

.egsm-card-body{
    color:#3f3f3f;
    font-size:16px;
    line-height:1.75;
}

.egsm-card-body p{
    margin:0 0 14px;
}

.egsm-card-body p:last-child{
    margin-bottom:0;
}

.egsm-card-body ul{
    margin:0;
    padding-left:22px;
}

.egsm-card-body li{
    margin:0 0 9px;
}

.egsm-score{
    margin:0 0 10px;
    color:#28543a;
    font-size:46px;
    font-weight:900;
    line-height:1;
    letter-spacing:-.02em;
}

/* ==========================================================
   MOISTURE LAYER VISUALIZER
========================================================== */

.egsm-visualizer{
    display:flex;
    flex-direction:column;
    gap:12px;
    width:100%;
}

.egsm-layer{
    width:100%;
    padding:14px;
    border:1px solid #e1d9cc;
    border-radius:13px;
    background:#f8f4ec;
}

.egsm-layer strong{
    display:block;
    margin:0 0 8px;
    color:#111;
    font-size:15px;
    font-weight:800;
}

.egsm-layer-bar{
    width:100%;
    height:14px;
    margin:0 0 8px;
    overflow:hidden;
    border-radius:999px;
    background:#ddd7cd;
}

.egsm-layer-bar span{
    display:block;
    max-width:100%;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#71997b,#28543a);
    transition:width .7s ease;
}

.egsm-layer em{
    display:block;
    color:#4b4b4b;
    font-size:14px;
    font-style:normal;
    line-height:1.5;
}

/* ==========================================================
   FORECAST AND WEEKLY PLAN
========================================================== */

.egsm-mini-table{
    display:flex;
    flex-direction:column;
    gap:10px;
    width:100%;
}

.egsm-mini-row{
    display:grid;
    grid-template-columns:minmax(120px,160px) 1fr;
    gap:16px;
    align-items:start;
    width:100%;
    padding:14px;
    border:1px solid #e5ddd1;
    border-radius:11px;
    background:#f8f4ec;
}

.egsm-mini-row strong{
    color:#1f2b48;
    font-size:15px;
    font-weight:800;
}

.egsm-mini-row span{
    color:#444;
    line-height:1.65;
}

/* ==========================================================
   REPORT ACTIONS
========================================================== */

.egsm-report-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    width:100%;
    margin:0 0 18px;
}

.egsm-report-actions button{
    min-height:46px;
    padding:12px 16px;
    border:0;
    border-radius:11px;
    font:inherit;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    transition:opacity .18s ease, transform .18s ease;
}

.egsm-report-actions button:hover{
    opacity:.93;
    transform:translateY(-1px);
}

.egsm-report-actions button:nth-child(1){
    background:#28543a;
    color:#fff;
}

.egsm-report-actions button:nth-child(2){
    background:#1f2b48;
    color:#fff;
}

.egsm-report-actions button:nth-child(3){
    background:#ded9d1;
    color:#111;
}

/* ==========================================================
   SAVED REPORTS
========================================================== */

#egsm-saved-reports{
    width:100%;
}

.egsm-saved-item{
    display:grid;
    grid-template-columns:minmax(150px,1fr) auto;
    gap:14px;
    align-items:center;
    width:100%;
    margin:0 0 10px;
    padding:14px;
    border:1px solid #e2dbcf;
    border-radius:11px;
    background:#f8f4ec;
}

.egsm-saved-item strong{
    min-width:0;
    color:#111;
    overflow-wrap:anywhere;
}

.egsm-saved-item span{
    color:#555;
    font-size:14px;
    text-align:right;
}

/* ==========================================================
   LOCATION LINK
========================================================== */

.egsm-map-link{
    display:inline-flex;
    align-items:center;
    min-height:44px;
    margin-top:4px;
    padding:10px 14px;
    border-radius:9px;
    background:#edf6ee;
    color:#245137;
    font-weight:800;
    text-decoration:none;
}

.egsm-map-link:hover{
    background:#e0efe2;
    color:#183a27;
    text-decoration:none;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width:900px){
    .egsm-wrap{
        padding:0 7px;
    }

    .egsm-hero h2{
        font-size:30px;
    }

    .egsm-step,
    .egsm-card{
        padding:21px;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:768px){
    .egsm-wrap{
        margin:22px auto;
        padding:0 4px;
    }

    .egsm-hero{
        padding:18px 14px;
        border-radius:16px;
    }

    .egsm-hero > span{
        font-size:11px;
    }

    .egsm-hero h2{
        font-size:27px;
    }

    .egsm-hero p{
        font-size:15px;
    }

    .egsm-step,
    .egsm-card{
        padding:16px 12px;
        border-radius:15px;
    }

    .egsm-step h3{
        font-size:21px;
    }

    .egsm-card h3{
        font-size:20px;
    }

    .egsm-grid{
        grid-template-columns:1fr;
        gap:14px;
    }

    .egsm-checkboxes{
        grid-template-columns:1fr;
    }

    .egsm-navigation{
        flex-direction:column;
        align-items:stretch;
    }

    .egsm-navigation button,
    #egsm-next,
    #egsm-submit{
        width:100%;
        margin-left:0;
    }

    .egsm-report-actions{
        flex-direction:column;
    }

    .egsm-report-actions button{
        width:100%;
    }

    .egsm-mini-row{
        grid-template-columns:1fr;
        gap:6px;
    }

    .egsm-saved-item{
        grid-template-columns:1fr;
        gap:6px;
    }

    .egsm-saved-item span{
        text-align:left;
    }

    .egsm-score{
        font-size:38px;
    }
}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width:420px){
    .egsm-wrap{
        padding:0 2px;
    }

    .egsm-hero{
        padding:16px 11px;
    }

    .egsm-step,
    .egsm-card{
        padding:14px 10px;
    }

    .egsm-hero h2{
        font-size:24px;
    }

    .egsm-grid select,
    .egsm-grid input[type="text"],
    .egsm-grid input[type="number"],
    .egsm-step textarea{
        font-size:16px;
    }
}

/* ==========================================================
   PRINT
========================================================== */

@media print{
    .egsm-hero,
    #egsm-form,
    .egsm-report-actions,
    #egsm-saved-reports,
    .entry-newsletter,
    .sidebar-wrap,
    .e-shared-sec,
    .l-shared-sec-outer,
    header,
    footer{
        display:none !important;
    }

    .egsm-wrap{
        width:100%;
        max-width:none;
        margin:0;
        padding:0;
    }

    #egsm-results{
        margin:0;
    }

    .egsm-card{
        break-inside:avoid;
        border:1px solid #999;
        box-shadow:none;
    }

    .egsm-layer-bar,
    .egsm-layer-bar span{
        print-color-adjust:exact;
        -webkit-print-color-adjust:exact;
    }
}