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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}

/* ═══════ Landing Page ═══════ */

.home-full-width {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: url('/images/landing/page2_img1.jpeg') center / cover no-repeat;
    min-height: 500px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(105deg, rgba(30,41,59,0.95) 0%, rgba(30,41,59,0.80) 45%, rgba(30,41,59,0.40) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.section-bar {
    width: 48px;
    height: 3px;
    background: #2862B9;
    border-radius: 2px;
}

.section-bar-gold {
    width: 48px;
    height: 3px;
    background: #E8A317;
    border-radius: 2px;
}

.feature-card {
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #e8ecf0;
    background: white;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1) !important;
}

.feature-accent {
    height: 4px;
    background: linear-gradient(90deg, #2862B9, #E8A317);
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EBF0F9, #D4E0F5);
    margin-bottom: 20px;
}

.feature-icon-wrap .mud-icon-root {
    color: #2862B9;
    font-size: 28px;
}

.screenshot-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.contact-form-card {
    border-radius: 12px;
}

.problem-item {
    transition: transform 0.2s ease;
}

.problem-item:hover {
    transform: translateX(4px);
}

[id="solucao"], [id="recursos"], [id="contato"] {
    scroll-margin-top: 80px;
}

.white-text {
    color: white !important;
}

.phone-mockup {
    width: 240px;
    height: 480px;
    border-radius: 32px;
    border: 6px solid rgba(255,255,255,0.2);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
    position: relative;
    background: #000;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    z-index: 2;
}
/* ── Reconnect Modal ── */

#components-reconnect-modal .components-reconnect-first-attempt-visible,
#components-reconnect-modal .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal .components-reconnect-failed-visible,
#components-reconnect-modal .components-pause-visible,
#components-reconnect-modal .components-resume-failed-visible,
#components-reconnect-modal .components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}

#components-reconnect-modal {
    background-color: #fff;
    width: 22rem;
    margin: 20vh auto;
    padding: 2.5rem 2rem;
    border: none;
    outline: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    font-family: 'Roboto', sans-serif;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: reconnect-fadeOut 0.5s both;
}

#components-reconnect-modal[open] {
    animation: reconnect-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s,
               reconnect-fadeIn 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

#components-reconnect-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    animation: reconnect-fadeIn 0.5s ease-in-out;
    opacity: 1;
}

#components-reconnect-modal .components-reconnect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

#components-reconnect-modal p {
    margin: 0;
    text-align: center;
    color: #424242;
    font-size: 0.925rem;
    line-height: 1.5;
}

#components-reconnect-modal button {
    border: 0;
    background-color: #2862B9;
    color: white;
    padding: 8px 28px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#components-reconnect-modal button:hover {
    background-color: #1E4F99;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#components-reconnect-modal .components-rejoining-animation {
    position: relative;
    width: 64px;
    height: 64px;
}

#components-reconnect-modal .components-rejoining-animation div {
    position: absolute;
    border: 2.5px solid #2862B9;
    opacity: 1;
    border-radius: 50%;
    animation: reconnect-ripple 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

#components-reconnect-modal .components-rejoining-animation div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes reconnect-slideUp {
    0% { transform: translateY(30px) scale(0.95); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes reconnect-fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes reconnect-fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes reconnect-ripple {
    0% { top: 32px; left: 32px; width: 0; height: 0; opacity: 0; }
    4.9% { top: 32px; left: 32px; width: 0; height: 0; opacity: 0; }
    5% { top: 32px; left: 32px; width: 0; height: 0; opacity: 1; }
    100% { top: 0; left: 0; width: 64px; height: 64px; opacity: 0; }
}

/* ── Sidebar nav styling ── */
.mud-drawer .mud-nav-link.active {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #E8A317 !important;
    font-weight: 600;
}

.mud-drawer .mud-nav-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.mud-drawer .mud-nav-link.active .mud-nav-link-icon {
    color: #E8A317 !important;
}
