﻿:root {
    /* Brand Colors - Unchanged */
    --brand-blue: #004bbb;
    --brand-dark-grey: #555350;
    --brand-white: #ffffff;
    --brand-light-grey: #e4e4e4;
    /* New Complementary Colors */
    --brand-blue-100: #e6f0ff;
    --brand-blue-200: #cce0ff;
    --brand-blue-300: #99c2ff;
    --brand-blue-400: #66a3ff;
    --brand-blue-500: #3385ff;
    --brand-blue-600: #004bbb; /* Brand Blue */
    --brand-blue-700: #003d96;
    --brand-blue-800: #002e70;
    --brand-blue-900: #001f4d;
    /* Extended Grey Scale */
    --grey-100: #f8f9fa;
    --grey-200: #e9ecef;
    --grey-300: #dee2e6;
    --grey-400: #ced4da;
    --grey-500: #adb5bd;
    --grey-600: #6c757d;
    --grey-700: #495057;
    --grey-800: #343a40;
    --grey-900: #212529;
    /* Extended Color Palette */
    --accent-blue-light: #3377cc;
    --accent-blue-dark: #003d96;
    --accent-grey-warm: #6e6b67;
    --accent-grey-cool: #4a4a4a;
    --success-green: #2e8540;
    --warning-yellow: #fdb81e;
    --error-red: #d83933;
    --info-cyan: #02bfe7;
    /* Gradients */
    --gradient-blue-horizontal: linear-gradient(90deg, var(--brand-blue-700) 0%, var(--brand-blue-300) 100%);
    --gradient-blue-vertical: linear-gradient(180deg, var(--brand-blue) 0%, var(--brand-white) 100%);
    --gradient-blue-diagonal: linear-gradient(45deg, var(--brand-blue) 0%, var(--accent-blue-light) 100%);
    --gradient-blue-reverse: linear-gradient(270deg, var(--brand-blue) 0%, var(--accent-blue-light) 100%);
    /* Surface Colors */
    --surface-light: #f8f9fa;
    --surface-medium: #f1f3f5;
    --surface-dark: #e9ecef;
    /* Text Colors */
    --text-primary: var(--brand-dark-grey);
    --text-secondary: var(--accent-grey-warm);
    --text-disabled: rgba(0, 0, 0, 0.38);
    /* Functional Color Assignments */
    --nav-bg: var(--brand-dark-grey);
    --nav-text: var(--brand-white);
    --btn-bg: var(--brand-blue);
    --btn-bg-hover: #003d96;
    --btn-text: var(--brand-white);
    --border-color: var(--brand-light-grey);
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'PT Sans', sans-serif;
    --success-title-font-size: 5.7rem;
    /* Spacing */
    --space-1: 0.25rem; /* 4px */
    --space-2: 0.5rem; /* 8px */
    --space-3: 1rem; /* 16px */
    --space-4: 1.5rem; /* 24px */
    --space-5: 2rem; /* 32px */
    --space-6: 3rem; /* 48px */
    --space-7: 3.5rem;
    --space-8: 4rem;
    --space-9: 5rem;
    --space-10: 6rem;
    --space-content: 8rem;
    --nav-height: 85px;
    --btn-padding: 0.5rem 1rem;
    /* Border */
    --border-radius-xs: 3px;
    --border-radius-sm: 5px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    /* Form Specific */
    --input-focus-shadow: 0 0 0 2px var(--brand-blue-200);
    --input-transition: all 0.2s ease-in-out;
    --form-gap: 1.8rem;
}

/* CSS reset for all components and elements for easier styling and spacing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
}

/* Responsive Typography System */
html {
    font-size: 48%; /* 8px base - Mobile First */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.06em;
}

@media screen and (min-width: 576px) {
    html {
        font-size: 48%;
    }
}

@media screen and (min-width: 768px) {
    html {
        font-size: 52%;
    }
}

@media screen and (min-width: 1200px) {
    html {
        font-size: 54%;
    }
}

@media screen and (min-width: 1600px) {
    html {
        font-size: 60%;
    }
}

@media screen and (min-width: 2556px) {
    html {
        font-size: 74%;
    }
}


/* Sets the default font family */
html, body {
    font-family: var(--font-secondary);
}

/* Global css font classes */
.text-font-primary {
    font-family: var(--font-primary);
}

.text-font-secondary {
    font-family: var(--font-secondary);
}

.text-italic {
    font-style: italic;
}

.text-start {
    text-align: left;
}

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

