.wijers-qr-generator-section {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4rem, 8vw, 7rem);
    background:
        radial-gradient(circle at 9% 16%, rgba(0, 36, 243, .08) 0 4px, transparent 5px),
        radial-gradient(circle at 92% 80%, rgba(0, 36, 243, .10) 0 5px, transparent 6px),
        linear-gradient(145deg, #f8faff 0%, #edf2ff 100%);
}

.wijers-qr-generator-section::before,
.wijers-qr-generator-section::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: clamp(18rem, 42vw, 42rem);
    aspect-ratio: 1;
    border: 1px solid rgba(0, 36, 243, .11);
    border-radius: 50%;
    pointer-events: none;
}

.wijers-qr-generator-section::before {
    top: -25%;
    left: -18%;
    box-shadow:
        0 0 0 42px rgba(0, 36, 243, .025),
        0 0 0 84px rgba(0, 36, 243, .018);
}

.wijers-qr-generator-section::after {
    right: -20%;
    bottom: -48%;
    box-shadow:
        0 0 0 52px rgba(0, 36, 243, .025),
        0 0 0 104px rgba(0, 36, 243, .018);
}

.wijers-qr-generator-section > .fluid-container {
    position: relative;
    z-index: 1;
}

.wijers-qr-generator__intro {
    max-width: 54rem;
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}

.wijers-qr-generator__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1rem;
    color: #0024f3;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.wijers-qr-generator__eyebrow::before {
    content: "";
    width: 1.8rem;
    height: 2px;
    background: currentColor;
}

.wijers-qr-generator__intro h2 {
    max-width: 17ch;
    margin: 0 auto 1rem;
    color: #071538;
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: .98;
}

.wijers-qr-generator__intro p {
    max-width: 45rem;
    margin: 0 auto;
    color: #52617e;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.7;
}

.wijers-qr-studio {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(20rem, .92fr);
    max-width: 74rem;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid #d9e1f5;
    border-top: 4px solid #0024f3;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 2rem 5rem rgba(7, 21, 56, .12);
}

.wijers-qr-form {
    padding: clamp(1.5rem, 4vw, 3.25rem);
}

.wijers-qr-form__heading {
    margin: 0 0 .55rem;
    color: #071538;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -.025em;
}

.wijers-qr-form__lead {
    margin: 0 0 2rem;
    color: #60708d;
    line-height: 1.65;
}

.wijers-qr-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.wijers-qr-field {
    min-width: 0;
}

.wijers-qr-field--wide {
    grid-column: 1 / -1;
}

.wijers-qr-field label,
.wijers-qr-field legend {
    display: block;
    margin-bottom: .45rem;
    color: #101f43;
    font-size: .9rem;
    font-weight: 750;
}

.wijers-qr-field input[type="text"],
.wijers-qr-field input[type="password"],
.wijers-qr-field select {
    width: 100%;
    min-height: 3.45rem;
    padding: .85rem 1rem;
    border: 1px solid #cbd6ef;
    border-radius: .8rem;
    outline: 0;
    background: #fbfcff;
    color: #071538;
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.wijers-qr-field input:hover,
.wijers-qr-field select:hover {
    border-color: #9eafd5;
    background: #fff;
}

.wijers-qr-field input:focus,
.wijers-qr-field select:focus {
    border-color: #0024f3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 36, 243, .12);
}

.wijers-qr-password {
    position: relative;
}

.wijers-qr-password input {
    padding-right: 5rem !important;
}

.wijers-qr-password__toggle {
    position: absolute;
    top: 50%;
    right: .65rem;
    padding: .35rem .55rem;
    border: 0;
    border-radius: .45rem;
    background: transparent;
    color: #0024f3;
    font-size: .78rem;
    font-weight: 800;
    transform: translateY(-50%);
    cursor: pointer;
}

.wijers-qr-password__toggle:focus-visible {
    outline: 3px solid rgba(0, 36, 243, .25);
    outline-offset: 2px;
}

.wijers-qr-options {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1.2rem;
    grid-column: 1 / -1;
    margin-top: .1rem;
}

.wijers-qr-check {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: #334363;
    font-size: .92rem;
    font-weight: 650;
    cursor: pointer;
}

.wijers-qr-check input[type="checkbox"] {
    width: 1.15rem !important;
    min-width: 1.15rem !important;
    height: 1.15rem !important;
    min-height: 1.15rem !important;
    margin: 0;
    padding: 0 !important;
    border-radius: .22rem !important;
    appearance: auto !important;
    accent-color: #0024f3;
}

.wijers-qr-error {
    min-height: 1.2rem;
    margin: .42rem 0 0;
    color: #b42318;
    font-size: .82rem;
    font-weight: 650;
}

.wijers-qr-form__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1.6rem;
}

