:root {
    --primary-color: #55008a;
    --custom-background-color: #f4e8fa;
    --tab-active-background-color: #cbafde;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Common base style for headings */
.thin-heading {
    font-weight: 100; /* Thin text */
    color: var(--primary-color); /* Desired color */
}

    /* Additional style for centred alignment */
    .thin-heading.centred {
        text-align: center;
    }

    /* Additional style for left alignment */
    .thin-heading.left {
        text-align: left;
    }

a, .btn-link {
    color: #006bb7;
}

:root {
    --nav-height: 60px; /* Default height, adjust as needed */
}

@media (max-width: 640.98px) {
    :root {
        --nav-height: 110px; /* Adjust this value based on the actual height of your NavMenu on smaller screens */
    }
}

@media (min-width: 641px) {
    :root {
        --nav-height: 70px; /* Adjust this value based on the actual height of your NavMenu on larger screens */
    }
}

.required::after {
    content: " *";
    color: red;
}

.rect-icon {
    display: flex;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: #886308;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px; /* Make the text smaller */
    color: white;
}
    .rect-icon img {
        margin-right: 10px;
        width: 16px; /* Icon width */
        height: 16px; /* Icon height */
    }

.btn-icon {
    display: flex;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 7px;
    padding-bottom: 7px;
    color: #fff;
    background-color: var(--primary-color);
    border-color: #228A94;
    border-radius: 4px;
    transition: background-color 0.3s, border-color 0.3s; /* Add smooth transition */
}

    .btn-icon img {
        margin-right: 10px;
        width: 24px; /* Icon width */
        height: 24px; /* Icon height */
    }

    /* Hover state */
    .btn-icon:hover {
        background-color: #007bff; /* Blue color similar to .btn-primary */
        border-color: #007bff;
    }

    /* Focus state */
    .btn-icon:focus {
        background-color: #0056b3; /* Darker blue color */
        border-color: #0056b3;
    }

    /* Active state */
    .btn-icon:active {
        background-color: #004085; /* Even darker blue color */
        border-color: #004085;
    }

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: #228A94;
}

/* Custom CSS for pastel shading */
.custom-background-color {
    background-color: var(--custom-background-color);
}
/* Custom CSS for reduced label size */
.text-small {
    font-size: 0.875em !important;
}

/* Custom CSS for calculated font weight */
.text-dark {
    font-weight: calc(var(--bs-body-font-weight) * 1.4) !important; /* Adjust the multiplier as needed */
}

.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;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNy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has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.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;
}

.signature-pad-container {
    max-width: 600px;
    margin: 0;
    padding: 0;
    border: none;
}

.signature-invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

.signature-pad {
    margin: 0;
    cursor: url(/icons/pen.png) 1 25, pointer;
    border: 1px solid #000;
    border-radius: 4px;
}
.typed-signature {
    font-family: "Brush Script MT", "Lucida Handwriting", cursive; /* Handwriting-style system fonts */
    font-size: 32px; /* Larger font size for a signature appearance */
    color: #2a2a2a; /* Dark gray ink-like color */
    padding: 10px; /* Padding for spacing inside the box */
    width: 100%; /* Full width for alignment */
    height: 60px; /* Height to make the box spacious */
    background-color: #f9f9f9; /* Light gray background */
    outline: none; /* Remove focus outline */
    text-align: left; /* Ensure text remains left-aligned */
    box-sizing: border-box; /* Ensure padding doesn’t affect height/width */
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Set text color for all tabs */
#nav-container #nav-tabs-container .nav-item .nav-link {
    color: black !important; /* Ensures consistent text color */
}

    /* Active tab styling using parent containers */
    #nav-container #nav-tabs-container .nav-item .nav-link.active {
        background-color: var(--tab-active-background-color) !important; /* Matches your selected tab color */
        color: black !important;
        border-color: transparent !important;
    }

.navigation-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
}

    .navigation-button:hover {
        background-color: #34495e;
    }

/* selection box styling */
.selection-box {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
    width: 250px; /* Sets a fixed width */
    height: 150px; /* Sets a fixed height */
    overflow: hidden; /* Prevents content overflow */
    text-align: center; /* Centers text horizontally */
}
    /* Hover effect for location boxes */
    .selection-box:hover {
        background-color: #e6f7ff;
    }
    /* Hover colour remain on a selected item */
    .selection-box.selected {
        background-color: #e6f7ff; /* Keeps the hover color */
        border-color: #007acc; /* Optional: Add a distinct border for clarity */
    }


/* selection name styling */
.selection-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Address line styling inside location boxes */
.location-address-line {
    margin: 0 !important; /* Completely removes additional spacing between lines */
    line-height: 1 !important; /* Sets the line height to 1 for tightly packed lines */
    font-size: 0.9rem !important; /* Keeps text readable */
    color: #333 !important; /* Maintains a neutral color */
}

/* Syncfusion styling for datepicker */
.e-datepicker.e-input {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}
.e-control-wrapper {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}
.e-datepicker.e-input {
    all: unset !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}



/* Keep the container flexible and auto-width */
.e-input-group {
    display: flex !important; /* Maintain intrinsic flex layout */
    align-items: center !important; /* Ensure icon and input align properly */
    width: auto !important; /* Prevent full-width stretching */
}

    /* Style the input field */
    .e-input-group input.e-input {
        width: auto !important; /* Allow it to size naturally */
        min-width: 150px !important; /* Ensure it’s at least 150px */
        padding: 4px !important; /* Add space inside the input */
        font-size: 14px !important; /* Keep font consistent */
        background-color: antiquewhite !important; /* Set background color */
        box-sizing: border-box !important; /* Ensure padding doesn’t affect width */
    }

    /* Style the date picker icon */
    .e-input-group .e-input-group-icon {
        min-width: 20px !important;
        max-width: 24px !important;
        flex: 0 0 auto !important; /* Prevent unwanted stretching */
        padding: 4px !important;
    }