/* Registration proforma — public frontend (theme fonts + type scale, aligned with registration wizard) */

.rpf-shell {
    --rpf-primary: var(--primary);
    --rpf-secondary: var(--secondary);
    --rpf-deep: var(--hov-primary, var(--primary));
    --rpf-text: var(--dark, #111723);
    --rpf-text-muted: var(--gray, #6b7280);
    --rpf-paper: var(--white, #fff);
    --rpf-paper-edge: rgba(17, 23, 35, 0.1);
    --rpf-blush: var(--light, #f8f9fb);
    --rpf-gold-glow: color-mix(in srgb, var(--secondary, #f59e0b) 22%, transparent);
    --rpf-radius: 16px;
    --rpf-radius-sm: 8px;
    --rpf-shadow: 0 4px 24px rgba(17, 23, 35, 0.08);

    /* Consistent type scale (Poppins / site body = inherit) */
    --rpf-fs-2xs: 0.6875rem;  /* 11px — badges, table headers */
    --rpf-fs-xs: 0.75rem;     /* 12px — hints, legend */
    --rpf-fs-sm: 0.8125rem;   /* 13px — notes, eyebrow */
    --rpf-fs-base: 0.875rem;  /* 14px — body, table, buttons */
    --rpf-fs-md: 1rem;        /* 16px — section titles */
    --rpf-fs-lg: clamp(1.35rem, 2.5vw, 1.75rem); /* page title */
    --rpf-fw-medium: 500;
    --rpf-fw-semibold: 600;
    --rpf-fw-bold: 700;

    position: relative;
    font-family: inherit;
    font-size: var(--rpf-fs-base);
    line-height: 1.5;
    color: var(--rpf-text);
    padding: 2rem 0 3.5rem;
    overflow: hidden;
    background: var(--light, #f8f9fb);
}

.rpf-shell h1,
.rpf-shell h2,
.rpf-shell .rpf-title,
.rpf-shell .rpf-hero__title,
.rpf-shell .rpf-section-title,
.rpf-shell .rpf-cta__text {
    font-family: inherit;
}

.rpf-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 12% -5%, rgba(255, 6, 143, 0.14), transparent 58%),
        radial-gradient(ellipse 50% 45% at 95% 8%, var(--rpf-gold-glow), transparent 52%),
        radial-gradient(ellipse 40% 35% at 50% 100%, rgba(255, 6, 143, 0.06), transparent 55%);
}

.rpf-ambient::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff068f' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.rpf-container {
    position: relative;
    z-index: 1;
}

/* ── Hero ─────────────────────────────────────────── */
.rpf-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    margin-bottom: 1.5rem;
    animation: rpf-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rpf-hero__eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: var(--rpf-fs-sm);
    font-weight: var(--rpf-fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rpf-text-muted);
    margin: 0 0 0.5rem;
    font-size: var(--rpf-fs-sm);
}

.rpf-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--rpf-primary), var(--rpf-secondary));
    color: #fff;
    font-size: var(--rpf-fs-2xs);
    font-weight: var(--rpf-fw-semibold);
    letter-spacing: 0.06em;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--rpf-primary) 35%, transparent);
}

.rpf-hero__title {
    font-size: var(--rpf-fs-lg);
    font-weight: var(--rpf-fw-bold);
    line-height: 1.2;
    margin: 0 0 0.65rem;
    color: var(--rpf-text);
    letter-spacing: -0.02em;
}

.rpf-hero__lead {
    font-size: var(--rpf-fs-base);
    line-height: 1.55;
    color: var(--rpf-text-muted);
    margin: 0;
    max-width: 36rem;
}

.rpf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.rpf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: var(--rpf-fs-base);
    font-weight: var(--rpf-fw-semibold);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rpf-btn--primary {
    background: linear-gradient(135deg, var(--rpf-primary) 0%, var(--rpf-deep) 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(255, 6, 143, 0.38);
}

.rpf-btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 6, 143, 0.45);
}

.rpf-btn--ghost {
    background: #fff;
    color: var(--rpf-text);
    border: 1px solid var(--rpf-paper-edge);
    box-shadow: 0 2px 8px rgba(26, 20, 35, 0.05);
}

.rpf-btn--ghost:hover {
    color: var(--rpf-primary);
    border-color: rgba(255, 6, 143, 0.35);
    transform: translateY(-1px);
}

