
/* =========================================================
   REGISTRATION PAGE DESIGN
   ========================================================= */

:root {
    --brand: #0076CE;
    --brand-dark: #005fa8;
    --text: #20252b;
    --muted: #6f7a85;
    --border: #e3e8ee;
    --surface: #ffffff;
    --page: #f4f7fa;
}

#form1 {

    /* max-width: 1040px; */
    margin: 0 auto 55px;
    padding: 38px 42px 44px;
    background: var(--surface);
    border: 1px solid #e8edf2;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(25, 45, 65, .09);
}

/* Page heading */
#content > .container > .row > .col-md-12 > h3 {
    position: relative;
    /* max-width: 1040px; */
    margin: 30px auto 20px !important;
    /* padding: 0 0 18px; */
    color: var(--text) !important;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: .4px;
}

#content > .container > .row > .col-md-12 > h3::after {
    content: "";
    display: block;
    width: 54px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 20px;
    background: var(--brand);
}

/* Keep Bootstrap rows from becoming visually cramped */
#form1 .row {
    margin-left: -10px;
    margin-right: -10px;
}

#form1 .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

/* Section cards */
#form1 #step-1 > .col-md-12 {
    position: relative;
    margin: 0 0 18px;
    padding: 22px 22px 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(30, 55, 80, .045);
}

/* Section headings */
#form1 #step-1 > .col-md-12 > h4 {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 19px !important;
    padding: 0 0 13px;
    color: var(--text) !important;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .15px;
    border-bottom: 1px solid #edf0f3;
}

#form1 #step-1 > .col-md-12 > h4 i {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand) !important;
    color: #fff !important;
    font-size: 13px;
    font-style: normal;
    box-shadow: 0 5px 12px rgba(0, 118, 206, .22);
}

/* Inputs */
#form1 .form-control {
    width: 100%;
    height: 48px;
    margin-bottom: 16px;
    padding: 0 15px;
    color: #333 !important;
    background: #fbfcfd;
    border: 1px solid #dce3e9;
    border-radius: 8px !important;
    box-shadow: none;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#form1 .form-control[disabled], #form1 .form-control[readonly], #form1 fieldset[disabled] #form1 .form-control {
    background-color: #eee;
}

#form1 textarea.form-control {
    min-height: 96px;
    height: auto;
    padding-top: 13px;
    padding-bottom: 13px;
    resize: vertical;
}

#form1 input[type="file"].form-control {
    height: unset;
    padding: 15px;
}

#form1 select.form-control {
    padding-right: 38px;
    cursor: pointer;
}

#form1 .form-control::placeholder {
    color: #8b96a1;
    opacity: 1;
}

#form1 .form-control:hover {
    border-color: #c5d0da;
    background: #fff;
}

#form1 .form-control:focus {
    border-color: var(--brand) !important;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 118, 206, .11) !important;
}

/* Validation / informational text */
#form1 small {
    display: block;
    margin-top: -8px;
    margin-bottom: 12px;
    font-size: 12px;
}

#form1 #errmsg {
    margin-top: -8px;
    margin-bottom: 10px;
}

/* Error list */
#form1 ul {
    margin: 0 0 20px;
    padding: 12px 16px 12px 32px;
    background: #fff5f5;
    border: 1px solid #ffd9dc;
    border-radius: 8px;
    color: #cc1024 !important;
    font-size: 13px;
}

/* Checkboxes and consent areas */
#form1 input[type="checkbox"] {
    accent-color: var(--brand);
}

#form1 label {
    font-weight: 400;
}

/* Buttons */
#form1 input[type="submit"],
#form1 button[type="submit"],
#form1 .btn-primary {
    min-width: 190px;
    min-height: 48px;
    padding: 12px 28px;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--brand) !important;
    color: #fff !important;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
    box-shadow: 0 7px 18px rgba(0, 118, 206, .22);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

#form1 input[type="submit"]:hover,
#form1 button[type="submit"]:hover,
#form1 .btn-primary:hover {
    background: var(--brand-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 118, 206, .27);
}

#form1 input[type="submit"]:active,
#form1 button[type="submit"]:active,
#form1 .btn-primary:active {
    transform: translateY(0);
}

/* Generic buttons used by the existing page */
#form1 .btn {
    border-radius: 8px;
}

/* Links inside the form */
#form1 a {
    color: var(--brand);
    transition: color .15s ease;
}

#form1 a:hover {
    color: var(--brand-dark);
}

/* Camera/upload areas if they still exist in the PHP.
   Styling only — does not hide or remove anything. */
#form1 #live_camera1,
#form1 #live_camera2,
#form1 #results1,
#form1 #results2 {
    border-radius: 10px;
    overflow: hidden;
}

#form1 #cam1,
#form1 #cam2 {
    border-radius: 8px;
}

/* Horizontal spacing around the form's final controls */
#form1 .text-center {
    padding-top: 8px;
}

/* Make the registration content area feel like a light application page
   without changing the site's global body/header/footer styles. */
body#homepage #content {
    padding: 40px 0;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 991px) {
    #form1 {
        margin-left: 15px;
        margin-right: 15px;
        padding: 30px 26px 34px;
    }

    #content > .container > .row > .col-md-12 > h3 {
        font-size: 27px;
    }
}

@media (max-width: 767px) {
    #form1 {
        margin: 15px 10px 35px;
        padding: 22px 15px 25px;
        border-radius: 13px;
    }

    #content > .container > .row > .col-md-12 > h3 {
        margin-top: 20px !important;
        font-size: 24px;
    }

    #form1 #step-1 > .col-md-12 {
        padding: 18px 14px 6px;
        border-radius: 10px;
    }

    #form1 #step-1 > .col-md-12 > h4 {
        font-size: 15px;
    }

    #form1 .form-control {
        height: 46px;
        margin-bottom: 13px;
    }

    #form1 input[type="submit"],
    #form1 button[type="submit"],
    #form1 .btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #form1 {
        margin-left: 6px;
        margin-right: 6px;
        padding: 18px 10px 22px;
    }

    #form1 #step-1 > .col-md-12 {
        padding-left: 11px;
        padding-right: 11px;
    }

    #content > .container > .row > .col-md-12 > h3 {
        font-size: 22px;
    }
}