.wijers-qr-primary,
.wijers-qr-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.3rem;
    padding: .85rem 1.35rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.wijers-qr-primary {
    border: 1px solid #0024f3;
    background: #0024f3;
    color: #fff;
    box-shadow: 0 .8rem 1.8rem rgba(0, 36, 243, .22);
}

.wijers-qr-secondary {
    border: 1px solid #cbd6ef;
    background: #fff;
    color: #0024f3;
}

.wijers-qr-primary:hover,
.wijers-qr-secondary:hover {
    transform: translateY(-2px);
}

.wijers-qr-primary:focus-visible,
.wijers-qr-secondary:focus-visible {
    outline: 3px solid rgba(0, 36, 243, .24);
    outline-offset: 3px;
}

.wijers-qr-privacy {
    display: flex;
    gap: .65rem;
    margin: 1.4rem 0 0;
    color: #60708d;
    font-size: .84rem;
    line-height: 1.55;
}

.wijers-qr-privacy svg {
    flex: 0 0 1.1rem;
    margin-top: .12rem;
    color: #0024f3;
}

.wijers-qr-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 38rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255,255,255,.08), transparent 50%),
        linear-gradient(135deg, #071538, #0024f3);
    color: #fff;
    text-align: center;
}

.wijers-qr-preview::before,
.wijers-qr-preview::after {
    content: "";
    position: absolute;
    width: 22rem;
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    pointer-events: none;
}

.wijers-qr-preview::before {
    top: -10rem;
    right: -10rem;
    box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 68px rgba(255,255,255,.025);
}

.wijers-qr-preview::after {
    bottom: -14rem;
    left: -12rem;
    box-shadow: 0 0 0 42px rgba(255,255,255,.025);
}

.wijers-qr-preview > * {
    position: relative;
    z-index: 1;
}

.wijers-qr-preview__label {
    margin-bottom: 1rem;
    color: rgba(255,255,255,.8);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.wijers-qr-canvas-wrap {
    display: grid;
    width: min(100%, 21rem);
    aspect-ratio: 1;
    place-items: center;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, .25);
}

.wijers-qr-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
}

.wijers-qr-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 2rem;
    border: 2px dashed #cbd6ef;
    border-radius: .8rem;
    color: #60708d;
}

.wijers-qr-placeholder svg {
    width: 4rem;
    margin: 0 auto 1rem;
    color: #0024f3;
}

.wijers-qr-placeholder strong {
    display: block;
    margin-bottom: .35rem;
    color: #071538;
    font-size: 1.05rem;
}

.wijers-qr-preview .wijers-qr-preview__network {
    min-height: 1.7rem;
    margin: 1.15rem 0 .25rem;
    color: #fff !important;
    font-size: 1.15rem;
    font-weight: 750;
}

.wijers-qr-preview .wijers-qr-preview__status {
    min-height: 1.35rem;
    margin: 0;
    color: rgba(255,255,255,.82) !important;
    font-size: .88rem;
}

.wijers-qr-downloads {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-top: 1.35rem;
}