.rpf-btn--lg {
    padding: 0.7rem 1.35rem;
    font-size: var(--rpf-fs-base);
}

/* ── Step rail ──────────────────────────────────────── */
.rpf-step-rail {
    margin-bottom: 1rem;
    animation: rpf-rise 0.65s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rpf-step-rail__hint {
    font-size: var(--rpf-fs-xs);
    color: var(--rpf-text-muted);
    margin: 0 0 0.4rem 0.15rem;
}

.rpf-step-rail__track {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.35rem 0.15rem 0.65rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.rpf-step-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem 0.45rem 0.45rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--rpf-paper-edge);
    color: var(--rpf-text);
    text-decoration: none;
    font-size: var(--rpf-fs-sm);
    box-shadow: 0 2px 10px rgba(26, 20, 35, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.rpf-step-pill:hover {
    border-color: rgba(255, 6, 143, 0.4);
    box-shadow: 0 6px 18px rgba(255, 6, 143, 0.12);
    transform: translateY(-2px);
    color: var(--rpf-text);
}

.rpf-step-pill__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--rpf-blush), #fff);
    color: var(--rpf-primary);
    font-size: var(--rpf-fs-base);
}

.rpf-step-pill__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    padding-right: 0.15rem;
}

.rpf-step-pill__num {
    font-size: var(--rpf-fs-2xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rpf-text-muted);
    font-weight: var(--rpf-fw-semibold);
}

.rpf-step-pill__label {
    font-size: var(--rpf-fs-sm);
    font-weight: var(--rpf-fw-semibold);
}

/* ── Legend ─────────────────────────────────────────── */
.rpf-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: var(--rpf-fs-xs);
    color: var(--rpf-text-muted);
    animation: rpf-rise 0.65s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rpf-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.rpf-legend__dot {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--rpf-fs-2xs);
    font-weight: var(--rpf-fw-bold);
}

.rpf-legend__dot--yes {
    background: rgba(255, 6, 143, 0.12);
    color: var(--rpf-primary);
}

.rpf-legend__dot--cond {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.rpf-legend__dot--no {
    background: rgba(26, 20, 35, 0.06);
    color: var(--rpf-text-muted);
    font-weight: 500;
}

/* ── Document card ──────────────────────────────────── */
.rpf-document {
    background: var(--rpf-paper);
    border: 1px solid var(--rpf-paper-edge);
    border-radius: var(--rpf-radius);
    box-shadow: var(--rpf-shadow);
    padding: clamp(1.25rem, 3vw, 2rem);
    position: relative;
    animation: rpf-rise 0.7s 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rpf-document::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--rpf-primary), var(--rpf-secondary));
}

/* Sheet header — hero carries main title on screen; show document title when printing */
.rpf-document > .rpf-header > .rpf-title {
    display: none;
}

@media print {
    .rpf-document > .rpf-header > .rpf-title {
        display: block;
    }
}

.rpf-header {
    padding: 0.75rem 0 0rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--rpf-paper-edge);
}

.rpf-title {
    font-size: var(--rpf-fs-md);
    font-weight: var(--rpf-fw-bold);
    margin: 0 0 0.5rem;
    color: var(--rpf-text);
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.rpf-intro {
    font-size: var(--rpf-fs-base);
    line-height: 1.55;
    color: var(--rpf-text-muted);
    margin: 0;
}

/* Sections */
.rpf-section {
    padding: 0;
    margin-bottom: 1.75rem;
    page-break-inside: avoid;
    animation: rpf-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rpf-section:nth-child(2) { animation-delay: 0.05s; }
.rpf-section:nth-child(3) { animation-delay: 0.08s; }
.rpf-section:nth-child(4) { animation-delay: 0.11s; }
.rpf-section:nth-child(5) { animation-delay: 0.14s; }
.rpf-section:nth-child(6) { animation-delay: 0.17s; }
.rpf-section:nth-child(7) { animation-delay: 0.2s; }
.rpf-section:nth-child(8) { animation-delay: 0.23s; }
.rpf-section:nth-child(9) { animation-delay: 0.26s; }

.rpf-section-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: var(--rpf-fs-md);
    font-weight: var(--rpf-fw-bold);
    margin: 0;
    padding: 0.65rem 1rem;
    color: #fff;
    background: linear-gradient(105deg, var(--rpf-primary) 0%, var(--rpf-secondary) 100%);
    border-radius: var(--rpf-radius-sm) var(--rpf-radius-sm) 0 0;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--rpf-primary) 20%, transparent);
}

