/*====================================
=            Defined Fonts           =
====================================*/

@font-face {
    font-family: 'Poppins';
    src: url("/fonts/poppins/Poppins-Light.ttf");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins/Poppins-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url("/fonts/poppins/Poppins-Regular.ttf");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins/Poppins-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins/Poppins-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins/Poppins-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins/Poppins-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/*====================================
=            Root & Layout           =
====================================*/
:root {
    --content-max-width: 50%;

    --text-dark-gray: #54595F;
    --text-light-gray: #d3d3d3;
    --text-tro-blue: #02075D;
    --text-tro-hover-blue: #284b9b;
    --text-tro-accent-blue: #1C244B;
    --text-tro-accent2-blue: #324A6D;

    --header-bg-color: var(--text-tro-blue);
    --header-color: white;

    font-size: 14px;
    position: relative;
    height: 100%;
    margin: 0;
}

/* Without this, Firefox apparently doesn't render a light version. */
@media (prefers-color-scheme: light) {
    :root {
        scrollbar-color: #777 white;
    }
}

@media (max-width: 1400px) {
    :root {
        --content-max-width: 75%;
    }
}

@media (max-width: 769px) {
    :root {
        --content-max-width: 100%;
    }
}

body {
    background: #02075D;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.gut {
    margin-top: var(--bs-gutter-y);
    padding-inline: calc(var(--bs-gutter-x) * .5);
}

.d-flex:has(.gut) {
    margin-top: calc(var(--bs-gutter-y) * -1);
    margin-inline: calc(var(--bs-gutter-x) * -.5);
}

/*====================================
=           Typography               =
====================================*/
.nav-link {
    color: var(--header-color);
}

.nav-link:is(:hover,:focus) {
    color: var(--text-light-gray);
}

.dropdown-menu {
    background-color: var(--text-tro-accent-blue);
    min-width: 20rem;

    @media (max-width: 991px) {
        padding-left: 6px;
    }
}

.text-tro-gray {
    color: var(--text-dark-gray);
}

.text-tro-blue {
    color: var(--text-tro-blue);
}

.text-tro-accent-blue {
    color: var(--text-tro-accent-blue);
}

.text-tro-accent2-blue {
    color: var(--text-tro-accent2-blue);
}

/*====================================
=            Focus Styles            =
====================================*/
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/*====================================
=             Header                 =
====================================*/
header {
    margin: 0 auto;
}

header > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@media (min-width: 768px) {
    header > div:has(h1) {
        max-width: var(--content-max-width);
        margin: 0 auto;
        height: 100px;
        position: relative;
        flex-direction: row;
    }

    header img:has(+ h1) {
        position: absolute;
        top: 0;
        left: 0;
    }
}

.header-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.header-title {
    margin: 0;
    color: white;
    text-align: center;
}

.normal-logo {
    /* Keeps image at its natural size */
}

/*====================================
=             Footer                 =
====================================*/

footer {
    max-width: 2400px;
}

/*====================================
=           Navigation Bar           =
====================================*/
.navbar {
    --bs-navbar-color: var(--header-color);
    --bs-navbar-hover-color: var(--header-bg-color);
}

.navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: none !important;
    width: 1.5em;
    height: 1.5em;
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--header-color);
    transition: transform 0.3s, opacity 0.3s;
}

.navbar-toggler-icon::before {
    top: 0;
}

.navbar-toggler-icon::after {
    bottom: 0;
}

.navbar-toggler-icon span {
    top: 50%;
    transform: translateY(-50%);
}

.navbar-toggler-icon.open::before {
    transform: rotate(45deg);
    top: 50%;
}

.navbar-toggler-icon.open::after {
    transform: rotate(-45deg);
    top: 50%;
}

.navbar-toggler-icon.open span {
    opacity: 0;
}

.nav-divider {
    border: none;
    height: 2px;
    background-color: var(--header-color);
    margin-top: 0.5rem;
}

/*====================================
=              Buttons               =
====================================*/
.btn-TROblue {
    background-color: var(--text-tro-blue);
    color: white;
    border: none;
    padding: 12px;
}

.btn-check + .btn-TROblue {
    background-color: white;
    color: var(--text-tro-blue);
    border: 2px solid var(--text-tro-blue);
}

.btn-TROblue:hover {
    background-color: #284b9b;
    color: white;
}

.btn-check:checked + .btn-TROblue {
    background-color: var(--text-tro-blue);
    color: white;
    border: none;
}

/*====================================
=              Content               =
====================================*/

.scroll-stable {
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-stable > * {
    width: 100%;
}

main:has(> .content) {
    background-color: #ededed;
}

.content {
    background-color: white;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #02075D;
}

@media (max-width: 1400px) {
    .content {
        --content-max-width: 75%;
    }
}

@media (max-width: 769px) {
    .content {
        --content-max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
}

.icon {
    width: 1em;
    height: 1em;
}

.container-fluid-xxl {
  width: 100%;
  padding-left: var(--bs-gutter-x, 0.75rem);
  padding-right: var(--bs-gutter-x, 0.75rem);
  margin-left: auto;
  margin-right: auto;
  max-width: 100%; /* override default container limit */

  @media (min-width: 768px) {
    max-width: 720px;
  }
  @media (min-width: 992px) {
    max-width: 960px;
  }
  @media (min-width: 1200px) {
    max-width: 1140px;
  }
  @media (min-width: 1400px) {
    max-width: none; /* let it grow! */
  }
}

/*====================================
=              Forms                 =
====================================*/

.required-mark {
    font-weight: 400;
    color: var(--bs-danger) !important;
}

/*====================================
=            Payment Table           =
====================================*/
.payment-table {
    color: #02075D;
    background-color: #E5E5E5;
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    margin-bottom: 0;
}

.payment-table td,
.payment-table th {
    border: 1px solid #343a40;
    text-align: center;
}

.table-wrapper {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #343a40;
    margin-bottom: 0;
}

/*====================================
=         Progress Circles           =
====================================*/
.circle-step {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 2px solid #ccc;
    border-radius: 50%;
    font-size: 18px;
    background-color: #f8f9fa;
    color: #000;
}

.circle-step.active-circle-step {
    font-weight: bold;
    border-color: #02075D;
}

.circle-step.completed-circle-step {
    background-color: #02075D;
    color: white;
    font-weight: bold;
    border-color: #02075D;
    font-size: 20px;
}

/*====================================
=          Divider Lines             =
====================================*/
.divider-line {
    flex-grow: 1;
    height: 2px;
    background-color: #ccc;
    margin: 0 10px;
}

@media (max-width: 768px) {
    .divider-line {
        height: 1px;
    }

    .circle-step {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
}


/*====================================
=          Calendar                  =
====================================*/

.past-date {
    position: relative;
    color: #aaa;
    pointer-events: none;
}

/* Add a solid line spanning across the entire row */
.past-date::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    width: 100%;
    background-color: #aaa;
    z-index: 1;
}

.calendar-lg .datepicker {
    font-size: 1.2rem;
}

.calendar-lg td,
.calendar-lg th {
    padding: 1rem !important;
}

.calendar-lg .datepicker {
    width: auto;
    display: inline-block;
}

/*====================================
=              Admin                 =
====================================*/

.admin .request-row:hover {
    background-color: #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/*====================================
=             Utilities              =
====================================*/

.mw-50 {
    max-width: 50%;
}

.text-poppins {
    font-family: Poppins, sans-serif;
}

.text-calibri {
    font-family: Calibri, sans-serif;
}

.fw-semibold {
    font-weight: 600 !important;
}

.text-underline {
    text-decoration: underline;
}
