h1:focus {
    outline: none;
}

:root {
    --brand-primary: #041d51;
    --brand-primary-soft: #0f327d;
    --brand-accent: #e4ebf7;
    --brand-surface: #f5f8fc;
    --brand-surface-strong: #ffffff;
    --brand-border: #c7d4ea;
    --brand-text: #10213f;
    --brand-muted: #5d6d89;
    --brand-shadow: 0 20px 45px rgba(4, 29, 81, 0.12);
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #f7f9fd 0%, #eef3fb 100%);
    color: var(--brand-text);
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--brand-border);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 1rem;
    background: white;
    box-shadow: var(--brand-shadow);
}

.brand-name {
    display: inline-block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.brand-tagline {
    margin: 0.25rem 0 0;
    color: var(--brand-muted);
}

.main-nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.main-nav a {
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    color: var(--brand-primary);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a.active,
.main-nav a:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-1px);
}

.page-content {
    width: min(1200px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 3rem 0 4rem;
    flex: 1;
}

.site-footer {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
    color: white;
    background: var(--brand-primary);
}

.site-footer p {
    margin: 0.2rem 0;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 2rem;
    align-items: center;
}

.hero-copy h1,
.section-heading h2,
.cta-section h2,
.chatbot-page h1,
.quote-page h1,
.quote-shell-header h2,
.quote-config-card h2,
.quote-result-card h3 {
    margin: 0;
    line-height: 1.1;
    color: var(--brand-primary);
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 4vw, 4.4rem);
}

.hero-copy p,
.hero-card-content p,
.service-card p,
.chatbot-intro,
.chatbot-empty,
.chatbot-message p,
.chatbot-suggestions p,
.quote-intro,
.quote-shell-header p,
.quote-card-caption,
.quote-config-card p,
.quote-result-card p {
    color: var(--brand-muted);
    line-height: 1.7;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--brand-primary-soft);
}

.hero-actions,
.chatbot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
}

.primary-button,
.secondary-button,
.suggestion-button,
.chat-submit {
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1.4rem;
    font-weight: 800;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.primary-button,
.chat-submit {
    background: var(--brand-primary);
    color: white;
    box-shadow: var(--brand-shadow);
}

.secondary-button,
.suggestion-button {
    background: white;
    color: var(--brand-primary);
    box-shadow: inset 0 0 0 1px var(--brand-border);
}

.primary-button:hover,
.secondary-button:hover,
.suggestion-button:hover,
.chat-submit:hover {
    transform: translateY(-2px);
}

.hero-card,
.service-card,
.chatbot-shell,
.chatbot-suggestions {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--brand-border);
    border-radius: 1.75rem;
    box-shadow: var(--brand-shadow);
}

.hero-card {
    overflow: hidden;
}

.hero-card img {
    background: white;
    padding: 1.5rem;
}

.hero-card-content {
    padding: 1.5rem 1.6rem 1.8rem;
}

.services-section,
.cta-section,
.chatbot-page,
.quote-page {
    margin-top: 4rem;
}

.section-heading {
    margin-bottom: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.service-card {
    padding: 1.5rem;
}

.service-card h3 {
    margin-top: 0;
    color: var(--brand-primary);
}

.cta-section {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    border-radius: 1.75rem;
    background: linear-gradient(135deg, rgba(4, 29, 81, 0.97), rgba(15, 50, 125, 0.92));
    color: white;
    box-shadow: var(--brand-shadow);
}

.cta-section h2,
.cta-section .eyebrow {
    color: white;
}

.chatbot-page {
    display: grid;
    gap: 1.5rem;
}

.projects-page {
    display: grid;
    gap: 1.5rem;
    margin-top: 0;
}

.quote-page {
    display: grid;
    gap: 1.5rem;
    margin-top: 0;
}

.projects-shell,
.quote-shell,
.quote-config-card,
.quote-result-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--brand-border);
    border-radius: 1.75rem;
    box-shadow: var(--brand-shadow);
}

.quote-shell,
.quote-config-card {
    padding: 1.5rem;
}

.projects-shell {
    padding: 1.75rem;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.projects-header h1 {
    margin: 0;
    line-height: 1.1;
    color: var(--brand-primary);
}

.projects-intro,
.projects-empty-state p {
    color: var(--brand-muted);
    line-height: 1.7;
}

.projects-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: var(--brand-accent);
    color: var(--brand-primary);
    font-weight: 800;
}

.projects-carousel-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    min-height: 480px;
}

