/* Visix brand styling — palette and typography taken from visix.be
   (Elementor global kit: primary #251CC5, text #44403D, accent #F2F2F2,
   headings "Open Sans" 600, body "Source Sans Pro" 400). */

:root {
    --vx-primary: #251CC5;
    --vx-primary-dark: #1B1490;
    --vx-secondary: #44403D;
    --vx-text: #44403D;
    --vx-accent: #F2F2F2;
    --vx-white: #FFFFFF;
    --vx-border: #DDDAD6;
    --vx-error: #CF2E2E;
    --vx-success: #1E7B4D;
    --vx-font-heading: "Open Sans", "Segoe UI", sans-serif;
    --vx-font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--vx-font-body);
    font-size: 17px;
    color: var(--vx-text);
    background-color: var(--vx-accent);
}

h1, h2, h3, h4 {
    font-family: var(--vx-font-heading);
    font-weight: 600;
    color: var(--vx-secondary);
    margin: 0 0 .5rem;
}

a {
    color: var(--vx-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

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

/* Top contact bar, like the visix.be header strip */
.vx-topbar {
    background: var(--vx-secondary);
    color: var(--vx-white);
    font-size: .85rem;
    padding: .35rem 0;
}

.vx-topbar-inner {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
}

.vx-topbar a {
    color: var(--vx-white);
}

.vx-topbar-sep {
    opacity: .5;
}

/* Main header with logo */
.vx-header {
    background: var(--vx-white);
    border-bottom: 4px solid var(--vx-primary);
}

.vx-header-inner {
    display: flex;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.vx-logo {
    font-family: var(--vx-font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: .35rem;
    color: var(--vx-secondary);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.vx-logo:hover {
    text-decoration: none;
    color: var(--vx-primary);
}

.vx-logo-sub {
    font-size: .6rem;
    font-weight: 400;
    letter-spacing: .45rem;
    color: var(--vx-primary);
    margin-top: .3rem;
}

/* Hero banner */
.page-hero {
    background: linear-gradient(135deg, var(--vx-primary) 0%, var(--vx-primary-dark) 100%);
    color: var(--vx-white);
    padding: 2.75rem 0;
}

.page-hero h1 {
    color: var(--vx-white);
    font-size: 2.1rem;
    margin: 0;
}

.hero-tagline {
    margin: .5rem 0 0;
    font-size: 1.1rem;
    opacity: .85;
}

.vx-main {
    flex: 1;
}

.content-area {
    padding: 2.5rem 1.25rem 3.5rem;
}

/* Cards */
.vx-card {
    background: var(--vx-white);
    border: 1px solid var(--vx-border);
    border-radius: 6px;
    padding: 2rem 2.25rem;
    box-shadow: 0 2px 12px rgba(68, 64, 61, .08);
}

.vx-section-title {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .08rem;
    color: var(--vx-primary);
    border-bottom: 2px solid var(--vx-accent);
    padding-bottom: .4rem;
    margin: 1.75rem 0 1rem;
}

.vx-muted {
    color: #7a756f;
    font-size: .95rem;
}

/* Form grid */
.vx-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 1.25rem;
}

.vx-span-2 {
    grid-column: span 2;
}

.vx-span-3 {
    grid-column: span 3;
}

.vx-field {
    display: flex;
    flex-direction: column;
}

.vx-field label {
    font-family: var(--vx-font-heading);
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .3rem;
}

.vx-field input,
.vx-field select,
.vx-field textarea {
    font-family: var(--vx-font-body);
    font-size: 1rem;
    color: var(--vx-text);
    border: 1px solid var(--vx-border);
    border-radius: 4px;
    padding: .55rem .7rem;
    background: var(--vx-white);
    transition: border-color .15s, box-shadow .15s;
}

.vx-field input:focus,
.vx-field select:focus,
.vx-field textarea:focus {
    outline: none;
    border-color: var(--vx-primary);
    box-shadow: 0 0 0 3px rgba(37, 28, 197, .15);
}

.vx-field .validation-message {
    color: var(--vx-error);
    font-size: .82rem;
    margin-top: .25rem;
}

input.invalid, select.invalid, textarea.invalid {
    border-color: var(--vx-error);
}

/* Buttons */
.vx-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.vx-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--vx-font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .03rem;
    color: var(--vx-white);
    background: var(--vx-primary);
    border: none;
    border-radius: 4px;
    padding: .8rem 2.2rem;
    cursor: pointer;
    transition: background .15s;
}

.vx-btn-primary:hover:not(:disabled) {
    background: var(--vx-primary-dark);
}

.vx-btn-primary:disabled {
    opacity: .7;
    cursor: default;
}

/* VAT entry step */
.vx-vat-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.vx-vat-row .vx-field {
    flex: 1 1 260px;
}

.vx-vat-input {
    font-family: var(--vx-font-body);
    font-size: 1.15rem;
    letter-spacing: .04rem;
    color: var(--vx-text);
    border: 1px solid var(--vx-border);
    border-radius: 4px;
    padding: .65rem .8rem;
    background: var(--vx-white);
    transition: border-color .15s, box-shadow .15s;
}

.vx-vat-input:focus {
    outline: none;
    border-color: var(--vx-primary);
    box-shadow: 0 0 0 3px rgba(37, 28, 197, .15);
}

.vx-vat-row .vx-btn-primary {
    height: 3rem;
}

/* Verified-company banner shown above the form */
.vx-verified {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #E4F3EB;
    border: 1px solid #BFE3CE;
    border-radius: 6px;
    padding: .9rem 1.1rem;
    margin-bottom: 1.75rem;
}

.vx-verified-badge {
    font-family: var(--vx-font-heading);
    font-size: .8rem;
    font-weight: 600;
    color: var(--vx-success);
    white-space: nowrap;
}

.vx-verified strong {
    display: block;
    font-family: var(--vx-font-heading);
    color: var(--vx-secondary);
}

.vx-verified .vx-muted {
    font-size: .85rem;
}

.vx-field input[readonly] {
    background: var(--vx-accent);
    color: #7a756f;
}

/* Read-only facts grid (customer snapshot + financials) */
.vx-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem 1.5rem;
    margin: .5rem 0 1rem;
}

.vx-facts .k {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04rem;
    color: #8a948e;
}

.vx-facts .v {
    font-weight: 600;
    font-size: .95rem;
}

.vx-facts-sub {
    font-size: .9rem;
    color: #5b6b63;
    margin: .25rem 0 .75rem;
}

.vx-check label {
    font-family: var(--vx-font-body);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.vx-check input {
    width: auto;
}

.vx-inline-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: .1rem .5rem;
    border-radius: 20px;
    margin-left: .4rem;
    vertical-align: middle;
}

.vx-inline-badge.vx-ok {
    background: #E4F3EB;
    color: var(--vx-success);
}

.vx-inline-badge.vx-warn {
    background: #FBE9DD;
    color: #A4460A;
}

/* Editable sub-cards for repeatable contacts / delivery addresses */
.vx-subcard {
    border: 1px solid var(--vx-border);
    border-radius: 6px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    background: #FBFBFA;
}

.vx-subcard-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
    font-family: var(--vx-font-heading);
    font-size: .8rem;
    font-weight: 600;
    color: var(--vx-secondary);
    text-transform: uppercase;
    letter-spacing: .04rem;
}

.vx-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--vx-font-heading);
    font-size: .9rem;
    font-weight: 600;
    color: var(--vx-primary);
    background: transparent;
    border: 1px solid var(--vx-primary);
    border-radius: 4px;
    padding: .5rem 1.1rem;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.vx-btn-secondary:hover {
    background: var(--vx-primary);
    color: var(--vx-white);
}