.rpf-step-num {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: var(--rpf-primary);
    font-size: var(--rpf-fs-sm);
    font-weight: var(--rpf-fw-bold);
}

.rpf-step-note {
    font-size: var(--rpf-fs-sm);
    line-height: 1.45;
    color: var(--rpf-text-muted);
    margin: 0;
    padding: 0.65rem 1rem;
    background: var(--rpf-blush);
    border-left: 3px solid var(--rpf-primary);
}

.rpf-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--rpf-paper-edge);
    border-top: none;
    border-radius: 0 0 var(--rpf-radius-sm) var(--rpf-radius-sm);
    overflow: hidden;
    background: #fff;
}

.rpf-table thead th {
    background: #faf8fc;
    font-size: var(--rpf-fs-2xs);
    font-weight: var(--rpf-fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rpf-text-muted);
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--rpf-paper-edge);
}

.rpf-table tbody td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #f0ecf4;
    font-size: var(--rpf-fs-base);
    vertical-align: top;
}

.rpf-table tbody tr:last-child td {
    border-bottom: none;
}

@media (hover: hover) {
    .rpf-table tbody tr:hover td {
        background: rgba(255, 6, 143, 0.03);
    }
}

.rpf-col-field {
    width: 36%;
}

.rpf-col-req {
    width: 12%;
    text-align: center;
}

.rpf-col-answer {
    min-height: 2.25rem;
    background: #fffefb;
}

.rpf-req-yes {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 6, 143, 0.12);
    color: var(--rpf-primary);
    font-weight: var(--rpf-fw-bold);
    font-size: var(--rpf-fs-2xs);
}

.rpf-req-cond {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    color: #b45309;
    font-weight: var(--rpf-fw-bold);
    font-size: var(--rpf-fs-xs);
}

.rpf-req-no {
    color: var(--rpf-text-muted);
    font-size: var(--rpf-fs-xs);
    font-weight: var(--rpf-fw-medium);
}

.rpf-hint {
    display: block;
    font-size: var(--rpf-fs-xs);
    color: var(--rpf-text-muted);
    font-weight: var(--rpf-fw-medium);
    margin-top: 0.2rem;
    line-height: 1.35;
}

.rpf-appendix {
    font-size: var(--rpf-fs-base);
    border-top: 1px dashed #ddd5e3;
    padding-top: 0.75rem;
    margin-top: 0.35rem;
    color: var(--rpf-text-muted);
}

.rpf-appendix ul {
    margin: 0.35rem 0 1rem;
    padding-left: 1.2rem;
}

.rpf-appendix a {
    color: var(--rpf-primary);
    font-weight: var(--rpf-fw-semibold);
    word-break: break-all;
}

.rpf-footer-note {
    font-size: var(--rpf-fs-xs);
    color: var(--rpf-text-muted);
}

/* Bottom CTA */
.rpf-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    animation: rpf-rise 0.65s 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rpf-cta__text {
    font-size: var(--rpf-fs-md);
    font-weight: var(--rpf-fw-bold);
    margin: 0 0 0.85rem;
    color: var(--rpf-text);
}

