/* =========================================
GLOBAL STYLES
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#f1f5f9;
    font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
    color:#1e293b;
}

/* =========================================
PAGE WRAPPER
========================================= */

.page-wrapper{
    width:100%;
    min-height:100vh;
    display:block;
    align-items:center;
    justify-content:center;
    padding:40px 20px;
}

/* =========================================
FORM CONTAINER
========================================= */

.form-container{
    width:100%;
    max-width:720px;
    background:#ffffff;
    border-radius:20px;
    border:1px solid #e2e8f0;
    box-shadow:0 10px 30px rgba(15,23,42,0.08);
    overflow:hidden;
    margin:40px auto;
}
/* =========================================
HEADER
========================================= */

.form-header{
    padding:40px 40px 30px 40px;
    border-bottom:1px solid #e2e8f0;
    background:linear-gradient(to right,#0f172a,#1e293b);
    border-radius:20px 20px 0 0;
}

.form-header h1{
    font-size:30px;
    font-weight:700;
    color:#ffffff;
    letter-spacing:-0.5px;
}

.form-header p{
    margin-top:12px;
    font-size:14px;
    line-height:1.7;
    color:#cbd5e1;
    max-width:540px;
}

/* =========================================
FORM
========================================= */

.grievance-form{
    padding:40px;
    display:flex;
    flex-direction:column;
    gap:24px;
}

/* =========================================
INPUT GROUP
========================================= */

.input-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.input-group label{
    font-size:14px;
    font-weight:600;
    color:#334155;
}

/* =========================================
ROW
========================================= */

.form-row{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.form-row .input-group{
    flex:1;
    min-width:260px;
}

/* =========================================
INPUTS
========================================= */

.input-field,
.textarea-field{
    width:100%;
    padding:14px 16px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    background:#ffffff;
    font-size:14px;
    outline:none;
    transition:all .25s ease;
    font-family:inherit;
}

/* =========================================
DATE INPUT FIX
========================================= */

/* =========================================
DATE INPUT FIX
========================================= */

.date-input{
    min-height:52px;
    cursor:pointer;
}

/* Keep native browser calendar behavior */
.date-input::-webkit-calendar-picker-indicator{
    cursor:pointer;
    opacity:1;
}
/* =========================================
TEXTAREA
========================================= */

.textarea-field{
    line-height:1.6;
    resize:vertical;
}

.input-field:focus,
.textarea-field:focus{
    border-color:#0f172a;
    box-shadow:0 0 0 4px rgba(15,23,42,0.08);
}

/* =========================================
DECLARATION
========================================= */

.declaration-box{
    display:flex;
    align-items:flex-start;
    gap:12px;
}

.declaration-box input{
    width:18px;
    height:18px;
    margin-top:2px;
    cursor:pointer;
}

.declaration-box label{
    font-size:14px;
    line-height:1.6;
    color:#475569;
    cursor:pointer;
}

/* =========================================
BUTTONS
========================================= */

.button-group{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
    margin-top:10px;
}

.back-btn{
    background:#f8fafc;
    border:1px solid #cbd5e1;
    color:#334155;
    padding:12px 18px;
    border-radius:10px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:all .25s ease;
}

.back-btn:hover{
    background:#e2e8f0;
}

.submit-btn{
    background:#0f172a;
    color:#ffffff;
    border:none;
    padding:14px 32px;
    border-radius:10px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:all .25s ease;
    box-shadow:0 4px 14px rgba(15,23,42,0.25);
}

.submit-btn:hover{
    background:#1e293b;
}

/* =========================================
RESPONSIVE
========================================= */

@media(max-width:768px){

    .form-header{
        padding:30px 25px;
    }

    .grievance-form{
        padding:30px 25px;
    }

    .button-group{
        flex-direction:column;
        align-items:stretch;
    }

    .back-btn,
    .submit-btn{
        width:100%;
    }

}