.wijers-qr-downloads button {
    min-height: 2.85rem;
    padding: .65rem 1rem;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font: inherit;
    font-size: .85rem;
    font-weight: 750;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.wijers-qr-downloads button:hover {
    background: rgba(255,255,255,.2);
}

.wijers-qr-downloads button:focus-visible {
    outline: 3px solid rgba(255,255,255,.42);
    outline-offset: 3px;
}

.wijers-qr-tech {
    max-width: 74rem;
    margin: 1.35rem auto 0;
    border: 1px solid #d9e1f5;
    border-radius: 1rem;
    background: rgba(255,255,255,.72);
}

.wijers-qr-tech summary {
    padding: 1rem 1.2rem;
    color: #071538;
    font-weight: 750;
    cursor: pointer;
}

.wijers-qr-tech code {
    display: block;
    margin: 0 1.2rem 1.2rem;
    padding: 1rem;
    overflow-wrap: anywhere;
    border-radius: .7rem;
    background: #071538;
    color: #fff;
    font-size: .82rem;
    line-height: 1.6;
    text-align: left;
}

.wijers-qr-noscript {
    max-width: 74rem;
    margin: 1rem auto;
    padding: 1rem 1.2rem;
    border-left: 4px solid #0024f3;
    background: #fff;
    color: #071538;
}

[data-qr-generated="false"] .wijers-qr-downloads,
[data-qr-generated="false"] .wijers-qr-preview__network {
    display: none;
}

[data-qr-generated="true"] .wijers-qr-placeholder {
    display: none;
}

[data-qr-generated="false"] #wijers-qr-canvas {
    display: none;
}

.wijers-qr-logo-upload {
    grid-column: 1 / -1;
    display: grid;
    gap: .7rem;
    padding: 1rem;
    border: 1px solid #d9e1f5;
    border-radius: .9rem;
    background: #f7f9ff;
}

.wijers-qr-logo-upload label {
    color: #101f43;
    font-weight: 780;
}

.wijers-qr-logo-upload label span {
    color: #60708d;
    font-weight: 620;
}

.wijers-qr-logo-upload p {
    margin: .2rem 0 0;
    color: #60708d;
    font-size: .86rem;
    line-height: 1.55;
}

.wijers-qr-logo-upload input[type="file"] {
    width: 100%;
    min-height: 0;
    padding: .55rem;
    border: 1px dashed #9eafd5;
    border-radius: .7rem;
    background: #fff;
    color: #334363;
    font: inherit;
    font-size: .86rem;
}

.wijers-qr-logo-upload input[type="file"]::file-selector-button {
    margin-right: .75rem;
    padding: .55rem .8rem;
    border: 0;
    border-radius: .55rem;
    background: #e8edff;
    color: #0024f3;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.wijers-qr-logo-upload input[type="file"]:hover::file-selector-button {
    background: #dce4ff;
}

.wijers-qr-logo-upload input[type="file"]:focus-visible {
    outline: 3px solid rgba(0,36,243,.24);
    outline-offset: 2px;
}

.wijers-qr-logo-upload .wijers-qr-logo-upload__status {
    margin: 0;
    color: #334363;
    font-weight: 680;
}

.wijers-qr-logo-upload .wijers-qr-logo-upload__status.is-error {
    color: #a1202b;
}

.wijers-qr-logo-upload__reset {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0024f3;
    font: inherit;
    font-size: .86rem;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: .18em;
    cursor: pointer;
}

.wijers-qr-logo-upload__reset:hover {
    color: #071538;
}

.wijers-qr-logo-upload__reset:focus-visible {
    outline: 3px solid rgba(0,36,243,.24);
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .wijers-qr-studio {
        grid-template-columns: 1fr;
    }

    .wijers-qr-preview {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .wijers-qr-generator-section {
        padding-block: 3.5rem;
    }

    .wijers-qr-studio {
        border-radius: 1.1rem;
    }

    .wijers-qr-fields {
        grid-template-columns: 1fr;
    }

    .wijers-qr-field--wide,
    .wijers-qr-options,
    .wijers-qr-logo-upload {
        grid-column: auto;
    }

    .wijers-qr-form__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .wijers-qr-primary,
    .wijers-qr-secondary {
        width: 100%;
    }

    .wijers-qr-preview {
        padding: 2rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wijers-qr-primary,
    .wijers-qr-secondary {
        transition: none;
    }
}