.vx-btn-link {
    background: none;
    border: none;
    color: var(--vx-error);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.vx-btn-link:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .vx-facts {
        grid-template-columns: 1fr;
    }
}

/* Alerts and status blocks */
.vx-alert {
    border-radius: 4px;
    padding: .8rem 1rem;
    margin: 1rem 0;
    font-size: .95rem;
}

.vx-alert-error {
    background: #FBEAEA;
    border: 1px solid var(--vx-error);
    color: var(--vx-error);
}

.vx-alert-warn {
    background: #FBE9DD;
    border: 1px solid #E3B48F;
    color: #A4460A;
}

.vx-alert-ok {
    background: #E4F3EB;
    border: 1px solid #BFE3CE;
    color: var(--vx-success);
}

/* Existence / duplicate check */
.vx-existence {
    margin: 0 0 1.5rem;
}

.vx-match-list {
    margin: .5rem 0 0;
    padding-left: 1.2rem;
}

.vx-match-list li {
    margin: .15rem 0;
}

/* Complaint form: checkbox lists and article table */
.vx-check-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin: .5rem 0 1rem;
}

.vx-check-list label {
    font-family: var(--vx-font-body);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.vx-check-list input {
    width: auto;
    margin: 0;
}

.vx-article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    margin: .5rem 0 1rem;
}

.vx-article-table th,
.vx-article-table td {
    padding: .5rem .6rem;
    border-bottom: 1px solid var(--vx-border);
    text-align: left;
    vertical-align: middle;
}

.vx-article-table th {
    font-family: var(--vx-font-heading);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .03rem;
    color: #8a948e;
}

.vx-article-table input[type=checkbox] {
    width: auto;
}

.vx-row-selected {
    background: #F5F4FF;
}

/* Fotobewijs drag & drop zone */
.vx-dropzone {
    position: relative;
    border: 2px dashed var(--vx-border);
    border-radius: 6px;
    padding: 1.75rem 1rem;
    text-align: center;
    background: #FBFBFA;
    transition: border-color .15s, background .15s;
}

.vx-dropzone:hover {
    border-color: var(--vx-primary);
    background: #F5F4FF;
}

.vx-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.vx-dropzone-text {
    color: #7a756f;
    font-size: .95rem;
    pointer-events: none;
    line-height: 1.6;
}

.vx-dropzone-text strong {
    color: var(--vx-secondary);
}

.vx-status {
    text-align: center;
    padding: 3.5rem 2rem;
}

.vx-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 1.9rem;
    margin-bottom: 1.2rem;
}

.vx-denied .vx-status-icon {
    background: #FBEAEA;
    color: var(--vx-error);
}

.vx-success .vx-status-icon {
    background: #E4F3EB;
    color: var(--vx-success);
}

/* Spinner */
.vx-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 1rem;
    border: 4px solid var(--vx-accent);
    border-top-color: var(--vx-primary);
    border-radius: 50%;
    animation: vx-spin .8s linear infinite;
}

.vx-spinner-sm {
    width: 18px;
    height: 18px;
    margin: 0;
    border-width: 3px;
    border-color: rgba(255, 255, 255, .35);
    border-top-color: var(--vx-white);
}

@keyframes vx-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.vx-footer {
    background: var(--vx-secondary);
    color: var(--vx-white);
    font-size: .9rem;
    padding: 1.4rem 0;
    text-align: center;
}

.vx-footer p {
    margin: 0;
    opacity: .85;
}

/* Responsive */
@media (max-width: 720px) {
    .vx-grid {
        grid-template-columns: 1fr;
    }

    .vx-span-2, .vx-span-3 {
        grid-column: span 1;
    }

    .vx-card {
        padding: 1.4rem 1.2rem;
    }
}

/* Blazor error UI */
#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;
}
