.polaris-b2b-onboarding {
    --polaris-navy: #071b33;
    --polaris-navy-soft: #102b4b;
    --polaris-gold: #c8a45d;
    --polaris-gold-soft: #f5efe3;
    --polaris-border: #d9dee5;
    --polaris-muted: #5d6875;
    max-width: 1120px;
    margin: 0 auto;
    color: var(--polaris-navy);
}

.polaris-b2b-hero {
    margin-bottom: 28px;
    padding: clamp(28px, 5vw, 56px);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--polaris-navy), var(--polaris-navy-soft));
    color: #fff;
}

.polaris-b2b-hero h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.polaris-b2b-hero__intro > :last-child,
.polaris-b2b-hero__note:last-child {
    margin-bottom: 0;
}

.polaris-b2b-hero__note {
    margin-top: 18px;
    padding-left: 16px;
    border-left: 3px solid var(--polaris-gold);
    color: #eef2f6;
}

.polaris-b2b-registration {
    display: grid;
    gap: 22px;
}

.polaris-b2b-login-notice,
.polaris-b2b-shipping-toggle,
.polaris-b2b-invite-notice {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--polaris-border);
    border-radius: 12px;
    background: #f8fafc;
}

.polaris-b2b-paths,
.polaris-b2b-section {
    margin: 0;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--polaris-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(7, 27, 51, .06);
}

.polaris-b2b-paths legend,
.polaris-b2b-section legend {
    padding: 0 8px;
    color: var(--polaris-navy);
    font-size: 1.25rem;
    font-weight: 700;
}

.polaris-b2b-path-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.polaris-b2b-path-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 14px;
    min-height: 148px;
    padding: 22px;
    border: 2px solid var(--polaris-border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.polaris-b2b-path-card:hover,
.polaris-b2b-path-card:focus-within,
.polaris-b2b-path-card.is-selected {
    border-color: var(--polaris-gold);
    box-shadow: 0 8px 22px rgba(7, 27, 51, .11);
}

.polaris-b2b-path-card.is-selected {
    background: var(--polaris-gold-soft);
    transform: translateY(-2px);
}

.polaris-b2b-path-card input {
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    accent-color: var(--polaris-gold);
}

.polaris-b2b-path-card__title {
    font-size: 1.05rem;
    font-weight: 700;
}

.polaris-b2b-path-card__description {
    grid-column: 2;
    color: var(--polaris-muted);
    line-height: 1.55;
}

.polaris-b2b-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.polaris-b2b-section > legend,
.polaris-b2b-section > .polaris-b2b-field--wide,
.polaris-b2b-section > .form-row-wide,
.polaris-b2b-section > .polaris-b2b-upload,
.polaris-b2b-section > .polaris-b2b-consent {
    grid-column: 1 / -1;
}

.polaris-b2b-field,
.polaris-b2b-section .form-row {
    margin: 0;
}

.polaris-b2b-field label,
.polaris-b2b-section .form-row label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.polaris-b2b-registration input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.polaris-b2b-registration select,
.polaris-b2b-registration textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #b8c0ca;
    border-radius: 8px;
    background: #fff;
}

.polaris-b2b-registration textarea {
    min-height: 120px;
    resize: vertical;
}

.polaris-b2b-upload {
    padding: 20px;
    border: 1px dashed var(--polaris-gold);
    border-radius: 12px;
    background: var(--polaris-gold-soft);
}

.polaris-b2b-upload input[type="file"] {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 10px;
    padding: 9px;
    border-radius: 8px;
    background: #fff;
}

.polaris-b2b-shipping-toggle label,
.polaris-b2b-consent label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.polaris-b2b-shipping-toggle input,
.polaris-b2b-consent input {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    accent-color: var(--polaris-gold);
}

.polaris-b2b-consents {
    grid-template-columns: 1fr;
}

.polaris-b2b-consent {
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf0f3;
}

.polaris-b2b-consent:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.polaris-b2b-submit {
    margin: 4px 0 0;
    text-align: center;
}

.polaris-b2b-registration .polaris-b2b-submit__button {
    min-height: 52px;
    padding: 13px 30px;
    border: 2px solid var(--polaris-gold);
    border-radius: 8px;
    background: var(--polaris-navy);
    color: #fff;
    font-weight: 700;
    letter-spacing: .02em;
}

.polaris-b2b-registration .polaris-b2b-submit__button:hover,
.polaris-b2b-registration .polaris-b2b-submit__button:focus-visible {
    background: var(--polaris-gold);
    color: var(--polaris-navy);
}

.polaris-b2b-registration :focus-visible {
    outline: 3px solid rgba(200, 164, 93, .45);
    outline-offset: 2px;
}

.polaris-b2b-registration [hidden] {
    display: none !important;
}

@media (max-width: 720px) {
    .polaris-b2b-path-grid,
    .polaris-b2b-section {
        grid-template-columns: 1fr;
    }

    .polaris-b2b-section > * {
        grid-column: 1;
    }

    .polaris-b2b-path-card {
        min-height: 0;
    }

    .polaris-b2b-registration .polaris-b2b-submit__button {
        width: 100%;
    }
}
