body {
    font-family: 'Urbanist', sans-serif !important;
    font-weight: 500 !important;
}

:root {
    --primary: #ed1c24 !important;
    --color-primary: #ed1c24 !important;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap: 10px;
    background-color: hsla(0, 0%, 0%, 0.5);
    position: fixed;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 99999999;
    backdrop-filter: blur(2px);
    height: 100vh;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    animation: zoom 0.9s infinite ease-in-out;
}

.dot:nth-child(1) {
    animation-delay: 0s;
    background-color: #ffcccc;
}

.dot:nth-child(2) {
    animation-delay: 0.15s;
    background-color: #ff6666;
}

.dot:nth-child(3) {
    animation-delay: 0.3s;
    background-color: #ed1c24;
}

.dot:nth-child(4) {
    animation-delay: 0.45s;
    background-color: #c4171d;
}

.dot:nth-child(5) {
    animation-delay: 0.6s;
    background-color: #9b1216;
}

@keyframes zoom {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.kt-input.is-invalid,
.kt-select.is-invalid,
.kt-textarea.is-invalid {
    border-color: #e11d48;
}

.kt-input.is-valid,
.kt-select.is-valid {
    border-color: #50cd89 !important;
}

.kt-form-error {
    color: #e11d48;
}

/* Force checkbox color if build hasn't run */
input[type="checkbox"]:checked {
    color: #ed1c24 !important;
    background-color: #ed1c24 !important;
    border-color: #ed1c24 !important;
}

input[type="checkbox"]:focus {
    --tw-ring-color: #ed1c24 !important;
}

/* Toastr Global Styling */
#toast-container>.toast {
    font-size: 0.875rem !important;
    /* 14px */
    background-size: 20px !important;
}

.recipient-item.selected {
    border-color: var(--primary);
}

.recipient-item.selected .check-icon {
    display: block;
}

/* Fix for radio buttons showing red initially */
.kt-radio {
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 1px solid #d1d5db;
    /* gray-300 */
    border-radius: 50%;
    display: grid;
    place-content: center;
}

.kt-radio::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
}

.kt-radio:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.kt-radio:checked::before {
    transform: scale(1);
}

.kt-radio.is-invalid,
.kt-checkbox.is-invalid {
    border-color: #e11d48;
    border-width: 2px;
}

.kt-input-other:focus {
    outline: none !important;
    box-shadow: none !important;
    border-bottom-color: #d1d5db !important;
    /* Keep gray border on focus */
}

.kt-card-title {
    color: var(--primary) !important;
}

.fv-help-block,
.fv-plugins-message-container {
    font-size: 0.85rem;
    color: #e11d48;
    text-align: end;
    display: flex;
    flex-flow: column;
    gap: 5px;
}

.fv-plugins-message-container [data-field="iagree"] {
    text-align: start;
    align-self: flex-start;
    margin-top: 2px;
}

.fv-plugins-bootstrap5-row-invalid .kt-select-wrapper {
    border: 1px #e11d48 solid;
    border-radius: 6px;
}

.kt-badge-success {
    color: #1a5c37;
    background-color: #dcfce7;
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.kt-badge-destructive {
    color: #9f1239;
    background-color: #ffe4e6;
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.kt-form-label.required::after {
    content: " *";
    color: #e11d48;
}

/* Force hide sidebar toggle on desktop to ensure fixed sidebar */
@media (min-width: 992px) {
    [data-kt-drawer-toggle="#sidebar"] {
        display: none !important;
    }
}