.text-end {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-white {
    color: var(--brand-white);
}

.text-brand {
    color: var(--brand-blue);
}

.text-h1 {
    font-size: 5.7rem;
    font-weight: 400;
}

.text-h2 {
    font-size: 4.5rem;
    font-weight: 400;
}

.text-h3 {
    font-size: 3.6rem;
    font-weight: 400;
}

.text-h4 {
    font-size: 3.2rem;
    font-weight: 400;
}

.text-h5 {
    font-size: 2.8rem;
    font-weight: 400;
}

.text-h6 {
    font-size: 2.4rem;
    font-weight: 400;
}

.text-h7 {
    font-size: 2.2rem;
    font-weight: 400;
}

.text-h8 {
    font-size: 2rem;
    font-weight: 400;
}

.text-body-1 {
    font-size: 1.8rem;
    font-weight: 400;
}

.text-body-2 {
    font-size: 1.6rem;
    font-weight: 400;
}

.text-body-3 {
    font-size: 1.4rem;
    font-weight: 400;
}

.text-body-4 {
    font-size: 1.2rem;
    font-weight: 400;
}

.text-bold {
    font-weight: bold;
}

.text-bolder {
    font-weight: bolder;
}

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

/*Global spacing class System */
.w-100 {
    width: 100%;
}

.w-75 {
    width: 75%;
}

.w-50 {
    width: 50%;
}

.w-25 {
    width: 25%;
}

/*Global flex class System */
.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-space-between {
    justify-content: space-between;
}

/* Global css for page wrapping */
.page-wrap {
    max-width: 1350px;
    min-height: calc(100vh - (2 * var(--nav-height) + 3rem));
    margin-top: 3rem;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem;
}

.component-wrap {
    width: 100%;
    min-height: calc(75vh - (2 * var(--nav-height) + 3rem));
    margin-top: 3rem;
    padding: 2.5rem;
}

.bg-blue-wrap {
    background-color: var(--brand-blue);
}

/* Global input field classes */
.input-label {
    display: block;
}

.input-field {
    display: block;
    border-radius: var(--border-radius-md);
    border: solid 1px;
    padding: 0.5em 1em;
    width: 100%;
    transition: var(--input-transition);
}

    .input-field:focus {
        outline: none;
        border-color: var(--brand-blue);
        box-shadow: var(--input-focus-shadow);
    }

    .input-field:disabled {
        background-color: var(--grey-200);
        cursor: not-allowed;
    }

/* Global button classes */
.solid-btn {
    padding: 0.5em 2em;
    background-color: var(--brand-blue);
    border-radius: var(--border-radius-md);
    border: 2px solid var(--brand-blue);
    color: white;
    text-transform: uppercase;
    cursor: pointer;
}

    .solid-btn.block {
        width: 100%;
    }

.outlined-btn {
    padding: 0.5em 2em;
    border: solid var(--brand-blue) 2px;
    border-radius: var(--border-radius-md);
    background-color: transparent;
    text-align: center;
    color: var(--brand-blue);
    text-transform: uppercase;
    cursor: pointer;
}

    .outlined-btn:hover {
        background-color: var(--brand-blue);
        color: var(--brand-white);
        transition: all 0.3s ease;
    }

    .outlined-btn.block {
        width: 100%;
    }

.delete-btn {
    padding: 0.5em 2em;
    border: solid var(--error-red) 2px;
    border-radius: var(--border-radius-md);
    background-color: transparent;
    text-align: center;
    color: var(--error-red);
    text-transform: uppercase;
    cursor: pointer;
}

    .delete-btn:hover {
        background-color: var(--error-red);
        color: var(--brand-white);
    }

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    color: white;
}

.loading-progress {
    margin: 20vh auto 1rem auto;
}

.loading-progress-text {
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: transparent;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    color: #666;
}

/* Custom success title style applied in SuccessStories & HowItWorks */
.success-title {
    font-size: var(--success-title-font-size);
    font-weight: 500;
}

/* Responsive Adjustments */
@media screen and (max-width: 576px) {
    :root {
        --container-padding: var(--space-3);
    }

    .text-h1 {
        font-size: 4.2rem;
    }

    .text-h2 {
        font-size: 3.6rem;
    }

    .text-h3 {
        font-size: 3rem;
    }

    .text-h4 {
        font-size: 2.8rem;
    }

    .text-h5 {
        font-size: 2.4rem;
    }

    .text-h6 {
        font-size: 2rem;
    }

    .text-h7 {
        font-size: 1.8rem;
    }

    .text-h8 {
        font-size: 1.6rem;
    }
}