@keyframes rpf-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive (info view on mobile/tablet) ─────────── */
@media (max-width: 991.98px) {
    .rpf-shell {
        padding: 1.5rem 0 2.75rem;
    }

    .rpf-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .rpf-hero__actions {
        width: 100%;
        flex-direction: column;
    }

    .rpf-hero__actions .rpf-btn {
        width: 100%;
        justify-content: center;
    }

    .rpf-document {
        padding: 1rem 0.85rem 1.25rem;
        border-radius: 14px;
    }

    .rpf-title {
        font-size: var(--rpf-fs-md);
    }

    .rpf-intro {
        font-size: var(--rpf-fs-base);
    }

    .rpf-section-title {
        font-size: var(--rpf-fs-base);
        padding: 0.55rem 0.75rem;
    }

    .rpf-legend {
        gap: 0.5rem 0.85rem;
        font-size: var(--rpf-fs-xs);
    }

    /* Hide "Your answer" — read-only requirements list on small screens */
    .rpf-shell .rpf-table thead .rpf-col-answer,
    .rpf-shell .rpf-table tbody .rpf-col-answer {
        display: none !important;
    }

    .rpf-shell .rpf-table thead {
        display: none;
    }

    .rpf-shell .rpf-table,
    .rpf-shell .rpf-table tbody {
        display: block;
        width: 100%;
    }

    .rpf-shell .rpf-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.35rem 0.65rem;
        padding: 0.7rem 0.5rem;
        border-bottom: 1px solid #f0ecf4;
    }

    .rpf-shell .rpf-table tbody tr:last-child {
        border-bottom: none;
    }

    .rpf-shell .rpf-table tbody td {
        display: block;
        width: auto;
        border: none;
        padding: 0;
    }

    .rpf-shell .rpf-table tbody td.rpf-col-field {
        flex: 1 1 calc(100% - 3.5rem);
        min-width: 0;
        font-weight: 600;
        font-size: var(--rpf-fs-xs);
        line-height: 1.4;
    }

    .rpf-step-pill {
        font-size: var(--rpf-fs-xs);
    }

    .rpf-step-pill__label {
        font-size: var(--rpf-fs-xs);
    }

    .rpf-shell .rpf-table tbody td.rpf-col-req {
        flex: 0 0 auto;
        text-align: right;
        align-self: center;
    }

    .rpf-shell .rpf-table tbody td.rpf-col-req::before {
        display: none;
    }

    .rpf-shell .rpf-hint {
        font-size: var(--rpf-fs-xs);
        margin-top: 0.15rem;
    }

    .rpf-cta {
        margin-top: 1.5rem;
        padding: 1.15rem 0.5rem;
    }

    .rpf-cta .rpf-btn--lg {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .rpf-shell {
        padding: 3rem 0 1.25rem;
    }

    .rpf-hero__title {
        font-size: var(--rpf-fs-lg);
    }

    .rpf-hero__lead {
        font-size: var(--rpf-fs-base);
    }

    .rpf-step-pill {
        padding: 0.4rem 0.7rem 0.4rem 0.4rem;
    }

    .rpf-step-pill__num {
        font-size: var(--rpf-fs-2xs);
    }

    .rpf-document {
        padding: 0.85rem 0.65rem 1rem;
    }

    .rpf-section {
        margin-bottom: 1.35rem;
    }

    .rpf-appendix {
        font-size: var(--rpf-fs-sm);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rpf-hero,
    .rpf-step-rail,
    .rpf-legend,
    .rpf-document,
    .rpf-section,
    .rpf-cta {
        animation: none;
    }

    .rpf-btn,
    .rpf-step-pill {
        transition: none;
    }
}

/* ── Print / PDF (hide site chrome) ───────────────── */
@media print {
    @page {
        margin: 12mm 10mm 6mm 10mm;
        size: auto;
    }

  body.rpf-print-root .site-top-banner,
  body.rpf-print-root .site-top-banner--promo,
  body.rpf-print-root #main-header,
  body.rpf-print-root .aiz-header,
  body.rpf-print-root .app-header-topbar,
  body.rpf-print-root .app-main-nav,
  body.rpf-print-root .ft-footer,
  body.rpf-print-root .ft-footer--desktop,
  body.rpf-print-root .ft-footer--mobile,
  body.rpf-print-root footer:not(.rpf-appendix),
  body.rpf-print-root .aiz-mobile-bottom-nav,
  body.rpf-print-root .aiz-cookie-alert,
  body.rpf-print-root .scroll-top,
  body.rpf-print-root #scroll-top,
  body.rpf-print-root .rpf-no-print {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
  }

  body.rpf-print-root,
  body.rpf-print-root .aiz-main-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    min-height: 0 !important;
  }

  body.rpf-print-root .aiz-main-wrapper {
    display: block !important;
  }

  body.rpf-print-root .rpf-shell {
    padding: 0;
    background: #fff;
  }

  body.rpf-print-root .rpf-ambient {
    display: none;
  }

  body.rpf-print-root .rpf-container {
    max-width: none;
    padding: 0;
    width: 100%;
  }

  body.rpf-print-root .rpf-document {
    box-shadow: none;
    border: none;
    padding: 0;
  }

  body.rpf-print-root .rpf-document::before {
    display: none;
  }

  body.rpf-print-root .rpf-section {
    animation: none;
  }

  body.rpf-print-root .rpf-section-title {
    background: #333 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.rpf-print-root .rpf-table tbody tr:hover td {
    background: transparent;
  }
}
