:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f7f7f5;
    color: #303030;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-width: 0;
    min-height: 100%;
    background: #f7f7f5;
}

body.fpcc-qr-page {
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
}

.fpcc-qr-shell {
    display: flex;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    align-items: flex-start;
    justify-content: center;
    padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.fpcc-qr-card {
    width: 100%;
    max-width: 560px;
    overflow: hidden;
    border: 1px solid rgba(9, 27, 44, 0.1);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(9, 27, 44, 0.1);
}

.fpcc-qr-header {
    padding: 22px 22px 18px;
    border-bottom: 3px solid #b89058;
    background: #091B2C;
    color: #ffffff;
    text-align: center;
}

.fpcc-qr-brand,
.fpcc-qr-team,
.fpcc-qr-agent p,
.fpcc-qr-agent h1,
.fpcc-qr-state h1,
.fpcc-qr-state p {
    margin: 0;
}

.fpcc-qr-brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.1;
}

.fpcc-qr-team {
    margin-top: 5px;
    color: #d9e6e8;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.fpcc-qr-agent,
.fpcc-qr-state {
    padding: 24px 22px 4px;
    text-align: center;
}

.fpcc-qr-agent h1,
.fpcc-qr-state h1 {
    color: #091B2C;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 7vw, 2.1rem);
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.fpcc-qr-agent > p:last-child {
    margin-top: 7px;
    color: #588890;
    font-weight: 700;
}

.fpcc-qr-kicker {
    margin-bottom: 7px !important;
    color: #b89058;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fpcc-qr-form {
    padding: 22px;
}

.fpcc-qr-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.fpcc-qr-field {
    margin-bottom: 16px;
}

.fpcc-qr-grid .fpcc-qr-field {
    margin-bottom: 0;
}

.fpcc-qr-field label {
    display: block;
    margin-bottom: 7px;
    color: #091B2C;
    font-size: 0.95rem;
    font-weight: 700;
}

.fpcc-qr-field input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #aebbc5;
    border-radius: 10px;
    background: #ffffff;
    color: #303030;
    font: inherit;
    font-size: 16px;
    line-height: 1.3;
}

.fpcc-qr-field input:focus,
.fpcc-qr-consent input:focus-visible,
.fpcc-qr-submit:focus-visible,
.fpcc-qr-privacy a:focus-visible {
    outline: 3px solid rgba(88, 136, 144, 0.35);
    outline-offset: 2px;
}

.fpcc-qr-field input:focus {
    border-color: #588890;
}

.fpcc-qr-field input[aria-invalid="true"] {
    border-color: #a63737;
}

.fpcc-qr-consent {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
    margin-top: 4px;
    padding: 15px;
    border: 1px solid #c8d5d8;
    border-radius: 12px;
    background: #f7f7f5;
}

.fpcc-qr-consent.has-error {
    border-color: #a63737;
}

.fpcc-qr-consent input {
    width: 24px;
    height: 24px;
    margin: 1px 0 0;
    accent-color: #091B2C;
}

.fpcc-qr-consent label {
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.45;
}

.fpcc-qr-error-summary,
.fpcc-qr-field-error {
    color: #8d2828;
}

.fpcc-qr-error-summary {
    margin: 18px 22px 0;
    padding: 12px 14px;
    border-left: 4px solid #a63737;
    border-radius: 6px;
    background: #fff1f1;
    font-weight: 700;
}

.fpcc-qr-field-error {
    margin: 6px 0 0;
    font-size: 0.86rem;
    font-weight: 700;
}

.fpcc-qr-submit {
    display: block;
    width: 100%;
    min-height: 54px;
    margin-top: 20px;
    padding: 13px 18px;
    border: 0;
    border-radius: 11px;
    background: #091B2C;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.fpcc-qr-submit:hover {
    background: #173b5d;
}

.fpcc-qr-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.fpcc-qr-required,
.fpcc-qr-privacy {
    color: #58636b;
    font-size: 0.8rem;
    line-height: 1.5;
}

.fpcc-qr-required {
    margin: 10px 0 0;
}

.fpcc-qr-privacy {
    margin: 14px 0 0;
    text-align: center;
}

.fpcc-qr-privacy a {
    color: #091B2C;
    font-weight: 700;
}

.fpcc-qr-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.fpcc-qr-state {
    padding: 42px 26px 46px;
}

.fpcc-qr-state p {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.6;
}

.fpcc-qr-success::before {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    background: #588890;
    color: #ffffff;
    content: "✓";
    font-size: 1.8rem;
    font-weight: 800;
}

@media (min-width: 520px) {
    .fpcc-qr-shell {
        align-items: center;
        padding-top: 28px;
        padding-bottom: 28px;
    }

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

    .fpcc-qr-card {
        border-radius: 24px;
    }

    .fpcc-qr-form,
    .fpcc-qr-agent {
        padding-right: 30px;
        padding-left: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
.fpcc-qr-regulatory {
    margin: 20px 0;
    padding: 16px;
    border-left: 4px solid #091B2C;
    border-radius: 6px;
    background: #f7f7f5;
    color: #303030;
}

.fpcc-qr-regulatory h2 {
    margin: 0 0 12px;
    color: #091B2C;
    font-size: 18px;
}

.fpcc-qr-regulatory p {
    margin: 0 0 8px;
    line-height: 1.55;
}

.fpcc-qr-regulatory p:last-child {
    margin-bottom: 0;
}
