﻿/* --------------------------------------------
   Reset
----------------------------------------------- */
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form,
fieldset, legend, input, textarea, p, blockquote, th, td {
    margin: 0;
}

table {
    border-collapse: collapse;
}

fieldset, img {
    border: 0;
}

body {
    font-family: Calibri, Arial, Helvetica, sans-serif;
    background: #fffde8;
}

/* --------------------------------------------
   Banner styles
----------------------------------------------- */
.banner1 {
    font-size: 12pt;
    color: #fff;
    background-color: #2D3D79;
    border-top: 4px solid #ff0800;
    border-bottom: 4px solid #ff0800;
    text-align: center;
    padding: 8px 18px;
    margin-bottom: 20px;
}

.banner2 {
    font-size: 10pt;
    color: #2D3D79;
    background-color: #E3E1BA;
    padding: 6px 18px;
    margin-top: 40px;
}

/* --------------------------------------------
   Main Panel container
----------------------------------------------- */

.prr_panel {
    background: #fffde8;
    border: 1px solid #e0dcb3;
    border-radius: 20px;
    padding: 20px 25px 30px;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 6px 6px 6px #999;
}

/* --------------------------------------------
   Instruction text
----------------------------------------------- */
.sp_txt {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.sp_heading {
    font-weight: 700;
}

/* --------------------------------------------
   Divider
----------------------------------------------- */
.section-divider {
    border: none;
    border-top: 1px solid #c9c9a0;
    margin: 18px 0;
}

/* --------------------------------------------
   Two-column layout
----------------------------------------------- */
.two-col {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.left-col, .right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------
   Section rows (titles + content)
----------------------------------------------- */
.section-row {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 14px;
    row-gap: 6px;
    align-items: start;
    margin-bottom: 18px;
}

.section-title {
    font-weight: 700;
    font-size: 14px;
    text-align: left;
    white-space: pre-line;
}

/* --------------------------------------------
   Requestor Information grid
----------------------------------------------- */
.left-col .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px 10px;
    align-items: start;
}

/* --------------------------------------------
   Input + validation wrapper
----------------------------------------------- */
.input-wrap {
    display: grid;
    grid-template-columns: 160px 1fr;
    column-gap: 10px;
    align-items: center;
}

.form-grid input[type="text"],
.form-grid select,
.request-table input[type="text"] {
    height: 28px;
    padding: 4px 6px;
    font-size: 14px;
    border: 2px solid #333;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #000;
}

.required {
    color: red;
    margin-left: 2px;
    font-weight: bold;
}

.dynamic-required {
    display: none;
}

/* --------------------------------------------
   Validation
----------------------------------------------- */
.val_error {
    color: red;
    font-size: 13px;
}

.input-wrap .val_error {
    grid-column: 2;
}

/* --------------------------------------------
   Delivery Method radio buttons
----------------------------------------------- */
.delivery-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

    .delivery-fieldset legend {
        font-weight: 700;
        font-size: 14px;
        margin-bottom: 6px;
    }

.delivery-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    .delivery-list li {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        font-size: 14px;
    }

    .delivery-list input[type="radio"] {
        margin-top: 2px;
    }

/* --------------------------------------------
   Attorney checkbox and Ohio Bar ID
----------------------------------------------- */
.form-section {
    margin-bottom: 12px;
}

.attorney-check {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 6px;
    display: block;
    width: 100%;
}

#barNumber {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 8px;
}

    #barNumber label {
        font-size: 13px;
        margin-bottom: 4px;
    }

/* --------------------------------------------
   Requested Information table
----------------------------------------------- */
.request-table {
    display: grid;
    grid-template-columns: 140px 110px 200px 1fr 70px;
    gap: 4px 6px;
    align-items: start;
    margin-top: 0;
}

    .request-table .input-wrap {
        display: flex;
        flex-direction: column;
    }

    .request-table .val_error {
        margin-top: 2px;
    }

    .request-table .header {
        font-weight: 600;
        font-size: 13px;
        text-align: center;
        padding-bottom: 6px;
        border-bottom: 1px solid #999;
    }

    .request-table .cell input[type="checkbox"] {
        margin: 6px auto 0;
        display: block;
    }

/* ===== General Form Styling ===== */
.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    max-width: 600px;
}

.input-field {
    padding: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

/* Captcha */
.recaptcha-container {
    text-align: left;
    margin-bottom: 20px;
}

.captcha-error {
    color: red;
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
}

/* Ensure the submit container is centered without disrupting form layout */
.submit-container {
    display: block;
    margin: 20px auto; /* Centers the submit container */
    width: fit-content; /* Ensures the button takes only as much space as it needs */
}

    /* Styling for the submit button */
    .submit-container input[type="submit"],
    .submit-container input.btn-submit {
        border: 1px solid #ccc; /* Thin border around the button */
        background-color: #f0f0f0; /* Light grey background */
        color: #000; /* Black text color */
        padding: 6px 20px; /* Smaller padding for compact size */
        font-size: 12px; /* Smaller font size */
        font-weight: normal; /* Normal font weight */
        cursor: pointer; /* Pointer cursor on hover */
        text-align: center; /* Center text inside the button */
        display: inline-block; /* Inline-block for centering */
        outline: none; /* Remove browser default outline */
        border-radius: 5px; /* Slightly rounded corners */
        box-sizing: border-box; /* Ensure padding is included in the width */
    }

        .submit-container input[type="submit"]:hover {
            background-color: #e0e0e0; /* Subtle hover effect */
        }


/* --------------------------------------------
   Responsive tweaks
----------------------------------------------- */
@media (max-width: 1000px) {
    .two-col {
        flex-direction: column;
    }

    .section-row {
        grid-template-columns: 1fr;
    }

    .request-table {
        grid-template-columns: 1fr;
        gap: 10px; /*added 2/3/26 JAH*/
    }

        .request-table .header {
            display: none;
        }

        .request-table .cell {
            display: flex;
            flex-direction: column;
        }


            /* ---- Mobile labels with inline asterisks ---- */

            /* Case Number label */
            .request-table .cell:nth-child(5n + 1)::before {
                content: "Case Number";
                font-weight: 600;
                margin-bottom: 4px;
            }

            .request-table .cell:nth-child(5n + 2)::before {
                content: "File Date *";
                font-weight: 600;
                margin-bottom: 4px;
            }

            .request-table .cell:nth-child(5n + 3)::before {
                content: "Name of Parties *";
                font-weight: 600;
                margin-bottom: 4px;
            }

            .request-table .cell:nth-child(5n + 4)::before {
                content: "Description of Requested Records *";
                font-weight: 600;
                margin-bottom: 4px;
            }

            .request-table .cell:nth-child(5n + 5)::before {
                content: "Certified?";
                font-weight: 600;
                margin-bottom: 4px;
            }

            /* Make the asterisk red (only where present) */
            .request-table .cell:nth-child(5n + 2)::before,
            .request-table .cell:nth-child(5n + 3)::before,
            .request-table .cell:nth-child(5n + 4)::before {
                color: #000;
            }

                .request-table .cell:nth-child(5n + 2)::before::after,
                .request-table .cell:nth-child(5n + 3)::before::after,
                .request-table .cell:nth-child(5n + 4)::before::after {
                    content: "";
                }
}


/* --------------------------------------------
   Validation Summary
----------------------------------------------- */
asp\:ValidationSummary, .val_error {
    font-size: 12px;
    color: red;
    margin-top: 4px;
}

/* Remove extra spacing on validation dynamic display */
input:invalid, select:invalid {
    box-shadow: none;
}
