/* Public white-label micro-site pages: About / Contact / Register-as-Sub-Agent.
   Reuses the --lp-p* CSS variables the login page (login.css) already defines/derives
   from a tenant's BrandPrimaryColor, so the two share one color system. Layout language
   (split hero + photo, pill nav, card grids, numbered form sections) is modelled on a
   design reference the owner supplied — adapted to be tenant-agnostic: hero photography
   comes from the tenant's own uploaded hero images (not a fixed stock photo), and there
   are no hardcoded third-party trade-body logos or a fixed UK-consortium dropdown, since
   this product is white-labelled to arbitrary agencies, not one specific company. */

:root {
    --lp-p900: #0D1B4B;
    --lp-p800: #14247A;
    --lp-p700: #1B2B7B;
    --lp-p600: #3A4AA0;
    --lp-p500: #5B6BC0;
    --lp-p50:  #F0F4FF;
}

.pns-page { background: #fff; }

/* ── Top nav (pill buttons) ─────────────────────────────────────────────── */
.pns-topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 40px;
    background: #fff;
    border-bottom: 1px solid #EEF0F5;
}

.pns-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--lp-p900);
    font-weight: 800;
    font-size: 1.1rem;
    min-width: 0;
}

.pns-brand img {
    height: 34px;
    max-width: 150px;
    object-fit: contain;
    flex-shrink: 0;
}

.pns-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pns-navlinks {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pns-navlinks a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1.5px solid var(--lp-p700);
    border-radius: 8px;
    color: var(--lp-p700);
    background: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

.pns-navlinks a:hover { background: var(--lp-p50); }

.pns-navlinks a.pns-nav-active,
.pns-navlinks a.pns-nav-primary {
    background: var(--lp-p700);
    color: #fff;
    border-color: var(--lp-p700);
}

.pns-navlinks a.pns-nav-primary:hover,
.pns-navlinks a.pns-nav-active:hover { background: var(--lp-p800); }

/* ── Hero: split layout (About) ─────────────────────────────────────────── */
.pns-hero-split {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 320px;
    background: linear-gradient(135deg, var(--lp-p900) 0%, var(--lp-p800) 100%);
    color: #fff;
    margin: 32px 40px 0;
    border-radius: 20px;
    overflow: hidden;
}

.pns-hero-split.has-photo { grid-template-columns: 56% 44%; }

.pns-hero-split-copy {
    padding: clamp(36px, 5vw, 64px) clamp(28px, 4.5vw, 60px);
    align-self: center;
}

.pns-hero-split-photo {
    background-size: cover;
    background-position: center;
    min-height: 220px;
}

/* ── Hero: banner layout (Contact / Register) ───────────────────────────── */
.pns-hero-banner {
    margin: 32px 40px 0;
    border-radius: 20px;
    padding: clamp(36px, 5vw, 60px);
    color: #fff;
    background: linear-gradient(135deg, var(--lp-p900) 0%, var(--lp-p800) 100%);
    background-size: cover;
    background-position: center;
}

.pns-eyebrow {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 1.6px;
    font-weight: 700;
    color: #8FB4FF;
    margin: 0 0 16px;
}

.pns-hero-split h1,
.pns-hero-banner h1 {
    font-size: clamp(30px, 3.6vw, 50px);
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 0 0 18px;
    font-weight: 800;
}

.pns-hero-lead {
    font-size: clamp(1rem, 1.1vw, 1.3rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 640px;
}

/* ── Content sections ────────────────────────────────────────────────────── */
.pns-section {
    padding: clamp(40px, 6vw, 68px) 40px;
    max-width: 1180px;
    margin: 0 auto;
}

.pns-section-heading { max-width: 780px; margin-bottom: 30px; }

.pns-section-heading h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    letter-spacing: -0.5px;
    margin: 0 0 14px;
    color: var(--lp-p900);
}

.pns-prose p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #4B5563;
    margin: 0 0 18px;
}

.pns-prose p:last-child { margin-bottom: 0; }
.pns-body-text { white-space: pre-line; }

