:root {
    --pqsm-ink: #171717;
    --pqsm-paper: #ffffff;
    --pqsm-line: #d8d8d8;
    --pqsm-muted: #666666;
    --pqsm-danger: #a40018;
    --pqsm-success: #176b3a;
    --pqsm-campaign-accent: #111111;
}

.pqsm-activation-page,
.pqsm-status-page {
    margin: 0;
    color: var(--pqsm-ink);
    background: var(--pqsm-paper);
    font-family: Arial, Helvetica, sans-serif;
}

.pqsm-activation,
.pqsm-status,
.pqsm-enquiry,
.pqsm-owner-panel {
    width: min(100% - 32px, 760px);
    margin-inline: auto;
}

.pqsm-campaign-hero {
    position: relative;
    min-height: 280px;
    margin-bottom: 72px;
    background: var(--pqsm-campaign-accent);
}

.pqsm-campaign-brand {
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.pqsm-campaign-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.pqsm-campaign-hero > img {
    display: block;
    width: 100%;
    height: auto;
}

.pqsm-product-code {
    position: absolute;
    left: 50%;
    bottom: -48px;
    width: min(70%, 420px);
    padding: 22px;
    color: #fff;
    background: #000;
    text-align: center;
    transform: translateX(-50%);
}

.pqsm-product-code span,
.pqsm-product-code strong {
    display: block;
}

.pqsm-product-code strong {
    margin-top: 6px;
    color: var(--pqsm-campaign-accent);
    font-size: clamp(2rem, 9vw, 4rem);
}

.pqsm-activation-form {
    padding-bottom: 64px;
}

.pqsm-activation-form h1,
.pqsm-status h1,
.pqsm-owner-panel h1 {
    margin: 0 0 28px;
    font-size: clamp(2rem, 8vw, 4.5rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.pqsm-kicker {
    margin-bottom: 8px;
    color: var(--pqsm-muted);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pqsm-form,
.pqsm-activation-form form {
    display: grid;
    gap: 18px;
}

.pqsm-form label,
.pqsm-activation-form form > label:not(.pqsm-check) {
    display: grid;
    gap: 7px;
    font-weight: 600;
}

.pqsm-form input,
.pqsm-form select,
.pqsm-form textarea,
.pqsm-activation-form input {
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    padding: 12px;
    border: 1px solid var(--pqsm-line);
    border-radius: 0;
    background: var(--pqsm-paper);
    color: var(--pqsm-ink);
    font: inherit;
}

.pqsm-check {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
    font-weight: 400;
}

.pqsm-check input {
    width: 24px;
    min-height: 24px;
    margin: 0;
}

.pqsm-form button,
.pqsm-activation-form button,
.pqsm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 22px;
    border: 0;
    border-radius: 0;
    background: var(--pqsm-campaign-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.pqsm-form button:disabled,
.pqsm-activation-form button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.pqsm-message {
    display: grid;
    gap: 4px;
    margin: 20px 0;
    padding: 16px;
    border-left: 4px solid var(--pqsm-ink);
    background: #f4f4f4;
}

.pqsm-message-error {
    border-color: var(--pqsm-danger);
}

.pqsm-message-success {
    border-color: var(--pqsm-success);
}

.pqsm-product-summary,
.pqsm-owner-product {
    margin-bottom: 32px;
    padding: 24px 0;
    border-bottom: 1px solid var(--pqsm-line);
}

.pqsm-price {
    margin: 10px 0;
    font-size: 2rem;
    font-weight: 700;
}

.pqsm-price span,
.pqsm-form-note {
    color: var(--pqsm-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.pqsm-honeypot {
    position: absolute !important;
    left: -10000px !important;
}

.pqsm-form-compact {
    max-width: 520px;
}

.pqsm-owner-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.pqsm-button-secondary {
    background: transparent !important;
    color: var(--pqsm-ink) !important;
    border: 1px solid var(--pqsm-line) !important;
}

.pqsm-status {
    padding-block: 20vh;
    text-align: center;
}

.pqsm-status-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    font-weight: 700;
    text-decoration: none;
}

.pqsm-status-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.pqsm-powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
    color: var(--pqsm-muted);
    font-size: 0.8rem;
}

.pqsm-powered-by img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

@media (max-width: 520px) {
    .pqsm-activation,
    .pqsm-status,
    .pqsm-enquiry,
    .pqsm-owner-panel {
        width: min(100% - 24px, 760px);
    }

    .pqsm-campaign-hero {
        min-height: 210px;
    }

    .pqsm-product-code {
        width: calc(100% - 48px);
    }
}
