﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

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

a:focus-visible { 
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #006469;
    outline: none;
    border-radius: 5px;
    border-width: 1px;
}

a.btn.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #006469;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

h2 {
    color: #006469;
    text-align: center;
}

h5 {
    color: #333333;
}

.btn-primary {
    background-color: #FFDD00;
    color: #333333;
    border-color: #333333;
    font-weight: bold;
    padding-left: 40px;
    padding-right: 40px;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #e6c400;
        color: #333333;
        border-color: #333333;
        font-weight: bold;
    }

.btn-primary-sm {
    background-color: #FFDD00;
    color: #333333;
    border-color: #333333;
    font-weight: bold;
}

    .btn-primary-sm:hover,
    .btn-primary-sm:focus {
        background-color: #e6c400;
        color: #333333;
        border-color: #333333;
        font-weight: bold;
    }

.btn-primary.disabled, .btn-primary:disabled {
    color: #fff;
    background-color: #343a40;
    border-color: #000000;
}

.btn-back {
    background-color: #006469;
    color: white;
    border-color: black;
    font-weight: bold;
    padding-left: 40px;
    padding-right: 40px;
}

    .btn-back:hover,
    .btn-back:focus {
        background-color: #007A78;
        color: white;
        border-color: black;
        font-weight: bold;
    }

.btn-cancel {
    background-color: #006469;
    color: white;
    border-color: black;
    font-weight: bold;
}

    .btn-cancel:hover,
    .btn-cancel:focus {
        background-color: #007A78;
        color: white;
        border-color: black;
        font-weight: bold;
    }

.edit-icon {
    color: #006469 !important;
}

.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.border-container {
    border: 1px solid #333333;
    padding: 15px;
    border-radius: 5px;
    width: 95%;
    text-align: center;
}

.custom-list {
    list-style-type: disc;
    padding-left: 20px;
}

    .custom-list li {
        padding: 5px 0;
        position: relative;
    }

        .custom-list li::marker {
            color: #006469;
            font-size: 1.2em;
        }



.cookie-consent {
    padding: 20px;
}

.cookie-consent-container {
    width: 66.6%;
    margin-left: auto;
    margin-right: auto;
}

.cookie-consent h2 {
    text-align: left;
}

.cookie-consent-actions a {
    margin-right: 10px;
}


.custom-radio {
    width: 20px !important;
    height: 20px !important;
    background-color: white;
    border: 1px solid black;
    border-radius: 50%;
    appearance: none;
    outline: none;
    cursor: pointer;
    margin-left: 30px;
}

    .custom-radio:checked {
        background-color: #ffdd00;
    }

input[type="radio"]:focus-visible {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #006469;
}

.custom-checkbox {
    width: 28px !important;
    height: 28px !important;
    background-color: white !important;
    border: 1px solid black;
    border-radius: 4px;
    appearance: none;
    outline: none;
    cursor: pointer;
    margin-left: 30px;
    display: inline-block;
    position: relative;
}

    .custom-checkbox:checked {
        background-color: #006469 !important;
        color: white !important;
        border-color: black;
    }

        .custom-checkbox:checked:after {
            content: "\1F5F9";
            font-size: 28px; /* Increase size */
            display: inline-block; /* Ensure it respects size */
            line-height: 1; /* Adjust spacing */
        }

input[type="file"]::file-selector-button {
    display: none;
}

/* Style the custom button */
.custom-file-button {
    display: inline-block;
    cursor: pointer;
    background: none;
    border: none;
    padding: 1px;
}

/* Optional: Adjust alignment */
.input-group {
    display: flex;
    align-items: center;
}

.custom-file-button img {
    width: 32px; /* Adjust size */
    height: 32px;
}

#formFile {
    border: none; /* Removes border */
    outline: none; /* Removes focus outline */
    box-shadow: none; /* Removes Bootstrap default shadow */
}

.uploadFile {
    border: 1px solid #ced4da; /* Default border */
    border-radius: 0.375rem; /* Rounded corners */
}

.validation-summary-errors ul {
    margin-bottom: 0 !important;
}

.otp-input {
    width: 35px;
    text-align: center;
    font-size: 18px;
    margin: 5px;
    transition: color 1s ease-in-out, background-color 1s ease-in-out;
}

    .otp-input:focus-visible {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #006469;
        border-radius: 5px;
        outline: none;
    }

    .otp-input.valid {
        background-color: #2cda2c;
        opacity: 50%
    }

    .otp-input.error {
        background-color: #fa5c5c;
    }


/*for screen reader*/
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}

.cf-turnstile {
    text-align: center;
}

.ta-l {
    text-align: left;
}

/* Breadcrumbs */
.circle-breadcrumb-container {
    margin-top: 10px;
    padding: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.circle-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: fit-content;
    padding: 0 1rem;
}

.breadcrumb-item-wrapper {
    display: flex;
    align-items: center;
}

.breadcrumb-circle {
    width: 20px;
    height: 20px;
    border: 1px solid #000;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: default;
    text-decoration: none;
    position: relative;
}

