html, body {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #445383;
}

a, .btn-link {
    color: #445383;
}

.main-content {
    padding-top: 2.5rem;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

.content {
    padding-top: 1.1rem;
}

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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9OC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA9NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2IDY2LjA1ODMgMjYzLjU3NiA2OC4wNTQ3IDI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgmMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcggODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}

.pfs-header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    overflow: visible; /* Allow dropdowns to overflow */
}

.pfs-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-link img,
.logo-font-link img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0px;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 2.3rem; /* Slightly increased gap for bubble effect */
}

.main-nav ul li {
    position: relative;
    margin-left: 0 !important; /* Remove custom left margins for consistency */
    margin-right: 0 !important; /* Remove custom right margins for consistency */
}

/* Remove any previous margin overrides for specific li elements */
.main-nav ul li:first-child,
.main-nav ul li:nth-child(2),
.main-nav ul li:nth-child(3),
.main-nav ul li:nth-child(4),
.main-nav ul li:nth-child(5) {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.main-nav ul li:hover > .sub-menu {
    display: block;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

.sub-menu li {
    margin: 0.5rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem; 
}

.site-logo {
    max-height: 100px;
    height: 100px;
    width: auto;
    display: block;
    margin: 0; /* Remove any margin around the logo */
    padding: 0;
}

.site-logo-text {
    max-height: 20px;
    height: auto;
}

.nav-link-blue {
    font-size: 1.15rem;
    line-height: 1.5;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    position: relative;
    top: 0;
    height: 48px;
    padding: 0.25rem 1.1rem; /* Always apply padding, not just on hover */
    border-radius: 20px;     /* Always apply border-radius for consistent size */
    transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.nav-link-blue:hover {
    color: #1E9FF2;
    background-color: #e6f4ff;
    box-shadow: 0 2px 8px rgba(30, 159, 242, 0.08);
}

.main-nav li.nav-spacer {
    flex-grow: 1;
}

.btn-login {
    padding: 0.25rem 1.1rem;
    border-radius: 20px;
    transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    vertical-align: middle;
    font-size: 1.15rem;
    line-height: 1.5;
    font-weight: 700;
    position: relative;
    height: 48px;
    background: none;
}

.btn-login:hover {
    color: #1E9FF2;
    background-color: #e6f4ff; /* Light blue bubble */
    box-shadow: 0 2px 8px rgba(30, 159, 242, 0.08);
    border-radius: 20px;
    border: 1px solid #e6f4ff;
}

.btn-join {
    background-color: #7BC03A;
    color: white;
    padding: 0.25rem 1.1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;    /* Match other buttons' font size */
    line-height: 1.5;
    transition: background-color 0.3s ease;
    display: inline-block;
    border: 1px solid transparent;
    vertical-align: middle;
}

.btn-join:hover, .btn-login:hover {
    color: #1E9FF2;
    background-color: #fff;
    border: 1px solid #1E9FF2;
    transition: all 0.2s;
}

/* Main section container */
.main-section {
    padding: 4rem 1.5rem;
    background-image: url('https://aqua-manatee-322996.hostingersite.com/wp-content/uploads/2025/03/banner-image.webp');
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Optional overlay styling */
.main-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Container for layout */
.main-content {
    position: relative;
    z-index: 1;
}

/* Heading */
.main-heading {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Subheading / Lead-in text */
.main-subtext {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Smaller supporting text */
.main-small-text {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.plans-section {
    background-color: #ffffff;
    padding: 4rem 1.5rem;
    text-align: center;
    border-top: 1px solid #eee;
}

.plans-content {
    margin: 0 auto;
}

.plans-heading {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.plans-subheading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.plans-text {
    font-size: 1rem;
    margin-bottom: 0.1rem;
    font-weight: 500;
}

.plans-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.plans-buttons .btn-join {
    padding: .7rem 1rem;
    font-size: 1rem;
    border-radius: 28px;
}

.hero-img-section {
    position: relative;
    width: 100%;
    height: 300px;
    background-image: url('https://aqua-manatee-322996.hostingersite.com/wp-content/uploads/2025/03/hero.png');
    background-size: cover;
    background-position: center top 70%;
    background-repeat: no-repeat;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,47,95,0.3); /* semi-transparent */
    z-index: 1;
}

.hero-img-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: white;
}

.join-section {
    position: relative;
    background-image: url('https://aqua-manatee-322996.hostingersite.com/wp-content/uploads/2025/03/Car-Repairbg_1_.png');
    background-size: cover;
    background-position: center;
    padding: 4rem 2rem;
    color: white;
    text-align: left;
    overflow: hidden;
}

.join-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 180, 75, 0.4);
}

.join-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.join-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.join-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.join-content .btn-join {
    padding: .7rem 1rem;
    font-size: 1rem;
    border-radius: 28px;
    border: 1px solid;
}

.highlight-hover {
    color: #1E9FF2;
    transition: color 0.3s ease;
}

.highlight-hover:hover {
    color: #7BC03A;
}

.contact-section {
    background-color: #08440c;
    color: white;
    padding: 4rem 2rem;
}

.contact-section a {
    color: white;
    text-decoration: none;
}

.contact-section a:hover {
    color: #aaffaa;
    text-decoration: underline;
}

.contact-section h2,
.contact-section h3,
.contact-section p,
.contact-section span {
    color: white;
}

.contact-section h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.contact-section .icon svg path {
    fill: white;
}

.contact-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.contact-column {
    flex: 1 1 30%;
    min-width: 250px;
}

.contact-heading {
    font-weight: 600;
    font-size: 3rem;
    max-width: 400px;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-social {
    background-color: #7BC03A;
    color: white;
    padding: 0.5rem 0.75rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center; 
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: 1px solid;
}

.btn-social:hover {
    color: #1E9FF2;
    background-color: #fff;
    border: 1px solid #1E9FF2;
    transition: all 0.2s;
}

.icon-social {
    width: 5rem;
    height: 5rem;
    margin: 0;
    display: block;
}

.useful-links {
    display: flex;
    gap: 2rem;
}

.link-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-right: 4rem;
}

    .link-column a {
        text-decoration: none;
        color: white;
        font-size: 1rem;
        transition: color 0.3s;
    }

.contact-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.7em;
    margin-bottom: 0.5em;
}

.icon-contact {
    width: 1.3em;
    height: 1.3em;
    margin-top: 0.15em;
    flex-shrink: 0;
    color: #fff;
    display: block;
}

.contact-info-row span {
    display: inline-block;
    line-height: 1.4;
}

.scroll-top-btn {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    background-color: #7BC03A;
    color: #fff;
    border: none;
    border: solid 1px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 100;
    margin-bottom: 0.5rem;
}

    .scroll-top-btn:hover {
        background: #1E9FF2;
        color: #fff;
    }

.scroll-top-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}

.footer-bottom {
    background-color: #08440c;
    padding: 1rem 2rem;
    color: white;
    font-size: 0.875rem;
}

.footer-bottom-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-column {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

    .footer-bottom-column a {
        color: white;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .footer-bottom-column a:hover {
            color: #17b26a;
        }

.footer-rights {
    font-weight: 500;
    text-align: right;
}

/* Spinner for similar listings count */
.similar-count .fa-spinner {
    font-size: 1.2rem;
    color: #1E9FF2;
}


/* Enhanced Error Popup */
.error-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 400px;
    width: 90%;
    animation: popupFadeIn 0.3s ease-out;
    border: 1px solid #e1e5e9;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Enhanced Error Popup Content */
.error-popup-content {
    padding: 0;
}

.error-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e1e5e9;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px 12px 0 0;
}

.error-popup-header h4 {
    margin: 0;
    color: #dc3545;
    font-size: 1.15rem;
    font-weight: 600;
}

.error-popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.error-popup-close:hover {
    background-color: #e1e5e9;
    color: #495057;
    transform: scale(1.1);
}

.error-popup-body {
    padding: 1.5rem;
    color: #495057;
    line-height: 1.6;
}

.error-popup-body p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.error-popup-body p:last-child {
    margin-bottom: 0;
}

.error-popup-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e1e5e9;
    text-align: right;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 0 12px 12px;
}

.error-popup-footer .btn {
    min-width: 80px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.error-popup-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Force pointer cursor for ALL navigation and action buttons, including <li> */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
a,
.btn,
.btn-link,
.btn-join,
.btn-login,
.btn-social,
.scroll-top-btn,
.nav-link-blue,
.main-nav a,
.main-nav button,
.main-nav li,
.footer-bottom-column a,
.link-column a {
    cursor: pointer !important;
}

/* --- FINAL: Maximum specificity for consistent header button style across ALL Blazor pages/components --- */
:root header .main-nav a.nav-link-blue,
:root header .main-nav a.btn-login,
:root header .main-nav .nav-link-blue,
:root header .main-nav .btn-login,
:root .nav-link-blue,
:root .btn-login {
    font-size: 1.15rem !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    position: relative !important;
    top: 0 !important;
    height: 48px !important;
    padding: 0.25rem 1.1rem !important;
    border-radius: 20px !important;
    border: 1px solid transparent !important;
    background: none !important;
    color: #445383 !important;
    transition: color 0.2s, background-color 0.2s, box-shadow 0.2s, border-color 0.2s !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    z-index: 10 !important;
}

:root header .main-nav a.nav-link-blue:hover,
:root header .main-nav a.btn-login:hover,
:root header .main-nav .nav-link-blue:hover,
:root header .main-nav .btn-login:hover,
:root .nav-link-blue:hover,
:root .btn-login:hover {
    color: #1E9FF2 !important;
    background-color: rgba(230, 244, 255, 0.85) !important; /* Transparent light blue bubble */
    border: 1px solid #e6f4ff !important;
    box-shadow: 0 2px 8px rgba(30, 159, 242, 0.08) !important;
    z-index: 11 !important;
}

header .main-nav a.nav-link-blue,
header .main-nav a.btn-login,
header .main-nav .nav-link-blue,
header .main-nav .btn-login,
.nav-link-blue,
.btn-login {
    all: unset !important;
    font-size: 1.15rem !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    position: relative !important;
    top: 0 !important;
    height: 48px !important;
    padding: 0.25rem 1.1rem !important;
    border-radius: 20px !important;
    border: 1px solid transparent !important;
    background: none !important;
    color: #445383 !important;
    transition: color 0.2s, background-color 0.2s, box-shadow 0.2s, border-color 0.2s !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    z-index: 10 !important;
}

header .main-nav a.nav-link-blue:hover,
header .main-nav a.btn-login:hover,
header .main-nav .nav-link-blue:hover,
header .main-nav .btn-login:hover,
.nav-link-blue:hover,
.btn-login:hover {
    color: #1E9FF2 !important;
    background-color: rgba(230, 244, 255, 0.85) !important; /* Transparent light blue bubble */
    border: 1px solid #e6f4ff !important;
    box-shadow: 0 2px 8px rgba(30, 159, 242, 0.08) !important;
    z-index: 11 !important;
}

.login-logo-centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    width: 340px;
    height: 340px;
    object-fit: contain; /* Ensures the logo is not stretched or squished */
}

/* Enhanced Loading States & Feedback */

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-button {
    height: 2.5rem;
    width: 120px;
    border-radius: 6px;
}

.skeleton-card {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Modern Loading Spinners */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1E9FF2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.spinner-lg {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

.spinner-xl {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Alert Messages */
.alert {
    position: relative;
    padding: 12px 16px 12px 44px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    animation: slideInDown 0.3s ease-out;
}

.alert::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    box-shadow: 0 2px 8px rgba(21, 87, 36, 0.1);
}

.alert-success::before {
    content: '\f00c'; /* check icon */
    color: #155724;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    box-shadow: 0 2px 8px rgba(114, 28, 36, 0.1);
}

.alert-danger::before {
    content: '\f071'; /* exclamation-triangle icon */
    color: #721c24;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
    box-shadow: 0 2px 8px rgba(133, 100, 4, 0.1);
}

.alert-warning::before {
    content: '\f071'; /* exclamation-triangle icon */
    color: #856404;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
    box-shadow: 0 2px 8px rgba(12, 84, 96, 0.1);
}

.alert-info::before {
    content: '\f05a'; /* info-circle icon */
    color: #0c5460;
}

.alert-dismissible .close {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    font-size: 1.25rem;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.alert-dismissible .close:hover {
    opacity: 1;
}

/* Alert content improvements */
.alert strong {
    font-weight: 600;
}

.alert p {
    margin: 0.25rem 0;
}

.alert p:first-child {
    margin-top: 0;
}

.alert p:last-child {
    margin-bottom: 0;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Indicators */
.progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1E9FF2 0%, #38C805 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

.loading-content {
    text-align: center;
    color: #6c757d;
}

.loading-content .spinner {
    margin-bottom: 0.5rem;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Pulse Animation for Status */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 159, 242, 0.4);
    }
    70% {
        box-shadow: 0 0 0 4px rgba(30, 159, 242, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 159, 242, 0);
    }
}

.status-pulse {
    animation: pulse 2s infinite;
}

/* Accessibility Enhancements */

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus management */
.form-control:focus,
.floating-input:focus {
    outline: 2px solid #1E9FF2;
    outline-offset: 2px;
}

/* High contrast support */
@media (prefers-contrast: high) {
    .form-control,
    .floating-input {
        border: 2px solid;
    }

    .btn-join,
    .btn-login {
        border: 2px solid;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile Responsiveness Refinements */

/* Touch target optimization - minimum 44px */
@media (max-width: 768px) {
    .btn-join,
    .btn-login,
    .btn,
    button {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-control,
    .floating-input {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
    }

    .floating-label-group {
        margin-bottom: 16px;
    }

    /* Mobile navigation spacing */
    .main-nav ul {
        gap: 1rem;
    }

    .nav-link-blue,
    .btn-login {
        padding: 8px 12px;
        font-size: 14px;
        height: 40px;
    }

    /* Mobile header optimization */
    .pfs-header {
        padding: 0.75rem 1rem;
    }

    .pfs-container {
        gap: 1rem;
    }

    /* Mobile form layout */
    .registration-form {
        padding: 1rem;
        max-width: 100%;
    }

    .form-fields {
        gap: 1rem;
    }

    /* Mobile alert spacing */
    .alert {
        margin-bottom: 1rem;
        padding: 12px 16px;
    }

    /* Mobile empty states */
    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state-icon {
        font-size: 2.5rem;
    }

    /* Mobile table/list adjustments */
    .table-responsive {
        font-size: 14px;
    }

    /* Mobile modal adjustments */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .registration-form {
        max-width: 600px;
        margin: 2rem auto;
    }

    .main-nav ul {
        gap: 1.5rem;
    }
}

/* Large mobile devices */
@media (min-width: 481px) and (max-width: 768px) {
    .registration-form {
        max-width: 500px;
        margin: 1.5rem auto;
        padding: 1.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .registration-form {
        margin: 1rem 0.5rem;
        padding: 1rem;
    }

    .main-heading {
        font-size: 2.5rem;
    }

    .plans-heading {
        font-size: 2.5rem;
    }

    /* Stack buttons vertically on small screens */
    .plans-buttons {
        flex-direction: column;
        align-items: center;
    }

    .plans-buttons .btn-join {
        width: 100%;
        max-width: 300px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .nav-link-blue:hover,
    .btn-login:hover,
    .btn-join:hover {
        background-color: transparent;
        color: inherit;
        box-shadow: none;
    }

    /* Add active states for touch feedback */
    .nav-link-blue:active,
    .btn-login:active,
    .btn-join:active {
        background-color: rgba(30, 159, 242, 0.1);
        transform: scale(0.98);
    }
}

/* High DPI display support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .site-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    header,
    .pfs-header,
    nav,
    .main-nav,
    button,
    .btn,
    .btn-join,
    .btn-login,
    input[type="button"],
    input[type="submit"],
    .scroll-top-btn {
        display: none !important;
    }

    /* Optimize text for printing */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff !important;
    }

    /* Ensure content is readable */
    .registration-form,
    .search-listings-container,
    .dashboard-content {
        box-shadow: none !important;
        border: 1px solid #000 !important;
        margin: 0 !important;
        padding: 1rem !important;
    }

    /* Print-friendly links */
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    /* Optimize tables for printing */
    table {
        border-collapse: collapse;
        width: 100%;
    }

    th, td {
        border: 1px solid #000;
        padding: 0.25rem;
        text-align: left;
    }

    /* Page breaks */
    .page-break {
        page-break-before: always;
    }

    .no-page-break {
        page-break-inside: avoid;
    }

    /* Hide background images and colors */
    .main-section,
    .hero-img-section,
    .plans-section {
        background: #fff !important;
        background-image: none !important;
    }

    /* Ensure alerts are visible */
    .alert {
        border: 2px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
        margin: 1rem 0 !important;
    }
}

/* Performance Optimizations */

/* Font loading optimization */
@font-face {
    font-family: 'Segoe UI';
    font-display: swap;
}

/* Optimize animations for performance */
.btn-join,
.btn-login,
.nav-link-blue,
.alert {
    will-change: auto;
    transform: translateZ(0); /* Force hardware acceleration when needed */
}

/* Optimize expensive animations */
.floating-label {
    transition: transform 0.2s ease, color 0.2s ease;
    will-change: transform;
}

/* Reduce paint on scroll - removed containment to allow dropdown overflow */
.pfs-header {
    /* contain: layout style paint; /* Disabled to allow dropdown overflow */
}

/* Optimize loading states */
.spinner,
.skeleton {
    contain: layout style;
}

/* Optimize expensive selectors */
.main-nav a:not(.btn-join):not(.btn-login) {
    /* Optimized selector for navigation links */
}

/* CSS containment for better performance */
.registration-form,
.form-fields,
.main-section {
    contain: layout style;
}

/* Optimize repaints */
.alert,
.status-indicator,
.btn-join,
.btn-login {
    contain: layout style paint;
}

/* Image optimization hints */
.site-logo,
.hero-img-section {
    image-rendering: optimizeQuality;
}

/* Optimize transforms */
.btn-join:active,
.btn-login:active {
    transform: translateY(1px) scale(0.98);
    transition: transform 0.1s ease;
}

/* Success state animations */
.alert-success {
    animation: slideInFromTop 0.3s ease-out;
}

.alert-success::before {
    content: '✓';
    display: inline-block;
    margin-right: 0.5rem;
    color: #28a745;
    font-weight: bold;
}

/* User Experience Polish */

/* Subtle micro-interactions */
.card, .listing-card, .tier-card {
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover, .listing-card:hover, .tier-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Enhanced button interactions */
.btn-join {
position: relative;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-join::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}

.btn-join:active::before {
width: 300px;
height: 300px;
}

/* Smooth form transitions */
.form-control {
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
transform: translateY(-1px);
box-shadow: 0 0 0 3px rgba(30, 159, 242, 0.1);
}

/* Loading state improvements */
.loading-spinner {
display: inline-block;
width: 20px;
height: 20px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: #fff;
animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
to { transform: rotate(360deg); }
}

/* Success feedback */
.success-checkmark {
display: inline-block;
width: 20px;
height: 20px;
border-radius: 50%;
background: #28a745;
position: relative;
}

.success-checkmark::after {
content: '✓';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-weight: bold;
font-size: 12px;
}

/* Enhanced visual hierarchy */
.section-title {
position: relative;
padding-bottom: 0.5rem;
margin-bottom: 1.5rem;
}

.section-title::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 60px;
height: 3px;
background: linear-gradient(90deg, #1E9FF2, #7BC03A);
border-radius: 2px;
}

/* Subtle animations */
@keyframes slideInFromTop {
from {
    transform: translateY(-10px);
    opacity: 0;
}
to {
    transform: translateY(0);
    opacity: 1;
}
}

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

.fade-in {
animation: fadeIn 0.3s ease-out;
}

/* Professional spacing improvements */
.content-section {
padding: 2rem 0;
}

.content-section + .content-section {
border-top: 1px solid #e9ecef;
}

/* Enhanced focus states for better accessibility */
.btn:focus,
.form-control:focus,
.select:focus {
outline: 2px solid #1E9FF2;
outline-offset: 2px;
box-shadow: 0 0 0 3px rgba(30, 159, 242, 0.1);
}

/* Subtle loading states */
.loading-overlay {
position: relative;
}

.loading-overlay::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
}

/* Professional notification styles */
.notification-toast {
position: fixed;
top: 20px;
right: 20px;
background: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
padding: 1rem;
max-width: 300px;
z-index: 1000;
animation: slideInFromTop 0.3s ease-out;
}

.notification-toast.success {
border-left: 4px solid #28a745;
}

.notification-toast.error {
border-left: 4px solid #dc3545;
}

.notification-toast.info {
border-left: 4px solid #17a2b8;
}

/* Floating Label Container */
.floating-label-group {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Floating Label Base Styles */
.floating-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    transition: all 0.2s ease;
    background: white;
    padding: 0 0.25rem;
    z-index: 1;
}

/* Floating Input Styles */
.floating-input {
    padding: 1rem 1rem 1rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 1rem;
    line-height: 1.5;
    width: 100%;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.floating-input:focus {
    outline: 0;
    border-color: #1E9FF2;
    box-shadow: 0 0 0 0.2rem rgba(30, 159, 242, 0.25);
}

/* Floating Label Animation States */
.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
    top: 0.25rem;
    left: 1rem;
    font-size: 0.875rem;
    color: #1E9FF2;
    transform: translateY(0) scale(0.85);
    will-change: transform;
}

/* Floating label adjustments removed - icons disabled */

/* Ensure proper stacking context */
.floating-label-group {
    contain: layout style;
}

/* Optimize CSS custom properties */
:root {
    --primary-color: #1E9FF2;
    --secondary-color: #7BC03A;
    --text-color: #445383;
    --background-color: #ffffff;
    --border-radius: 20px;
    --transition-speed: 0.2s;
}

/* Use CSS variables for better performance */
.btn-join {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed) ease;
}

.nav-link-blue {
    color: var(--text-color);
    border-radius: var(--border-radius);
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

/* Empty State Designs */

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-state p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.empty-state-action {
    margin-top: 1rem;
}

.empty-state .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* Specific empty state variations */
.empty-listings::before {
    content: '\f0cb'; /* list icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.empty-carriers::before {
    content: '\f0d1'; /* truck icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.empty-shipments::before {
    content: '\f49e'; /* box icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.empty-documents::before {
    content: '\f15b'; /* file icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.empty-search::before {
    content: '\f002'; /* search icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* Icon Integration */

/* Input field icons - REMOVED due to overlap issues */
/* Keeping the structure for potential future use, but disabling icons */

/* Button icons */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon i {
    font-size: 0.9em;
}

/* Status icons */
.status-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.status-icon i {
    font-size: 0.8em;
}

/* Action icons */
.action-icon {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.action-icon:hover {
    opacity: 1;
}