/* BRPPC Custom Styles */

.page-title{
    text-align: center;
    font-size: 27px;
    font-weight: bold;
    color: #000000;
    font-family: Georgia, 'Times New Roman', serif;
    /*letter-spacing: 0.02em;*/
}

.page-desc{
    text-align: center;
    font-size: 17px;
    color: #666;
}


.form-field {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-field-center {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    justify-content: center;
}


.inline-form-field {
    display: flex;
    align-items: flex-start;  /* changed from center so hints don't misalign */
    margin-bottom: 12px;
}

.inline-form-field .form-label {
    width: 140px;
    min-width: 120px;      /* prevents it from shrinking */
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    margin-right: 20px;
}

.inline-form-field.no-label {
    margin-left: 160px;  /* label width + margin-right */
}


.error-msg {
    color: #980000;
    font-size: 11px;
    padding-left: 3px;
}

.check-row {  /* Checkbox and radio group layouts */
    display: flex;
}

.check-col {
    min-width: 180px;
    flex: 1;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.check-item input[type="checkbox"]{
    height: 18px;
    width: 18px;
    flex-shrink: 0;
}

.check-item input[type="radio"] {
    height: 17px;
    width: 17px;
    flex-shrink: 0;
}


.check-inline {
    display: flex;
    gap: 24px;
}

textarea {
    border: 1px solid #000000 !important;
    border-radius: 3px !important;
    padding: 8px;
    width: 100%;
}

select {
    height: 26px;
    border-radius: 3px !important;
    background-color: #fff;
    border: 1px solid #000;
    padding: 0 6px;
}

.changed-badge {
    display: inline-block;
    background-color: #0d6efd;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

/*  Input Stuff  */
input {
    flex-shrink: 0;
    border: 1px solid #000000 !important;
    border-radius: 3px !important;
    height: 26px !important;
}

input[type="file"] {
    height: auto !important;
    padding: 6px;
}

.input-short    { width: 180px; }
.input-long     { width: 520px; }
.input-full     { width: 720px; }
.input-full-w   { width: 920px; }
.input-split    { width: 254px; }
.input-two      { width: 26px;  }
.input-three    { width: 39px;  }
.input-four     { width: 52px;  }
.input-five     { width: 65px;  }
.input-read     { width: 180px; }

.input-read:focus {
    /*outline: none !important;*/
    /*box-shadow: none !important;*/
}


.input-city {
    width: 330px;
}

.input-zip {
    width: 116px;
}

.input-state {
    width: 48px;
    text-transform: uppercase;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    width: fit-content;
}

.input-error {
    border: 1px solid #ff0000 !important;
    border-radius: 3px;
    padding: 3px;
    background-color: #ffe1e1;
}

.input-hint {
    font-size: 12px;
    color: #525252;
    margin-top: 2px;
    padding-left: 5px;
}
.input-hint-l {
    font-size: 16px;
    color: #525252;
    margin-top: 2px;
    padding-left: 5px;
}

.form-title {
    font-size: 15px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 2px;
    /*padding-left: 3px;*/
}

/*  Link Stuff  */

.bold {
    font-weight: 600;
}

.centered {
    text-align: center;
}

.centeredForm {
    margin: 0 auto;
}

.left {
    text-align: left;
}
.right {
    text-align: right;
}

.small{ font-size: 14px; }
.medium, .normal{ font-size: 19px; }
.large{ font-size: 21px; }
.xlarge, .xl { font-size: 23px; }
.xxlarge, .xxl { font-size: 27px; }

.pushRight { margin-left: 16px; }
.pushLeft { margin-right: 16px; }
.pushDown { margin-top: 16px; }
.pushUp { margin-bottom: 16px; }

.pullRight { margin-right: -16px; }
.pullLeft { margin-left: -16px; }

/*.link:visited {*/
/*    color: #6b00b7;*/
/*}*/

.link {
    color: #1414d7;
    text-decoration: none;
}

.link:hover {
    color: #a62121;
}

.link:active {
    color: #ec3f00;
}


.links-page {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.links-col {
    flex: 1;
    min-width: 0;
}

.links-heading {
    text-align: center;
    color: #00486c;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 12px;
}



/*  Header Stuff  */
.header-auth-right {
    text-align: right;
    margin-bottom: -5px;
    margin-top: -7px;
}

.header-auth-left {
    text-align: left;
    margin-bottom: -5px;
    margin-top: -29px;
}

.header-title {
    width: 900px;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    color: white;
    text-shadow: 2px 3px 3px black;
    text-align: center;
    font-size: 35px;
    margin: 0 auto;
}

.footer-text {
    width: 900px;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    color: white;
    text-shadow: 2px 3px 3px black;
    text-align: center;
    font-size: 20px;
    margin: 0 auto;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #ffffff, #97a1c5);
    background-attachment: fixed;
    color: #222;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-width: 1100px;
    display: flex;
    flex-direction: column;
}

body.body-solid {
    background: linear-gradient(135deg, #ffffff, #c7c9dc);
}

header, footer {
    /*background-color: #272C3A;*/
    background: linear-gradient(135deg, #272C3A, #1f232e);
    color: white;
    padding: 1rem;
    text-align: center;
}

main {
    flex: 1;
    /*max-width: 900px;  */
    max-width: 1200px;
    margin: auto;
    padding: 1.5rem;
    width: 100%;
}

#page-main {
    position: relative;
}

.main-wide {
    flex: 1;
    max-width: 1300px;
    margin: auto;
    padding: 1.5rem;
    width: 100%;
}

.content-box{
    width:800px;
    margin:0 auto;
    background: linear-gradient(180deg, #ffffff, #f2f2f2);
    padding: 1rem;
    border-radius:10px;
    box-shadow:1px 1px 6px rgba(0,0,0,0.4);
}

.content-box-wide {
    width: 1060px;
    margin: 0 auto;
    background: linear-gradient(180deg, #ffffff, #f2f2f2);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
}

.divider {
    height: 6px;
    background: linear-gradient(180deg, #9597a3, #4d4d4d);
    width: 100%;
    box-shadow: 0 1px 4px black
}

header nav.main-nav {
    display: inline-flex;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 6px;
}

/* Main navigation */
nav.main-nav {
    margin-top: 16px;
    margin-bottom: 2px;
    background-color: #444;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0.5rem 0;
    position: relative;
}

nav.main-nav .nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: inline-block;
}

nav.main-nav .nav-link:hover,
nav.main-nav .nav-link[aria-current="page"] {
    background-color: #015a88;
    color: white;
    /*border-bottom: 3px solid #015a88;*/
}

/* Dropdown menus */
nav.main-nav .dropdown {
    position: relative;
}

nav.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    width: 220px;
    border-radius: 4px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 0.25rem 0;
}

nav.main-nav .dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
}

nav.main-nav .dropdown-menu a:hover {
    background-color: #015a88;
    color: white;
}

nav.main-nav .dropdown-menu .dropdown-header {
    display: block;
    margin: 2px 0 -2px 0;
    color: #4d9dc2;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: default;
    pointer-events: none;
}

nav.main-nav .dropdown:hover > .dropdown-menu,
nav.main-nav .dropdown:focus-within > .dropdown-menu {
    display: block;
}

nav.main-nav .dropdown:hover > .nav-link,
nav.main-nav .dropdown:focus-within > .nav-link {
    background-color: #015a88;
    color: white;
}

/* Home carousel */
#homeCarousel .carousel-item {
    height: auto !important;
}

#homeCarousel .carousel-item img {
    display: block;
    width: 100%;
    height: auto;
}

#homeCarousel .carousel-caption {
    position: static !important;
    padding: 1rem;
    margin: 0;
    text-align: center;
    background: #f8f9fa;
    color: #000;
}

nav.main-nav a {
    color: white;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav.main-nav a:hover {
    background-color: #015a88;
}

/* Form styling */
main form {
    text-align: left;
}


/* PDF viewer (desktop only) */
.pdf-viewer {
    width: 100%;
    height: calc(100vh - 280px);
    min-height: 500px;
    margin: 20px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    background-color: #525659;
}

.pdf-viewer-compact {
    width: 100%;
    height: 500px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    background-color: #525659;
}

.pdf-viewer iframe {
    display: block;
    border: 0;
}


.pdf-viewer-compact iframe {
    display: block;
    border: 0;
    width: 100%;
    height: 100%;
}

/* Document download card */
.document-card {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.document-card-icon {
    flex-shrink: 0;
    color: #c41e3a;
}

.document-card-body {
    flex-grow: 1;
}

.document-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin-bottom: 4px;
}

.document-card-meta {
    font-size: 12px;
    color: #666;
}

.document-card-action {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
}

.btn-outline {
    background-color: transparent;
    color: #0d6efd;
    border: 1px solid #0d6efd;
}

.btn-outline:hover {
    background-color: #0d6efd;
    color: #fff;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table-fixed {
    table-layout: fixed;
}

.data-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 16px;
    background-color: #272C3A;
    color: white;
    font-weight: 600;
}

.data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
}

.data-table tr:nth-child(even) td {
    background-color: #e0e0e5;
}

.data-table tr:nth-child(odd) td {
    background-color: #fbfbfb;
}

.data-table tr:hover td {
    background-color: #d0d7ef;
}




/* Filter bar (review pages) */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.filter-bar-hidden {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
    /*padding: 12px 16px;*/
    /*background-color: #f2f2f2;*/
    /*border: 1px solid #ccc;*/
    /*border-radius: 6px;*/
}

.filter-item {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Auth forms (login, forgot password, reset password)
   ========================================================================== */
.auth-form {
    max-width: 360px;
    margin: 24px auto 0;
}

.auth-field {
    margin-bottom: 16px;
    text-align: left;
}

.auth-label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
    color: #000;
}

.auth-input {
    width: 100%;
    height: 26px;
    border: 1px solid #000;
    border-radius: 3px;
    padding: 0 6px;
    box-sizing: border-box;
}

.auth-remember {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}

.auth-remember input[type="checkbox"] {
    width: auto;
    height: auto;
    margin: 0;
}

.auth-remember label {
    margin: 0;
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
}

.auth-actions {
    text-align: center;
    margin-bottom: 12px;
}

.auth-actions .btn {
    min-width: 140px;
}

.auth-link {
    text-align: center;
    font-size: 13px;
}

.auth-link a {
    color: #555;
}

.auth-link a:hover {
    color: #000;
}


/* VIDEO PLAYER SECTION */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.video-card {
    display: flex;
    flex-direction: column;
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid #000;
    border-radius: 4px;
    background-color: #000;
    display: block;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: #48549a;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 2px;
}

.header-auth {
    display: flex;
    align-items: center;
    padding: 0 2px;
    margin-top: -30px;
}

@media (max-width: 1900px) {
    .header-auth {
        margin-top: 10px;
    }
}

.button-group {
    background: linear-gradient(135deg, #f8f8f8, #f1f1f1);
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 1rem 0;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

.button-group-hidden {
    padding: 10px 12px;
    margin: 1rem 0;
}

.button-group-title {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    font-family: Georgia, 'Times New Roman', serif;
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 2px;
    border-bottom: 1px solid #ccc;
}

.button-group-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default */
    gap: 12px;
}

.button-group-list.wideScreen {
    grid-template-columns: repeat(4, 1fr);
}

.button-group-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    height: 48px;
    background: linear-gradient(135deg, #316b8c, #316b8c);
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.35);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
    transition: background 0.3s, color 0.3s;
    overflow: hidden;
    word-break: break-word;
}

.button-group-list a:hover {
    background: linear-gradient(135deg, #316b8c, #5790b2);
    color: #ff4646;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
}

.mobile-only { display: none; }

.indented-layout-dropdown{
    margin-left: 12px;
}


/* Add to brppc.css, outside any media query */
.rotate-overlay {
    display: none;
}

.rotate-overlay-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 16px;
    animation: rotate-hint 2.45s ease-in-out infinite;
}

@keyframes rotate-hint {
    0% { transform: rotate(0deg); }
    8% { transform: rotate(0deg); }
    30% { transform: rotate(90deg); }
    100% { transform: rotate(90deg); }
}


input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Mobile Section */
@media (max-width: 767px) and (orientation: portrait) {

    .button-group-list.wideScreen {
        grid-template-columns: repeat(2, 1fr);
    }

    .button-group-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .video-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        margin: 20px 0;
    }

    .data-table {
        font-size: 11px;
    }

    .data-table th {
        padding: 6px 8px;
        font-size: 12px;
    }

    .data-table td {
        padding: 6px 8px;
    }

    .content-box,
    .content-box-wide {
        width: 100%;
        box-sizing: border-box;
        border-radius: 8px;
        padding: 0.75rem;
    }

    .pdf-viewer {
        display: none;
    }

    .document-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 24px 16px;
    }

    .document-card-action {
        width: 100%;
        flex-direction: column;
    }

    .document-card-action .btn {
        width: 100%;
    }

    body {
        min-width: unset;
    }

    main {
        padding: 0.5rem;
        max-width: 100%;
    }

    .header-title {
        font-size: 18px;
        width: 100%;
    }

    .footer-text {
        font-size: 14px;
        width: 100%;
    }

    header, footer {
        padding: 0.5rem;
    }

    nav.main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.4rem;
        border-radius: 0;
        width: 100%;
        box-sizing: border-box;
    }

    nav.main-nav .nav-link {
        font-size: 12px;
        padding: 0.3rem 0.5rem;
    }

    .form-field {
        flex-direction: column;
    }

    .input-long, .input-full {
        width: 100%;
    }

    .header-auth-right {
        text-align: right;
        margin-bottom: 15px;
        margin-top: -7px;
    }

    .header-auth-left {
        text-align: left;
        margin-bottom: 15px;
        margin-top: -43px;
    }


    .input-short    { width: 135px; }
    .input-long     { width: 275px; }
    .input-full     { width: 375px; }
    .input-split    { width: 254px; }
    .input-three    { width: 39px; }
    .input-four     { width: 52px; }
    .input-read     { width: 135px; }

    .form-field {
        flex-direction: column;
    }

    .form-field .input-group {
        margin-left: 0 !important;
        width: 100%;
    }

    .check-row {  /* Checkbox and radio group layouts */
        display: flex;
    }

    .check-col {
        min-width: 115px;
        flex: unset;
    }

    .check-item {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-bottom: 5px;
    }

    .check-inline {
        display: flex;
        gap: 18px;
    }

    nav.main-nav {
        flex-wrap: wrap;
        position: relative;
    }

    nav.main-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
        width: 210px;
        box-shadow: none;
        padding: 0;
        z-index: 1000;
    }

    nav.main-nav .dropdown-menu a {
        padding-left: 1.25rem;
    }

    nav.main-nav .dropdown .dropdown-menu.show {
        display: block !important;
    }

    .links-col {
        flex: 0 0 calc(50% - 10px);
    }

    .links-col-wide {
        flex: 0 0 100%;
    }

    .links-heading {
        font-size: 24px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-item {
        width: 100%;
    }

    .mobile-hide { display: none !important; }
    .mobile-only { display: block !important; }


    .rotate-overlay {
        display: flex;
        position: absolute;
        inset: 0;
        z-index: 99999;
        background: rgba(20, 20, 20, 0.96);
        color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 24px;
    }
}

/* Phones in landscape only - excludes tablets/desktop in landscape */
@media (max-width: 932px) and (max-height: 500px) and (orientation: landscape) {
    .mobile-hide-landscape { display: none !important; }
    .mobile-only-landscape { display: block !important; }
}

@media (max-width: 1850px) {
    .limit-width-full { display: none !important; }
}
