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+PHBhdGggZD0iTTI26My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA9NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA9NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2Ni4wMTgzeiAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}

/* --- General Body Style --- */
body {
    background-color: #f4f6f9; /* A light gray background for the page */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}


/* --- Main Form Container --- */
.pre-reg-form-wrapper {
    max-width: 800px;
    /* This line centers the form on the page */
    margin: 3rem auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    overflow: hidden;
}


/* --- Form Header Styles --- */
.form-header {
    text-align: center;
    background-color: #05152e; /* Base background color */
    /* MODERN GRADIENT: A subtle gradient adds depth */
    /*background-image: linear-gradient(145deg, #34495e, #2c3e50);*/
    color: white;
    padding: 2.5rem 2rem; /* A little more padding */
}

.form-header-subtitle {
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8; /* Softer text to make the title pop */
}

.form-header-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-block: 0.5rem 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-header-description {
    font-size: 1rem;
    max-width: 600px;
    margin-inline: auto;
    opacity: 0.9;
}


/* --- Form Fields & Labels --- */
.form-label {
    font-size: 0.875rem; /* Smaller label text */
    font-weight: 500;
    color: #495057;
}

.form-control, .form-select {
    padding: 0.75rem 1rem; /* More padding inside inputs */
    border-radius: 6px; /* Consistent rounded corners */
    border: 1px solid #ced4da;
    /* SMOOTH TRANSITION: For focus effects */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control:focus, .form-select:focus {
        border-color: #86b7fe; /* Standard Bootstrap focus color */
        /* MODERN FOCUS: A subtle blue glow */
        box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
    }


/* --- Section Headers --- */
.pre-reg-form-wrapper h5 {
    padding-top: 1rem;
    border-top: 1px solid #e9ecef; /* Lighter border color */
    margin-top: 2rem; /* More space between sections */
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pre-reg-form-wrapper .p-3 > h5:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}


/* --- Checkboxes --- */
.form-check {
    padding-left: 2em;
    margin-bottom: 0.5rem;
}

    .form-check .form-check-input {
        margin-top: 0.25em;
        float: left;
        margin-left: -2em;
    }

.form-check-label {
    font-size: 0.95rem;
}


/* --- Footer Section --- */
.form-footer {
    margin-top: 1rem;
    padding: 2rem;
    background-color: #f8f9fa; /* A slightly off-white footer */
}

.privacy-note i {
    font-size: 1.5rem;
    color: #198754; /* Bootstrap success green */
}


/* --- Submit Button --- */
.btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    /* Button Hover Effect */
    transition: transform 0.1s ease-out;
}

    .btn-primary:hover {
        transform: translateY(-2px); /* Lifts the button slightly */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
/* --- Address Search Component --- */

/* The main container needs to be relative for positioning the spinner */
.address-search-container {
    position: relative;
}

    /* Add padding to the input so text doesn't overlap the spinner */
    .address-search-container .form-control {
        padding-right: 2.5rem;
    }

    /* Spinner positioning and style */
    .address-search-container .spinner-border {
        position: absolute;
        top: 50%; /* Vertically center the spinner */
        right: 0.8rem;
        transform: translateY(-50%);
        /* Add a smooth fade-in/fade-out effect */
        opacity: 1;
        transition: opacity 0.2s ease-in-out;
    }



/* Results dropdown positioning */
.address-results {
    position: absolute;
    z-index: 1000;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 767.98px) {
    .pre-reg-form-wrapper {
        margin: 1rem;
    }

    .form-header-title {
        font-size: 1.8rem;
    }
    .form-check{
        padding-left:0px!important;
    }
    label{
        display:inline!important;
    }
}

/* --- Modern Search Button Style --- */

.btn-modern-search {
    border: none;
    color: white;
    font-weight: 500;
    /* UPDATED: Using your specified HSL color */
    background-color: hsl(213, 78%, 25%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

    .btn-modern-search:hover, .btn-modern-search:focus {
        color: white;
        /* UPDATED: Using the darker HSL color for hover (25% * 0.7 = 17.5%) */
        background-color: hsl(213, 78%, 17.5%);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    /* Style for when the button is disabled during loading */
    .btn-modern-search:disabled {
        background-image: none;
        background-color: #6c757d;
        opacity: 0.65;
        transform: translateY(0);
        box-shadow: none;
    }

.thank-you-wrapper {
    background-color: #f4f6f9;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 900px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}

.thank-you-body {
    padding: 3rem;
    text-align: center;
    color: #34495e;
}

    .thank-you-body h1 {
        font-size: 3rem;
        font-weight: 300;
    }

.thank-you-logo {
    height: 60px;
    margin-right: 1.5rem;
}

.thank-you-body h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.thank-you-body p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.info-links-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

    .info-links-section ul {
        margin-top: 1rem;
    }

    .info-links-section li {
        margin-bottom: 0.5rem;
    }

    .info-links-section a {
        margin-left: 0.5rem;
        font-weight: 500;
    }

.property-search-results {
    padding: 0;
}



    .property-search-results .listview-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.25rem; /* More spacious padding */
        border-bottom: 1px solid #e9ecef; /* Lighter border */
        transition: background-color 0.15s ease-in-out; /* Smooth hover effect */
    }

        /* Add a hover effect to the entire row */
        .property-search-results .listview-item:hover {
            background-color: #f8f9fa; /* Light gray background on hover */
        }

        .property-search-results .listview-item:last-child {
            border-bottom: none;
        }

    /* Style the text part of the item */
    .property-search-results .listview-item-content strong {
        font-size: 1rem;
        font-weight: 500;
        color: #212529;
    }

    .property-search-results .listview-item-content small {
        font-size: 0.875rem;
        color: #6c757d; /* Softer color for the folio */
    }

    /* Ensure the button is styled correctly */
    .property-search-results .listview-item .k-button {
        /* This targets the Telerik button inside the item */
        margin-left: 1rem; /* Add some space between text and button */
    }

.searchcomponet-row {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* spacing between the textbox and button */
    width: 100%;
}

    /* Optional: make input take remaining space */
    .searchcomponet-row .PropertySearchMask {
        flex-grow: 1;
    }

.PropertySearchMask {
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    transition: border-color 0.5s ease-in-out;
    font-size: 1rem;
    color: #333;
}

.searchcomponet-row .PropertySearchMask {
    flex-grow: 1;
}

/* Optional: unify height and alignment of button */
.search-btn {
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white !important;
    border-color: white !important;
    transition: all 0.2s ease-in-out;
    
}

    .search-btn svg {
        color: #003366; /* dark blue icon */
        transition: transform 0.2s ease-in-out, color 0.2s;
    }

    /* Scale the icon slightly on hover */
    .search-btn:hover svg {
        transform: scale(1.2);
        color: #001a33; /* optionally darken the icon on hover */
    }
    /*.search-btn:focus .k-svg-icon {*/
        /* Change the icon's color to the primary blue */
        /*color: #0d6efd;*/
        /* Add a subtle "glow" effect using a drop-shadow filter */
        /*filter: drop-shadow(0 0 3px rgba(13, 110, 253, 0.5));
    }
    .search-btn:focus {*/
        /* Change the icon's color to the primary blue */
        /*color: #0d6efd;
        background-color: white !important;
        border-color: white !important;*/
        /* Add a subtle "glow" effect using a drop-shadow filter */
        /*filter: drop-shadow(0 0 3px rgba(13, 110, 253, 0.5));
    }*/
  



    .PropertySearchMask:focus-within {
        border-bottom: 1px solid #3f51b5 !important; /* dark blue */
        outline: none !important;
        box-shadow: none !important;
    }


.btn-TelerikCustom {
    background-color: #21618C !important;
    color: white !important;
    width: 300px !important;
    border-color: #1861ac !important;
    font-size: medium !important;
    border-radius: 5px; /* Optional: rounded corners */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3), 0px 1px 3px rgba(0, 0, 0, 0.08); /* Creates depth */
    transition: all 0.2s ease-in-out; /* Smooth transition for hover */
}

/* Main container for the search component */
.search-container-modern {
    border: 1px solid #dee2e6; /* Light border around the whole component */
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Keeps child elements within the rounded corners */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Subtle shadow */
}

/* Header style for the "Search Property" title */
.search-header-modern {
    background-color: #f8f9fa; /* A very light grey background */
    color: #495057; /* Dark grey text color */
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6; /* Separator line */
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
}

.k-qrcode.modern-qrcode {
    /* Spacing and Centering */
    margin: 2rem auto;
    display: block;
    width: fit-content;
    /* Card Appearance */
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

/* Optional: Remove the top border from the Telerik TabStrip to blend it with the header */
.search-container-modern .k-tabstrip {
    border-top: none;
}

/* Custom style for an extra-large Telerik button */
.btn-xl-custom {
    padding: 0.8rem 2.5rem; /* Increases padding for a larger surface area */
    font-size: 1.1rem; /* Makes the text slightly larger */
}

/* Target the Telerik Window's content area */
.k-window-content {
    /*
     * Sets a maximum height relative to the viewport height (e.g., 70vh is 70% of the viewport height).
     * Adjust this value as needed.
    */
    max-height: 70vh;
    /* Adds a vertical scrollbar only when the content overflows the max-height */
    overflow-y: auto;
}

/* Example for mobile devices */
@media (max-width: 768px) {
    .k-window {
        /* Makes the window take up more of the screen width on smaller devices */
        width: 90% !important;
    }

    .k-window-content {
        /* You might want a different height for mobile */
        max-height: 60vh;
    }
}


/* Target the Telerik Window's content area */
.k-window-content {
    /*
     * Sets a maximum height relative to the viewport height (e.g., 70vh is 70% of the viewport height).
     * Adjust this value as needed.
    */
    max-height: 70vh;
    /* Adds a vertical scrollbar only when the content overflows the max-height */
    overflow-y: auto;
}

/* Example for mobile devices */
@media (max-width: 768px) {
    .k-window {
        /* Makes the window take up more of the screen width on smaller devices */
        width: 90% !important;
    }

    .k-window-content {
        /* You might want a different height for mobile */
        max-height: 60vh;
    }
}

/* --- Simple & Clean Style for "What Brings You" Section --- */

/* Add spacing between each radio button option */
.k-radio-item {
    margin-bottom: 1.5rem;
}

    /* Make the main title for each option stand out */
    .k-radio-item .form-check-label {
        font-weight: 700; /* Bolder text */
        font-size: 1rem;
        color: #212529;
        display: block; /* Ensures it takes its own line */
    }

/* Style the block of details text */
.reason-details {
    margin-top: 0.5rem;
    padding-left: 1.75rem; /* Indent all the details */
    font-size: 0.9rem; /* Slightly smaller font */
    color: #495057; /* Lighter text color */
}

    /* Clean up the bullet points */
    .reason-details ul {
        margin-top: 0.5rem;
        padding-left: 1.25rem;
    }

    .reason-details li {
        margin-bottom: 0.25rem;
    }

/* Consent drop/expand animation */
.consent-collapse {
 max-height:0;
 overflow: hidden;
 opacity:0;
 transform: translateY(-6px);
 transition: max-height 250ms ease, opacity 200ms ease, transform 250ms ease;
 will-change: max-height, opacity, transform;
 visibility: hidden; /* hide until expanded */
}

.consent-collapse.expanded {
 max-height:240px; /* large enough to fit the content */
 opacity:1;
 transform: translateY(0);
 visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
 .consent-collapse { transition: none; }
}

body .maintenance-banner {
    display: block;
    width: 100%;
    padding: 10px 16px !important;
    background-color: #fff3cd !important; /* light yellow */
    border-bottom: 1px solid #ffeeba !important;
    font-family: system-ui, sans-serif !important;
}



