@import url("https://fonts.googleapis.com/css?family=Lato");

html, body {
    font-family: 'Lato' !important;
    height: 100%;
    margin: 0;
}

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

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

h1 {
    font-family: 'Lato' !important;
    font-weight: 700 !important;
    font-size: 40px !important;
    line-height: 100% !important;
    color: var(--AcquisNavy) !important;
}

h3 {
    color: var(--LightGray) !important;
    font-family: 'Lato' !important;
    font-size: 20px;
    line-height: 145%;
}

h5 {
    font-family: 'Lato' !important;
    font-weight: 400 !important;
    font-size: 20px !important;
    line-height: 145% !important;
    color: var(--LightGray) !important;
}

h6 {
    font-family: 'Lato' !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    line-height: 145% !important;
    color: #FFFFFF !important;
}

.content {
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #F0F8FA;
    padding-left: 5vw;
    padding-right: 5vw;
    padding-top: 1.1rem;
    padding-bottom: 1rem;
    align-items: center;
}

.bold {
    font-weight: 700 !important;
}

h1:focus {
    outline: none;
}

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

.validation-message {
    color: #e50000;
}

.mandatory-field-indicator {
    color: red;
    padding-left: 5px;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5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4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error 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;
}

/* ----- Blazority Modal overrides ----- */
*:has(> clr-modal.open:not(:has(.no-blur))) > *:not(clr-modal) {
    filter: blur(2px);
}

.modal:has(> .position-absolute-start) {
    position: absolute !important;
    justify-content: start !important;
    font-family: 'Lato' !important;
}

.modal-dialog {
    margin: 0 !important;
    width: fit-content !important;
    border-radius: 24px !important;
    padding: 16px 24px 16px 24px;
}

.modal-content {
    padding: 0 !important;
    box-shadow: 0px 0px 6px 0px var(--grey);
    border: none;
}

.modal-dialog:not(.round-corners) .modal-content {
    border-radius: 22px !important;
}

.modal-dialog.round-corners .modal-content {
    border-radius: 22px !important;
}

.modal-header, .modal-footer {
    padding: 0 !important;
}

    .modal-header:has(div) {
        border-bottom: 0.5px solid var(--darkGrey) !important;
    }

    .modal-footer:has(div) {
        border-top: 0.5px solid var(--darkGrey) !important;
    }

    .modal-header:not(:has(div)) {
        border: none !important;
    }

    .modal-footer:not(:has(div)) {
        border: none !important;
    }

.modal-title {
    width: 100% !important;
}

.modal-footer {
    padding: 0 !important;
}

.modal-backdrop {
    background: transparent !important;
}

.modal-body {
    padding: 0 !important;
    border-radius: 22px;
    border: none;
}

/*Removes the background from modals which blocks interaction with the rest of the app*/
.modal:has(.allow-background-interaction) {
    top: 50% !important;
    left: 50% !important;
    bottom: unset !important;
    right: unset !important;
    transform: translate(-50%, -50%) !important;
    padding: 0 !important;
    overflow: hidden !important;
    width: auto !important;
    height: auto !important;
    box-shadow: 0px 0px 5px 4px var(--grey) !important;
}

/* ----- Base Styling (override on specific .razor.css files if needed ----- */
label {
    font-size: 16px;
    font-weight: 400;
}


/* ----- Buttons ----- */

button {
    border-radius: 24px !important;
    border: 1px solid !important;
    padding: 8px 16px 8px 16px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    width: fit-content;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    color: #fff;
    background-color: var(--PrimaryBlue);
}

    .btn-primary:disabled {
        background-color: #AFC9FA;
        border-color: #AFC9FA;
    }

.btn-secondary {
    border-color: var(--PrimaryBlue);
    background-color: white;
    color: var(--PrimaryBlue);
}

.btn-clear {
    background-color: transparent !important;
    border: none !important;
}

.back-btn {
    font-weight: 700 !important;
}

.right {
    margin-left: auto;
}

.left {
    margin-right: auto;
}

/* ----- Labels ----- */
.primary-label {
    font-weight: 700;
    line-height: 150%;
    color: var(--AcquisNavy) !important;
}

.secondary-label {
    color: var(--LightGray);
    font-weight: 500;
}

.link-label {
    color: var(--PrimaryBlue) !important;
    font-weight: 500;
    font-size: 16px !important;
    text-decoration: none;
}

    .link-label.contact-us-label {
        font-weight: 700 !important;
        padding-left: 5px;
    }

        .link-label.contact-us-label:hover {
            cursor: pointer;
        }