/* High-DPI Screen Optimizations */
@media screen and (min-resolution: 192dpi) {
    html {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Initial loader styling */
.preloader-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-blue-900) 0%, var(--brand-blue-800) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    animation: fadeOut 0.5s ease-out 2.5s forwards;
}

.premium-loader {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-text {
    color: var(--brand-white);
    font-weight: 600;
    font-size: 3.6rem;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
    text-shadow: 0 0 30px rgba(var(--brand-blue-300), 0.5);
    animation: pulseText 3s infinite;
}

.broken-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: systemRotate 12s linear infinite;
}

.circle {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: center;
}

.circle-path {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 100;
}

.c1 {
    animation: spinCircle 6s linear infinite;
}

    .c1 .circle-path {
        stroke: var(--brand-blue-300);
        stroke-dashoffset: 200;
    }

.c2 {
    width: 80%;
    height: 80%;
    margin: 10%;
    animation: spinCircle 4s linear infinite reverse;
}

    .c2 .circle-path {
        stroke: var(--accent-blue-light);
        stroke-dashoffset: 150;
    }

.c3 {
    width: 60%;
    height: 60%;
    margin: 20%;
    animation: spinCircle 3s linear infinite;
}

    .c3 .circle-path {
        stroke: var(--brand-blue-500);
        stroke-dashoffset: 180;
    }

@keyframes spinCircle {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes systemRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes pulseText {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
        text-shadow: 0 0 20px rgba(var(--brand-blue-300), 0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
        text-shadow: 0 0 30px rgba(var(--brand-blue-300), 0.5);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        visibility: visible;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Central form styling for consistency across all forms */
.form-group {
    margin-bottom: var(--form-gap);
    width: 100%;
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem 1.4rem;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--brand-white);
    border: 1px solid var(--grey-400);
    border-radius: var(--border-radius-md);
    transition: var(--input-transition);
}

    .form-control:focus {
        border-color: var(--brand-blue);
        outline: 0;
        box-shadow: var(--input-focus-shadow);
    }

    .form-control:disabled {
        background-color: var(--grey-200);
        opacity: 0.6;
        cursor: not-allowed;
    }

    .form-control::placeholder {
        color: var(--grey-500);
        opacity: 1;
    }

/* Validation styling */
.validation-message {
    display: block;
    width: 100%;
    margin-top: var(--space-1);
    font-size: 1.4rem;
    color: var(--error-red);
}

.invalid {
    border-color: var(--error-red);
}

    .invalid:focus {
        border-color: var(--error-red);
        box-shadow: 0 0 0 2px rgba(216, 57, 51, 0.25);
    }

.valid.modified:not([type=checkbox]) {
    border-color: var(--success-green);
}

/* Form row for side-by-side inputs */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

    .form-row > .form-group {
        flex: 1 0 0%;
        min-width: 250px;
    }

/* Checkbox and radio styling */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-2);
}

.form-check-input {
    margin-right: var(--space-2);
    width: 1.8rem;
    height: 1.8rem;
}

.form-check-label {
    font-size: 1.6rem;
    color: var(--text-primary);
}

/* Select styling - updated for better coverage of all select elements */
select.form-control,
select.input-field,
.select-wrapper select,
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 3rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

    /* For IE10 and IE11 */
    select.form-control::-ms-expand,
    select.input-field::-ms-expand,
    .select-wrapper select::-ms-expand,
    .form-group select::-ms-expand {
        display: none;
    }

/* Ensure select elements inside percentage groups don't have conflicting arrows */
.percentage-input-group select {
    background-image: none;
}

/* File input styling */
.file-input-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.file-drop-zone {
    border: 2px dashed var(--grey-400);
    border-radius: var(--border-radius-md);
    padding: var(--space-4);
    text-align: center;
    transition: all 0.3s ease;
    background-color: var(--surface-light);
    cursor: pointer;
}

    .file-drop-zone:hover {
        border-color: var(--brand-blue-400);
    }

    .file-drop-zone.dragover {
        border-color: var(--brand-blue);
        background-color: var(--brand-blue-100);
    }

.file-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2);
    background-color: var(--surface-light);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--grey-300);
}

.file-remove {
    color: var(--error-red);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    padding: var(--space-1);
}

