body {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* ===========================
   HEADER / MENU / REPORT
=========================== */
.header,
.menu,
.report {
    flex-shrink: 0;
}
/* =========================
   TITLE
========================= */
.menu_item{
    margin: 10px;
    color: #f80707;
    text-shadow: 1px 1px 1px #000;
}

.menu_item h1{
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    text-align: left;
}
/* ===========================
   REPORT TITLE
=========================== */
.report {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    font-size: 20px;
    font-weight: 600;
    color: #ff0404;
    text-shadow: 1px 1px 1px #000;
}

/* ===========================
   FORM ROW (SCROLLABLE)
=========================== */
.formrow {
    height: calc(100vh - 180px);  /* Desktop */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    -webkit-overflow-scrolling: touch;
}

/* ===========================
   FORM DESIGN
=========================== */
.form {
    max-width: 650px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 25px 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ===========================
   FORM FIELDS
=========================== */
.details {
    display: flex;
    flex-direction: column;
    gap: 12px; /* spacing between fields */
}

/* LABEL */
.details label {
    margin-bottom: 4px;
    font-weight: 600;
    color: #333;
}

/* NORMAL INPUT / SELECT (Desktop) */
.details input:not(.dropdown_search):not(.date_input),
.details select:not(.dropdown_search):not(.date_input) {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fcfcfc;
    width: 80%;
    height: 48px;
    box-sizing: border-box;
}

/* DATE INPUT (Desktop) */
.details .date_input {
    padding: 4px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fcfcfc;
    width: 30%;
    height: 48px;
    box-sizing: border-box;
}

/* DROPDOWN SEARCH (Desktop) */
.details .dropdown_search {
    padding: 14px 18px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #fcfcfc;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
}

/* FOCUS EFFECTS */
.details input:focus,
.details select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 6px rgba(0,123,255,.3);
}

/* ===========================
   BUTTON
=========================== */
.legal_button {
    margin-top: 20px;
}
.button {
    margin-top: 20px;
}

.newlegalsubmit {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: #007bff;
    color: #fff;
    transition: background 0.3s;
}
.newsubmit {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: #007bff;
    color: #fff;
    transition: background 0.3s;
}

.newlegalsubmit:hover {
    background: #0056b3;
}
.newsubmit:hover {
    background: #0056b3;
}

textarea {
    width: 100%;
    height: 120px;
    resize: none;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}


/* ===========================
   MOBILE RESPONSIVE
=========================== */
@media (max-width: 768px) {

    /* Body scroll handled by formrow only */
    html, body {
        overflow: hidden;
        height: 100%;
    }

    /* Form row scrollable */
    .formrow {
        height: calc(100vh - 140px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Form padding for sticky button */
    .form {
        padding-bottom: 140px; /* button জন্য space */
    }

    /* Sticky button at bottom */
    .legal_button {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding: 12px 15px;
    border-top: 1px solid #ddd;
    z-index: 50;

    display: flex;
    flex-direction: column;
    gap: 10px; /* 👈 দুই বাটনের মাঝখানে ফাঁকা */
}

    /* Submit button full width */
    .newlegalsubmit {
        width: 100%;
    }

    /* Inputs full width */
    .details input:not(.dropdown_search),
    .details select:not(.dropdown_search),
    .details .date_input,
    .details .dropdown_search {
        width: 100%;
    }

    /* Date input height adjust for mobile */
    .details .date_input {
        height: 48px;
    }
}