/* ── CTA band ────────────────────────────────────────────────────────────── */
.pns-cta {
    background: var(--lp-p50);
    border-radius: 20px;
    margin: 0 40px 64px;
    padding: clamp(30px, 4vw, 48px) clamp(28px, 4.5vw, 52px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.pns-cta h2 { margin: 0 0 6px; font-size: 1.6rem; color: var(--lp-p900); }
.pns-cta p { margin: 0; color: #4B5563; }

.pns-cta-btn {
    background: var(--lp-p700);
    color: #fff !important;
    padding: 15px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pns-cta-btn:hover { background: var(--lp-p800); }

/* ── Contact page: two-column layout ────────────────────────────────────── */
.pns-contact-layout {
    display: grid;
    grid-template-columns: 34% 1fr;
    gap: 32px;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(30px, 5vw, 56px) 40px 72px;
}

.pns-contact-layout h2 {
    font-size: 1.1rem;
    letter-spacing: -0.3px;
    margin: 0 0 16px;
    color: var(--lp-p900);
}

.pns-contact-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 12px;
}

.pns-contact-card .pns-label {
    font-size: 0.85rem;
    color: #6B7280;
    font-weight: 600;
    margin: 0 0 8px;
}

.pns-contact-card a,
.pns-contact-card .pns-static-value {
    font-size: 1.1rem;
    color: var(--lp-p700);
    text-decoration: none;
    font-weight: 700;
}

.pns-contact-card a:hover { text-decoration: underline; }

.pns-form-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: clamp(26px, 3.5vw, 40px);
    height: fit-content;
}

.pns-form-card > h2 { font-size: 1.6rem; margin: 0 0 8px; }
.pns-form-card > p.pns-form-card-sub { color: #6B7280; margin: 0 0 26px; }

/* ── Forms — shared fields ──────────────────────────────────────────────── */
.pns-form-field { margin-bottom: 18px; }

.pns-form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.pns-form-field input,
.pns-form-field textarea,
.pns-form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: #1f2937;
}

.pns-form-field textarea { resize: vertical; min-height: 90px; }

.pns-form-field input:focus,
.pns-form-field textarea:focus,
.pns-form-field select:focus {
    outline: none;
    border-color: var(--lp-p700);
    box-shadow: 0 0 0 3px rgba(27, 43, 123, 0.12);
}

.pns-form-field small {
    display: block;
    font-size: 0.78rem;
    color: #6B7280;
    margin-top: 6px;
    line-height: 1.5;
}

.pns-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 22px;
}

.pns-submit-btn {
    background: var(--lp-p700);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 26px;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
}

.pns-submit-btn:hover { background: var(--lp-p800); }

.pns-alert-success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.pns-alert-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.pns-val-msg {
    color: #DC2626;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

.pns-note { font-size: 0.85rem; color: #6B7280; line-height: 1.6; margin: 18px 0 0; }
.pns-note a { color: var(--lp-p700); }

/* Honeypot — hidden from real visitors, present for bots that fill every field */
.pns-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Registration: numbered sections ────────────────────────────────────── */
.pns-reg-hero-lead { font-size: clamp(1rem, 1.1vw, 1.3rem); color: rgba(255,255,255,.85); margin: 0; }

.pns-reg-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    padding: clamp(28px, 4vw, 44px) clamp(24px, 5vw, 52px);
    max-width: 1040px;
    margin: 36px auto 72px;
}

.pns-required-note { font-size: 0.85rem; color: #6B7280; margin: 0 0 26px; }

.pns-reg-section {
    border-bottom: 1px solid #EEF0F5;
    padding-bottom: 28px;
    margin-bottom: 28px;
}

.pns-reg-section:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.pns-reg-section h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.25rem;
    letter-spacing: -0.3px;
    margin: 0 0 26px;
    color: var(--lp-p900);
}

.pns-reg-section h2 span {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--lp-p700);
    color: var(--lp-p700);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pns-reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
}

.pns-reg-grid .pns-form-field { margin-bottom: 0; }
.pns-reg-wide { grid-column: 1 / -1; }

.pns-radio-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.pns-radio-group legend { font-weight: 600; font-size: 0.9rem; color: #374151; margin-bottom: 14px; padding: 0; }

.pns-radio-options { display: flex; gap: 22px; flex-wrap: wrap; }

.pns-radio-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #374151;
    cursor: pointer;
}

.pns-radio-options input {
    accent-color: var(--lp-p700);
    width: 18px;
    height: 18px;
    margin: 0;
}

.pns-reg-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.pns-reg-actions .pns-submit-btn { padding: 15px 30px; font-size: 1rem; }
.pns-reg-actions p { font-size: 0.9rem; color: #6B7280; margin: 0; }
.pns-reg-actions a { color: var(--lp-p700); }

/* ── Product / feature cards (About) ────────────────────────────────────── */
.pns-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pns-cards article {
    background: #F8FAFF;
    border: 1px solid var(--lp-p50);
    border-radius: 14px;
    padding: 26px;
}

.pns-cards article h3 { font-size: 1.1rem; margin: 0 0 10px; color: var(--lp-p900); }
.pns-cards article p { font-size: 0.95rem; line-height: 1.65; color: #515968; margin: 0; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.pns-footer {
    border-top: 1px solid #EEF0F5;
    padding: 32px 40px 40px;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #6B7280;
}

.pns-footer-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.pns-footer-contact a { color: var(--lp-p700); text-decoration: none; }
.pns-footer-contact a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .pns-topnav { padding: 16px 22px; }
    .pns-hero-split, .pns-hero-banner { margin: 20px 20px 0; padding: 32px 26px; }
    .pns-hero-split.has-photo { grid-template-columns: 1fr; }
    .pns-hero-split-photo { min-height: 180px; order: -1; }
    .pns-section { padding: 40px 22px; }
    .pns-cta { margin: 0 20px 44px; flex-direction: column; align-items: flex-start; }
    .pns-contact-layout { grid-template-columns: 1fr; padding: 28px 22px 48px; }
    .pns-cards { grid-template-columns: 1fr; }
    .pns-two-col { grid-template-columns: 1fr; }
    .pns-reg-card { margin: 24px 20px 56px; padding: 28px 22px; }
    .pns-reg-grid { grid-template-columns: 1fr; }
    .pns-footer { padding: 24px 22px 32px; }
}

@media (max-width: 560px) {
    .pns-navlinks { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .pns-navlinks a.pns-nav-primary { grid-column: 1 / -1; }
    .pns-reg-actions { flex-direction: column; align-items: flex-start; }
}