.projects-carousel-card,
.projects-empty-state {
    width: min(760px, 100%);
    background: linear-gradient(180deg, #fff 0%, #f7f9fd 100%);
    border: 1px solid var(--brand-border);
    border-radius: 1.75rem;
    box-shadow: var(--brand-shadow);
}

.projects-carousel-card {
    overflow: hidden;
}

.projects-carousel-card.is-next {
    animation: projects-fade-slide-next 0.45s ease;
}

.projects-carousel-card.is-previous {
    animation: projects-fade-slide-previous 0.45s ease;
}

.projects-carousel-card img {
    width: 100%;
    height: min(70vh, 520px);
    object-fit: cover;
    display: block;
    background: white;
}

.projects-empty-state {
    padding: 2rem;
    text-align: center;
    margin: 0 auto;
}

.projects-empty-state h2 {
    margin: 0;
    color: var(--brand-primary);
}

@keyframes projects-fade-slide-next {
    from {
        opacity: 0;
        transform: translateX(28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes projects-fade-slide-previous {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-button {
    width: 3.25rem;
    height: 3.25rem;
    border: none;
    border-radius: 999px;
    background: var(--brand-primary);
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--brand-shadow);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
    transform: translateY(-2px);
    background: var(--brand-primary-soft);
    outline: none;
}

.quote-shell-header,
.quote-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.quote-actions {
    flex-wrap: wrap;
}

.quote-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.quote-breadcrumbs span {
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: var(--brand-accent);
    color: var(--brand-primary);
    font-weight: 700;
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    width: min(60%, 760px);
    margin: 0 auto;
}

.quote-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.6rem;
    min-height: 100%;
    border: 1px solid transparent;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, #fff 0%, #f7f9fd 100%);
    cursor: pointer;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quote-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.9rem;
    background: white;
}

.quote-card-label {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.quote-card-size {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: var(--brand-accent);
    color: var(--brand-primary);
    font-size: 0.7rem;
    font-weight: 700;
}

.quote-card-price {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: var(--brand-primary);
    color: white;
    font-size: 0.74rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(4, 29, 81, 0.16);
}

.quote-card-caption {
    font-size: 0.78rem;
}

.quote-card-border {
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(130deg, transparent 10%, rgba(15, 50, 125, 0.9), transparent 30%, rgba(4, 29, 81, 0.9), transparent 55%);
    background-size: 240% 240%;
    opacity: 0;
    transition: opacity 0.25s ease;
    animation: quote-border-flow 2.6s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.quote-card:hover,
.quote-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(4, 29, 81, 0.18);
}

.quote-card:hover .quote-card-border,
.quote-card:focus-visible .quote-card-border {
    opacity: 1;
}

.quote-card:focus-visible {
    outline: none;
}

.quote-result-card {
    padding: 1.75rem;
}

.quote-continue-button {
    margin-top: 1rem;
}

.quote-contact-card {
    display: grid;
    gap: 1rem;
}

.quote-contact-form {
    display: grid;
    gap: 1.25rem;
}

.quote-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.quote-field {
    display: grid;
    gap: 0.45rem;
}

.quote-field label {
    font-weight: 700;
    color: var(--brand-primary);
}

.quote-field input {
    width: 75%;
    max-width: 24rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--brand-border);
    border-radius: 1rem;
    background: white;
    color: var(--brand-primary);
    font: inherit;
}

.quote-field input:focus {
    outline: 2px solid rgba(15, 50, 125, 0.18);
    border-color: var(--brand-primary);
}

.quote-contact-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

.quote-contact-actions .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
}

.quote-form-status {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    font-weight: 700;
}

.quote-form-status.success {
    background: #e8f7eb;
    color: #1f6a35;
}

.quote-form-status.error {
    background: #fce8e8;
    color: #9f1d1d;
}

.validation-message {
    color: #9f1d1d;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .quote-field input {
        width: 100%;
        max-width: none;
    }

    .quote-contact-grid {
        grid-template-columns: 1fr;
    }

    .quote-contact-actions {
        justify-content: stretch;
        flex-direction: column;
    }
}

@keyframes quote-border-flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.chatbot-shell {
    padding: 1.5rem;
}

.chatbot-window {
    display: grid;
    gap: 1rem;
    min-height: 360px;
    padding: 1rem;
    border-radius: 1.4rem;
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    margin-bottom: 1rem;
}

.chatbot-empty {
    align-self: center;
    justify-self: center;
    max-width: 560px;
    text-align: center;
}

.chatbot-message {
    max-width: min(80%, 640px);
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
}

.chatbot-message p {
    margin: 0.25rem 0 0;
}

.chatbot-message strong {
    display: block;
    margin-bottom: 0.15rem;
}

.chatbot-message.user {
    margin-left: auto;
    background: var(--brand-primary);
    color: white;
}

.chatbot-message.user p,
.chatbot-message.user strong {
    color: white;
}

.chatbot-message.bot {
    background: white;
    border: 1px solid var(--brand-border);
}

.chatbot-form {
    display: flex;
    gap: 0.9rem;
    margin-top: 1rem;
}

.chatbot-form input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid var(--brand-border);
    padding: 1rem 1.2rem;
    font: inherit;
    color: var(--brand-text);
    background: white;
}

.chatbot-form input:focus {
    outline: 2px solid rgba(15, 50, 125, 0.2);
    border-color: var(--brand-primary-soft);
}

.chatbot-suggestions {
    padding: 1.25rem;
}

.chatbot-suggestions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .top-bar,
    .cta-section,
    .chatbot-form {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-section,
    .services-grid,
    .quote-grid {
        grid-template-columns: 1fr;
    }

    .projects-header,
    .projects-carousel-wrap {
        flex-direction: column;
    }

    .quote-grid {
        width: min(100%, 420px);
    }

    .main-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .quote-shell-header,
    .quote-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .top-bar {
        padding: 1.25rem;
    }

    .page-content {
        width: min(100% - 1.5rem, 1200px);
        padding-top: 2rem;
    }

    .brand-wrap {
        align-items: flex-start;
    }

    .brand-logo {
        width: 60px;
        height: 60px;
    }

    .chatbot-message {
        max-width: 100%;
    }
}

.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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3J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ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}