/* --- VARIABLES --- */
:root {
    --primary: #10b981;       /* Agri Green (for accents) */
    --bg-slate: #f8fafc;      /* Background */
    --surface: #ffffff;       /* Card White */
    --text-main: #0f172a;     /* Dark Black */
    --text-muted: #64748b;    /* Grey */
    --border: #e2e8f0;
    --radius: 20px;
}

body {
    background-color: var(--bg-slate);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
}

/* --- LAYOUT WRAPPER --- */
.harvest-wrapper {
    max-width: 650px;
    margin: 60px auto;
    padding: 0 20px;
}

/* --- THE CARD --- */
.harvest-card {
    background: var(--surface);
    border-radius: var(--radius);
    /* Soft double-layer shadow for depth */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    padding: 40px;
    border: 1px solid white;
}

/* --- HEADER SECTION --- */
.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: #ecfdf5; /* Light Green */
    color: #059669;      /* Dark Green */
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 15px;
}

.harvest-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.harvest-subtitle {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- INPUTS --- */
.form-group {
    margin-bottom: 24px;
}

.filter-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.modern-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    background-color: #f1f5f9; /* Light Gray Field */
    border: 2px solid transparent;
    border-radius: 12px;
    color: #0f172a;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Focus Effect: White bg + Green Border */
.modern-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.readonly-input {
    background-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* --- GRID LAYOUT --- */
.row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- NEW ATTRACTIVE BUTTON --- */
.form-actions {
    margin-top: 35px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* --- OPTION 1: DARK MIDNIGHT (Recommended - High Contrast) --- */
    background: #0f172a;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.2);

    /* --- OPTION 2: VIBRANT GRADIENT (Uncomment to use) --- */
    /* background: linear-gradient(135deg, #10b981 0%, #047857 100%); */
    /* color: white; */

    /* --- OPTION 3: DEEP BLUE (Uncomment to use) --- */
    /* background: #2563eb; */
    /* color: white; */
}

.btn-submit:hover {
    transform: translateY(-3px);
    /* Make shadow bigger on hover */
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
    background-color: #1e293b; /* Slightly lighter black for hover */
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* --- BACK LINK --- */
.back-wrapper {
    text-align: center;
    margin-top: 25px;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}
.back-link:hover {
    color: var(--text-main);
    text-decoration: underline;
}

/* --- ERROR BOX --- */
.error-banner {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

/* Mobile Fix */
@media (max-width: 600px) {
    .row-group { grid-template-columns: 1fr; }
    .harvest-card { padding: 25px; }
}

/* --- VALIDATION ERROR STYLES --- */

/* Turns the input border Red */
.input-error {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

/* Red Glow on focus */
.input-error:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15) !important;
}

/* Tiny text message under the input */
.inline-err-msg {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}