a.breadcrumb-circle {
    cursor: pointer;
}

.breadcrumb-circle.visited {
    background-color: #006469;
}

.breadcrumb-circle.active {
    background-color: #FFDD00;
}

.breadcrumb-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.breadcrumb-connector {
    width: 30px;
    height: 2px;
    background-color: #dee2e6;
    margin: 0 5px;
}

/* Mobile styles */
@media (max-width: 576px) {
    .breadcrumb-connector {
        width: 20px;
        margin: 0 3px;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .breadcrumb-connector {
        width: 40px;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .breadcrumb-connector {
        width: 50px;
    }
}

/* Checkboxes styled as Radio Buttons*/
input.AcknowledgeItemCheckbox[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    position: relative;
    margin-right: 0.55em;
}

    input.AcknowledgeItemCheckbox[type="checkbox"]:checked::before {
        content: '';
        position: absolute;
        width: 30px;
        height: 30px;
        background: #FFDD00;
        border-radius: 50%;
    }

label.AcknowledgeItemLabel {
    margin-top: 0.25em;
}

/* Range/Slider */
/* Custom thumb for range input with Bootstrap's form-control class */
input[type="range"] {
    -webkit-appearance: none;
    width: 99%;
    height: 25px;
    background: transparent;
    border: none;
    outline: none;
    margin: 0 auto;
}

    input[type="range"]:focus-visible {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #006469;
    }

    input[type="range"].form-control::-webkit-slider-thumb {
        background-color: #ffdd00;
        appearance: none;
        border: 1px solid black;
        height: 20px;
        width: 20px;
        border-radius: 50%;
        cursor: pointer;
        margin-top: -8px; /* Adjusts vertical alignment */
        position: relative;
    }

    input[type="range"].form-control::-moz-range-thumb {
        background-color: #ffdd00;
        appearance: none;
        border: 1px solid black;
        height: 40px;
        width: 40px;
        border-radius: 50%;
        cursor: pointer;
    }

    input[type="range"].form-control::-ms-thumb {
        background-color: #ffdd00;
        appearance: none;
        border: 1px solid black;
        height: 40px;
        width: 40px;
        border-radius: 50%;
        cursor: pointer;
    }

    /* Track */
    /* WebKit (Chrome, Safari, Edge) */
    input[type="range"]::-webkit-slider-runnable-track {
        height: 6px;
        background: #ccc;
        border: 1px solid black;
        border-radius: 4px;
    }

    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        height: 20px;
        width: 20px;
        background: #333;
        margin-top: -6px; /* center the thumb */
        border-radius: 50%;
    }

    /* Firefox */
    input[type="range"]::-moz-range-track {
        height: 8px;
        background: #ccc;
        border-radius: 4px;
    }

    input[type="range"]::-moz-range-thumb {
        height: 20px;
        width: 20px;
        background: #333;
        border: none;
        border-radius: 50%;
    }

    /* IE (if needed) */
    input[type="range"]::-ms-track {
        height: 8px;
        background: transparent;
        border-color: transparent;
        color: transparent;
    }

    input[type="range"]::-ms-fill-lower,
    input[type="range"]::-ms-fill-upper {
        background: #ccc;
        border-radius: 4px;
    }

    input[type="range"]::-ms-thumb {
        height: 20px;
        width: 20px;
        background: #333;
        border-radius: 50%;
    }

#RepaymentPercentageCurrentValue {
    position: relative;
    top: 7px;
}

.repaymentPercentageButton {
    user-select: none;
    width: 32px;
    height: 32px;
    border-radius: 50%; /* Makes it perfectly circular */
    font-weight: bolder;
    font-size: 16px;
    border-width: 1px;
}

    .repaymentPercentageButton:focus-visible {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #006469;
    }

    .repaymentPercentageButton span {
        display: block;
        margin-top: -2px;
    }

#RepaymentPercentageRange.form-control:valid {
    background-image: none !important;
    padding-right: 0.75em; /* Optional: adjust spacing */
}

input.rifCheckbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    -webkit-appearance: none;
    appearance: none;
    background-color: white;
    border: 1px solid #aaa;
    cursor: pointer;
    position: relative;
}

    input.rifCheckbox:checked::before {
        content: "🗸";
        position: absolute;
        top: 12px;
        left: 11px;
        transform: translate(-50%, -50%);
        font-size: 26px;
        font-weight: bold;
        color: black !important;
        pointer-events: none;
    }

    input.rifCheckbox:focus-visible {
        outline: none;        
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #006469;
        border-radius: 5px;
    }

.rifBackgroundHighlight {
    background-color: #ffdd00 !important;
}

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

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #006469;
    font-weight: 500;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-control.is-valid ~ .valid-feedback {
    display: block;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.form-control.is-valid,
.was-validated .form-control:valid:not([type="file"]) {
    border-color: #006469;
    border-width: 2px;
}

.form-control:focus {
    border-color: #006469;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 100, 105, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid:focus {
    border-color: #006469;
    box-shadow: 0 0 0 0.2rem rgba(0, 100, 105, 0.25);
}