/* Date/time picker styling */
.datetime-picker {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

    .datetime-picker .form-group {
        flex: 1;
        min-width: 150px;
    }

/* Card styling for grouped form elements */
.form-card {
    background-color: var(--brand-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.form-card-header {
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--grey-200);
}

.form-card-title {
    font-size: 2rem;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.form-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: var(--space-2);
    }

        .form-row > .form-group {
            min-width: 100%;
        }

    .datetime-picker {
        flex-direction: column;
    }

    .form-card {
        padding: var(--space-3);
    }
}

/* Update this in your app.css file */
.preloader-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*    background: linear-gradient(135deg, var(--brand-blue-900) 0%, var(--brand-blue-800) 100%);*/
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.preloader-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-part-one {
    width: 400px;
    height: 300px;
    background: #fff;
    clip-path: polygon( 0% 100% /*1*/, 40% 0% /*2*/, 60% 0% /*3*/, 100% 100% /*4*/, 80% 100% /*5*/, 50% 20% /*6*/, 20% 100% /*7*/ );
    animation: logoPulse ease-in-out 1s infinite;
}

.logo-part-two {
    width: 240px;
    height: 300px;
    background: #fff;
    clip-path: polygon( 0% 0% /*1*/, 33% 0% /*2*/, 100% 100% /*3*/, 66% 100% /*4*/);
    animation: logoPulse ease-in-out 1s infinite;
    margin-left: -60px;
}

/* Styles for very small phones */
@media screen and (max-width: 480px) {
    .logo-part-one {
        width: 160px;
        height: 120px;
    }

    .logo-part-two {
        width: 96px;
        height: 120px;
        margin-left: -24px;
    }
}

/* Styles for mobile phones and small tablets */
@media screen and (max-width: 768px) {
    .logo-part-one {
        width: 240px;
        height: 180px;
    }

    .logo-part-two {
        width: 144px;
        height: 180px;
        margin-left: -36px;
    }
}

/* Styles for tablets */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .logo-part-one {
        width: 320px;
        height: 240px;
    }

    .logo-part-two {
        width: 192px;
        height: 240px;
        margin-left: -48px;
    }
}

/* Styles for small laptops and desktops */
@media screen and (min-width: 1025px) and (max-width: 1280px) {
    .logo-part-one {
        width: 360px;
        height: 270px;
    }

    .logo-part-two {
        width: 216px;
        height: 270px;
        margin-left: -54px;
    }
}

/* Styles for medium-sized desktops */
@media screen and (min-width: 1281px) and (max-width: 1600px) {
    .logo-part-one {
        width: 400px;
        height: 300px;
    }

    .logo-part-two {
        width: 240px;
        height: 300px;
        margin-left: -60px;
    }
}
}

/* Styles for large desktops or TVs */
@media screen and (min-width: 1601px) {
    .logo-part-one {
        width: 480px;
        height: 360px;
    }

    .logo-part-two {
        width: 288px;
        height: 360px;
        margin-left: -72px;
    }
}

@keyframes drawA {
    0% {
        clip-path: polygon( 0% 100% /*1*/, 0% 100% /*2*/, 0% 100% /*3*/, 0% 100% /*4*/, 20% 100% /*5*/, 20% 100% /*6*/, 20% 100% /*7*/
        );
    }

    40% {
        clip-path: polygon( 0% 100% /*1*/, 40% 0% /*2*/, 40% 0% /*3*/, 40% 0% /*4*/, 50% 20% /*5*/, 50% 20% /*6*/, 20% 100% /*7*/
        );
    }

    60% {
        clip-path: polygon( 0% 100% /*1*/, 40% 0% /*2*/, 60% 0% /*3*/, 60% 0% /*4*/, 50% 20% /*5*/, 50% 20% /*6*/, 20% 100% /*7*/
        );
    }

    100% {
        clip-path: polygon( 0% 100% /*1*/, 40% 0% /*2*/, 60% 0% /*3*/, 100% 100% /*4*/, 80% 100% /*5*/, 50% 20% /*6*/, 20% 100% /*7*/
        );
    }
}

@keyframes drawI {
    0% {
        clip-path: polygon( 0% 0% /*1*/, 33% 0% /*2*/, 33% 0% /*3*/, 0% 0% /*4*/
        );
    }

    100% {
        clip-path: polygon( 0% 0% /*1*/, 33% 0% /*2*/, 100% 100% /*3*/, 66% 100% /*4*/
        );
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.seal-image {
    height: 90px;
    width: auto;
}

@media (max-width: 768px) {
    .seal-image {
        height: 45px;
    }
}