.icon-wrapper {
    width: 24px;
    height: 24px;
    background-color: var(--Neutral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    font-size: 24px;
}

.icon-wrapper img {
    width: 18px;
    height: 18px;
}

/* ----- Input Fields ----- */
.form-group {
    padding-top: 8px;
    padding-bottom: 8px;
}

    .form-group label {
        font-size: 16px;
        line-height: 140%;
        color: var(--AcquisNavy);
        padding-bottom: 4px;
    }

    .form-group .input-header-row {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-bottom: 4px;
    }

        .form-group .input-header-row label {
            padding-bottom: 0px !important;
        }

    /*.form-group input:not(type=["checkbox"]), .form-group select*/

    .form-group input, .form-group select {
        border: 1px solid #AAB1B2;
        border-radius: 24px;
        height: 50px;
        padding: 12px 16px; /* Add proper padding to center content */
        box-sizing: border-box; /* Ensure padding is included in height calculation */
        /*line-height: 50px;*/
        font-size: 16px;
    }

    .form-group textarea {
        border: 1px solid #AAB1B2;
        border-radius: 24px;
        font-size: 16px;
    }

    .form-group:has(.validation-message) input, .form-group:has(.validation-message) select, .form-group:has(.validation-message) textarea {
        border: 1px solid #FF000D;
    }

    .form-group input::placeholder, .form-group select::placeholder {
        color: #AAB1B2 !important;
        font-size: 16px;
    }

    .form-group.radio-group-component {
        text-align: center;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 12px;
        border-radius: 24px;
        gap: 8px;
    }

    .form-group textarea::placeholder {
        color: #797E80;
        font-size: 16px;
    }

.selectField {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23012944' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    padding-right: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: normal; /* Override the line-height from the general select rule */
    display: flex;
    align-items: center; /* This ensures vertical centering */
}

.module-container {
    margin-top: 3vh;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 5vh;
    width: 400px;
}

    .module-container .link-label {
        font-weight: 700 !important;
    }

    .module-container .button-row {
        display: flex;
        width: 100%;
        padding-top: 16px;
        justify-content: center;
        align-items: center;
    }

        .module-container .button-row:has(> * + *) {
            justify-content: space-between;
        }


.loading-spinner-label {
    display: flex;
    vertical-align: middle;
    justify-content: center;
    gap: 5px;
}

.loading-spinner {
    display: inherit;
    width: 24px;
    height: 24px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Custom Modal Container / styling */

.portal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
    z-index: 1000;
}

.portal-modal-content {
    margin: 0 !important;
    width: fit-content !important;
    border-radius: 24px !important;
    padding: 16px 24px 16px 24px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-in-out;
}


.fade-in {
    animation: fadeIn 0.3s ease-in-out forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.start-box {
    width: 300px;
    border-radius: 24px;
    border: 1px solid var(--PrimaryBlue);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 5vh;
    margin-bottom: 5vh;
    background-color: white;
    align-items: center;
}

    .start-box .btn-primary {
        width: 100%;
    }

    .start-box label {
        text-align: center;
    }

    .start-box .icon-wrapper {
        width: 52px;
        height: 52px;
    }

        .start-box .icon-wrapper img {
            width: 40.1px;
            height: 40.1px;
        }


.statements-container {
    background-color: var(--LightBlue);
    padding: 24px 32px 24px 32px;
    border-radius: 24px;
}

    .statements-container .form-group label {
        font-size: 14px !important;
    }


/* Blazority Progress bar overrides */
.progress {
    border-radius: 24px !important;
}

/* Telephone Input Styles */
.telephone-input-container {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

    .telephone-input-container:focus-within {
        border-color: #258cfb;
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }

.country-code-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
    min-width: 120px;
    user-select: none;
    z-index: 1;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.current-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    width: 100%;
}

    .current-option img {
        width: 20px;
        height: 20px;
        border-radius: 2px;
        object-fit: cover;
    }

.country-code-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.dropdown-arrow {
    font-size: 10px;
    color: #666;
    transition: transform 0.2s ease;
    margin-left: auto;
}

    .dropdown-arrow.open {
        transform: rotate(180deg);
    }

.telephone-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    margin-top: 4px;
}

    .telephone-dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.country-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    margin: 4px;
}

    .country-option:hover {
        background-color: #e3f2fd;
    }

    .country-option.selected {
        background-color: #e3f2fd;
        font-weight: 500;
    }

    .country-option img {
        width: 20px;
        height: 20px;
        border-radius: 2px;
        object-fit: cover;
    }

.telephone-number-input {
    flex: 1;
}

    .telephone-number-input input {
        border: none;
        outline: none;
        padding: 12px 16px;
        width: 100%;
        font-size: 14px;
        background: transparent;
    }

        .telephone-number-input input::placeholder {
            color: #999;
        }

.dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

.rotate {
    transform: rotate(180deg)
}

.popover {
    background-color: transparent !important;
    border: none !important;
}

.daterangepicker .drp-buttons .btn {
    height: 40px !important;
}

.toast-popup {
    display: flex;
    border-radius: 16px;
    padding: 10px 16px 14px 16px;
    gap: 8px;
}

/* ----- This part ensures it hovers in the center ----- */
.toast-popup {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.4s ease-out forwards;
}

    .toast-popup.info {
        border: 2px solid var(--PrimaryBlue);
        background-color: #EDF2FA;
    }

    .toast-popup.warning {
        background-color: #FFF9E5 !important;
        border: 2px solid #FFD966 !important;
    }

    .toast-popup .toast-icon {
        margin-top: auto;
        margin-bottom: auto;
        height: auto;
    }

    .toast-popup .text-div {
        display: flex;
        flex-direction: column;
        padding-top: 4px;
        align-self: center;
    }

    .toast-popup .close-icon {
        margin-left: auto;
    }

    .toast-popup .toast-title {
        font-weight: 700;
        font-size: 16px;
        color: var(--AcquisNavy);
    }

    .toast-popup .toast-desc {
        font-size: 16px;
        color: var(--AcquisNavy);
    }

    .toast-popup.dismiss {
        animation: slideUp 0.3s ease-in forwards;
    }

    .toast-popup .button-row {
        padding-top: 15px;

        display: flex;
        width: 100%;
        justify-content: flex-end;
        gap: 16px;
        flex: 1;
    }

    .toast-popup .button-row button {
        width: 40%;
        height: 40px;
    }

/* ----- Animation ----- */
@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    to {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
}

.toast-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 9998; /* Just below the popup (9999) */
}
