/* =====================
   BASE & RESET
   ===================== */
html, body {
    height: 100%;
    margin: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

html {
    position: relative;
    min-height: 100%;
    font-size: .875rem; /* 14px  */
}

@media (min-width: 768px) {
    html {
        font-size: 1rem; /* 16px on tablet/desktop */
    }
}

body {
    margin-bottom: 60px;
    font-family: "K2D", "Helvetica Neue", Arial, sans-serif;
}

/* =====================
   FOCUS / ACCESSIBILITY
   ===================== */
.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;
}

/* =====================
   TYPOGRAPHY — FLUID SCALES
   ===================== */
.title-text {
    font-family: "K2D", "Helvetica Neue", Arial, sans-serif;
    font-weight: bold;
    font-size: clamp(20pt, 5vw, 28pt); /* 28pt */
    color: #E60000;
}

.extraInfo {
    font-family: "K2D", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(10px, 3vw, 12px); /* 12px */
    color: #888888;
}

h1 {
    color: #E60000;
    font-family: K2D;
    font-size: clamp(36px, 8vw, 64px); /* 64px */
    font-style: normal;
    font-weight: 600;
    line-height: 1.1;
}

h2 {
    color: #000;
    font-family: K2D;
    font-size: clamp(24px, 5vw, 36px); /* 36px */
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
}

h3 {
    color: #2E2E2E;
    font-family: K2D;
    font-size: clamp(22px, 4.5vw, 32px); /* 32px */
    font-style: normal;
    font-weight: 600;
    line-height: 1.25;
}

h4 {
    color: #000;
    font-family: K2D;
    font-size: clamp(18px, 3vw, 20px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
}

h5 {
    color: #000;
    font-family: K2D;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

h6 {
    color: #FFF;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 97.7%;
}

p {
    color: #2E2E2E;
    font-family: K2D;
    font-size: clamp(12px, 3vw, 16px); /* 24px */
    font-style: normal;
    font-weight: 400;
    line-height: 1.5; /* improves readability */
}

/* =====================
   FORMS
   ===================== */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =====================
   TABLE
   ===================== */
tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Makes tables scroll horizontally on small screens */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
}
.table {
    table-layout: fixed;
    width: 100%;
}

/* =====================
   LAYOUT
   ===================== */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.main-content {
    margin-top: -17px;
    background-color: #BF6A6A;
}

.main-div {
    margin-left: clamp(10px, 5%, 10%);
    margin-right: clamp(10px, 5%, 10%);
    padding: clamp(10px, 5%, 30px);
    background-color: white;
    height: 100%
}

/* =====================
   COMPONENTS
   ===================== */
.text-box1 {
    border-radius: 30px;
    background: #FFF;
}

.header {
    background: #FFF;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.Frame {
    background: #BF6A6A;
    margin: 80px;
}

.Main {
    background: #FFF;
}

/* =====================
   BUTTONS
   ===================== */
/*.btn-success {
    border-radius: 6px;
    background: #E60000;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);*/
    /* Ensures tap targets are at least 44px tall on mobile */
    /*min-height: 44px;
    padding: 0.5rem 1rem;
}

.btn-secondary {
    border-radius: 6px;
    background: #1462FF;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    min-height: 44px;
    padding: 0.5rem 1rem;
}*/

/* =====================
   FOOTER
   ===================== */
.footer1 {
    background: #720000;
}

.site-footer {
    color: #FFF;
    font-size: 14px;
    font-family: "Inter", Arial, sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* allows wrapping on small screens */
    gap: 12px;
    line-height: 1.4;
    padding: 15px 25px;
    background-color: #720000;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Stack footer vertically on small screens */
@media (max-width: 480px) {
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        max-height: none;
        padding: 20px 15px;
    }

    .footer-right img {
        max-height: 60px;
    }
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .footer-left a {
        text-decoration: none;
        color: #FFF;
        font-size: 14px;
    }

        .footer-left a:hover {
            text-decoration: underline;
        }

.footer-right img {
    max-height: 95px;
    width: auto;
}

.site-footer .footer-left a,
.site-footer .footer-left a:visited {
    color: #fff;
    text-decoration: none;
}

    .site-footer .footer-left a:hover,
    .site-footer .footer-left a:active {
        color: #fff;
        text-decoration: underline;
    }

input[type="checkbox"] {
    /* Remove default browser styling */
    appearance: none;
    -webkit-appearance: none; /* For Safari */
    /* Set size and your desired bold border */
    width: 20px;
    height: 20px;
    border: 3px solid #000; /* Make the border bolder here */
    /* Optional: further styling for look and alignment */
    display: grid;
    place-content: center;
    font-size: 1rem;
    cursor: pointer;
}


float-image {
}
/* Hide image when container gets narrow */
@media (max-width: 300px) {
    .float-image {
        display: none;
    }
}

.ol-tips li {
    margin-bottom: 10px;
}


.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

    .loading-overlay.active {
        display: block;
    }

.loading-backdrop {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background-color: rgba(255, 255, 255, 0.45);
}

.loading-spinner-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.loading-text {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 500;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}