html {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    overflow: visible;
    margin: 0;
    padding: 0;
}

[onClick] {
    cursor: pointer;
}

.cursor-lock {
    cursor: not-allowed;
}

.cursor-move {
    cursor: move;
}

/* The actual timeline (the vertical ruler) */
.main-timeline-5 {
    position: relative;
    max-width: 80%;
    margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.main-timeline-5::after {
    content: "";
    position: absolute;
    width: 3px;
    background-color: #000;
    top: 0;
    bottom: 0;
    left: auto;
    margin-left: -3px;
}

/* Container around content */
.timeline-5 {
    position: relative;
    background-color: inherit;
    width: 100%;
}

/* The circles on the timeline */
.timeline-5::after {
    content: "";
    position: absolute;
    width: 17px;
    height: 17px;
    right: 1px;
    background-color: #000;
    top: 18px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the right */
.right-5 {
    padding: 0px 0px 20px 40px;
    left: auto;
}

/* Add arrows to the right container (pointing left) */
.right-5::before {
    content: " ";
    position: absolute;
    top: 18px;
    z-index: 1;
    left: 30px;
    border: medium solid #000;
    border-width: 10px 10px 10px 0;
    border-color: transparent #000 transparent transparent;
}

/* Fix the circle for containers on the right side */
.right-5::after {
    left: -10px;
}

@media (max-width: 991px) {
    .main-timeline-5 {
        max-width: 100%;
    }
}


.bg-mdl {
    background-color: #c1081f;
    color: #fff;
}

.bg-mdt {
    background-color: #062C96;
    color: #fff;
}

.bg-mdp {
    background-color: #ffae00;
}

.bg-mdg {
    background-color: #00A31B;
    color: #fff;
}

.bg-pp {
    background-color: #478604;
    color: #fff;
}

.bg-id {
    background-color: rgb(255,45,85);
    color: #fff;
}

.elementPrev {
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.1);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.elementPrev:hover {
    box-shadow: 0 15px 35px rgba(0, 64, 128, 0.1);
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
}

.card {
    border: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    border-radius: 1rem !important;
}

.card.bg-light {
    background-color: #f0f2f5 !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    padding: 1.25rem !important;
}

.text-primary {
    color: #004080 !important;
}

.text-info, .nav-link.text-info {
    color: #f2cd00 !important;
}

.btn-info {
    background-color: #f2cd00 !important;
    border-color: #f2cd00 !important;
    color: #000 !important;
}

.btn-info:hover {
    background-color: #e6c200 !important;
    border-color: #e6c200 !important;
}

.btn-gold {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    color: #fff !important;
}

.btn-gold:hover {
    background-color: #b8962e !important;
    border-color: #b8962e !important;
    color: #fff !important;
}

.btn-outline-gold {
    color: #d4af37 !important;
    border: 1px solid #d4af37 !important;
    background-color: transparent !important;
}

.btn-outline-gold:hover {
    background-color: #d4af37 !important;
    color: #fff !important;
}

.btn-date-today {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700 !important;
    color: #004080;
}

.lead {
    font-weight: 400;
}
.nav-link {
    color: #344767 !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    transition: color 0.2s ease-in-out;
}

.nav-link:hover, .nav-link:focus, .nav-link.active {
    color: #f2cd00 !important;
}

.field-description {
    font-size: 0.75rem;
    color: #8392ab;
    margin-top: -0.75rem;
    margin-bottom: 1rem;
    margin-left: 0.25rem;
    display: block;
}

.card-description {
    font-size: 0.9rem;
    color: #67748e;
    font-weight: 400;
}

.navbar-brand img {
    transition: transform 0.3s ease-in-out;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.signature-pad {
    position: relative;
    display: flex;
    flex-direction: column;
    font-size: 10px;
    width: 100%;
    height: 200px;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.5rem;
}

.signature-pad-body {
    position: relative;
    flex: 1;
}

.signature-pad-body canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    cursor: crosshair;
}

.signature-pad-footer {
    position: absolute;
    bottom: 5px;
    right: 5px;
    z-index: 10;
}

/* Validation Styles */
.is-invalid {
    border-color: #ea0606 !important;
    background-image: none !important; /* Hide bootstrap default icon if it interferes */
}

.dropzone.is-invalid, .signature-pad.is-invalid {
    border: 2px solid #ea0606 !important;
    border-style: solid !important;
}

.dropzone.is-invalid {
    background-color: rgba(234, 6, 6, 0.05) !important;
}

/* Sticky Header Improvements */
.sticky-top-section {
    position: -webkit-sticky;
    position: sticky;
    top: 70px; /* Navbar height increased from 54px */
    z-index: 1010;
    background-color: #f8f9fa !important; /* Matches bg-gray-100 */
    padding-top: 15px;
    padding-bottom: 15px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-bottom 0.2s ease;
}

.sticky-top-section.is-stuck {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.sticky-top-section h2 {
    margin: 0;
    text-align: center;
}

.sticky-top-card {
    position: -webkit-sticky;
    position: sticky;
    top: 138px; /* Adjusted from 150px to be more precise: 70px (nav) + 68px (section height) */
    z-index: 1000;
    background-color: #ffffff !important;
    transition: margin 0.1s ease, width 0.1s ease, border-radius 0.1s ease, box-shadow 0.1s ease;
}

.sticky-top-card.is-stuck {
    border-radius: 0 !important;
    margin-left: -2px !important;
    margin-right: -2px !important;
    width: auto !important;
    max-width: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card.bg-light .sticky-top-card {
    background-color: #f0f2f5 !important;
}

/* Responsive Sticky Header Adjustments */
@media (max-width: 991.98px) {
    .sticky-top-section {
        top: 65px !important; /* Mobile Navbar height increased from 48px */
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    
    .sticky-top-card {
        top: 115px !important; /* 65px + ~50px section height, increased from 98px */
    }
}
