/* ==========================================================================
   SEMA Data - Reseller Registration
   ========================================================================== */

:root {
    --rr-primary: #1a56db;
    --rr-primary-hover: #1646b5;
    --rr-primary-soft: #eef3ff;
    --rr-navy: #1b3a8c;
    --rr-subtitle: #5c7fd6;
    --rr-text: #1f2937;
    --rr-muted: #5b6474;
    --rr-border: #dfe4ec;
    --rr-page-bg: #f6f8fb;
    --rr-info-bg: #eff5ff;
    --rr-info-border: #c9d9fb;
    --rr-highlight-bg: #fff9ea;
    --rr-highlight-border: #f6e2ae;
    --rr-highlight-icon: #b7860b;
    --rr-success: #16803c;
    --rr-success-hover: #11692f;
    --rr-danger: #d92d20;
    --rr-radius: 8px;

    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-color: var(--rr-text);
    --bs-body-bg: #fff; /* Bootstrap uses this for input backgrounds; the page itself gets --rr-page-bg */
    --bs-link-color: var(--rr-primary);
    --bs-link-color-rgb: 26, 86, 219;
    --bs-link-hover-color: var(--rr-primary-hover);
    --bs-link-hover-color-rgb: 22, 70, 181;
    --bs-form-invalid-color: var(--rr-danger);
    --bs-form-invalid-border-color: var(--rr-danger);
}

body {
    background: var(--rr-page-bg);
    font-size: 0.9375rem;
}

/* ---------- Bootstrap theme overrides ---------- */

.btn {
    font-weight: 600;
    border-radius: 6px;
    padding: 0.5rem 1.1rem;
}

.btn-primary {
    --bs-btn-bg: var(--rr-primary);
    --bs-btn-border-color: var(--rr-primary);
    --bs-btn-hover-bg: var(--rr-primary-hover);
    --bs-btn-hover-border-color: var(--rr-primary-hover);
    --bs-btn-active-bg: var(--rr-primary-hover);
    --bs-btn-active-border-color: var(--rr-primary-hover);
    --bs-btn-disabled-bg: var(--rr-primary);
    --bs-btn-disabled-border-color: var(--rr-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--rr-primary);
    --bs-btn-border-color: var(--rr-primary);
    --bs-btn-hover-bg: var(--rr-primary);
    --bs-btn-hover-border-color: var(--rr-primary);
    --bs-btn-active-bg: var(--rr-primary);
}

.btn-outline-secondary {
    --bs-btn-color: var(--rr-text);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #cfd6e0;
    --bs-btn-hover-color: var(--rr-text);
    --bs-btn-hover-bg: #f1f4f8;
    --bs-btn-hover-border-color: #b9c2cf;
    --bs-btn-active-color: var(--rr-text);
    --bs-btn-active-bg: #e7ebf1;
    --bs-btn-active-border-color: #b9c2cf;
}

.btn-success {
    --bs-btn-bg: var(--rr-success);
    --bs-btn-border-color: var(--rr-success);
    --bs-btn-hover-bg: var(--rr-success-hover);
    --bs-btn-hover-border-color: var(--rr-success-hover);
    --bs-btn-active-bg: var(--rr-success-hover);
    --bs-btn-disabled-bg: var(--rr-success);
    --bs-btn-disabled-border-color: var(--rr-success);
}

.form-control,
.form-select,
.input-group-text {
    border-color: #cfd6e0;
    font-size: 0.9375rem;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--rr-primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 86, 219, 0.18);
}

.form-check-input:checked {
    background-color: var(--rr-primary);
    border-color: var(--rr-primary);
}

.form-check-input {
    border-color: #aab4c3;
}

.input-group-text {
    background: #fff;
    color: var(--rr-muted);
}

.form-label,
legend.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rr-text);
    margin-bottom: 0.4rem;
}

.form-text {
    color: var(--rr-muted);
    font-size: 0.8125rem;
}

.required-mark {
    color: var(--rr-danger);
    font-weight: 700;
}

.optional-mark {
    font-weight: 400;
    color: var(--rr-muted);
}

/* Hides the raw Vue template until RegistrationModel.Wizard mounts */
[v-cloak] {
    display: none;
}

.radio-group.is-invalid .form-check-input {
    border-color: var(--rr-danger);
}

/* ---------- Header / footer ---------- */

.site-header {
    padding: 1.25rem 0 1rem;
}

.site-header .container-xl {
    border-bottom: 1px solid var(--rr-border);
    padding-bottom: 1rem;
}

.site-logo {
    height: 64px;
    width: auto;
}

.site-title h1 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--rr-navy);
    margin: 0;
    line-height: 1.15;
}

.site-title p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rr-subtitle);
    margin: 0.15rem 0 0;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--rr-muted);
    font-size: 0.8125rem;
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

/* ---------- Stepper ---------- */

.wizard-stepper {
    list-style: none;
    display: flex;
    margin: 0.5rem 0 1.5rem;
    padding: 0;
    border-bottom: 1px solid var(--rr-border);
}

.wizard-stepper li {
    flex: 1 1 0;
    min-width: 0;
}

.step-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 0.5rem;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    color: var(--rr-navy);
    font-weight: 500;
    font-size: 0.9375rem;
    text-align: left;
    line-height: 1.2;
}

.step-link:disabled {
    cursor: default;
    color: var(--rr-muted);
}

.step-link:not(:disabled):hover .step-label {
    text-decoration: underline;
}

.step-number {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--rr-primary);
    color: var(--rr-primary);
    font-weight: 700;
    font-size: 0.9rem;
    background: #fff;
}

.step-link:disabled .step-number {
    border-color: #b7c2d3;
    color: #8a96a8;
}

.step-link.is-complete .step-number {
    background: var(--rr-primary-soft);
}

.step-link.is-complete .step-number::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.8rem;
}

.step-link.is-complete .step-number {
    font-size: 0;
}

.step-link.is-active {
    border-bottom-color: var(--rr-primary);
    color: var(--rr-primary);
    font-weight: 700;
}

.step-link.is-active .step-number {
    background: var(--rr-primary);
    border-color: var(--rr-primary);
    color: #fff;
    font-size: 0.9rem;
}

.step-link.is-active .step-number::before {
    content: none;
}

.wizard-mobile-caption {
    display: none;
}

/* ---------- Step card ---------- */

.step-card {
    max-width: 860px;
    border: 1px solid var(--rr-border);
    border-radius: var(--rr-radius);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
    background: #fff;
}

.step-card > .card-body {
    padding: 1.75rem 2rem 1.25rem;
}

.step-heading {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.step-icon {
    font-size: 2rem;
    color: var(--rr-primary);
    width: 2.25rem;
    text-align: center;
}

.step-heading h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--rr-navy);
    margin: 0;
}

.step-heading h2:focus {
    outline: none;
}

.step-intro {
    color: var(--rr-primary);
    font-style: italic;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.wizard-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem 1.25rem;
    background: #fff;
    border-top: 1px solid var(--rr-border);
    border-radius: 0 0 var(--rr-radius) var(--rr-radius);
}

.wizard-nav .btn {
    min-width: 96px;
}

.checkbox-columns {
    columns: 2;
    column-gap: 2rem;
}

.checkbox-columns .form-check {
    break-inside: avoid;
    margin-bottom: 0.35rem;
}

.member-number {
    max-width: 280px;
}

.char-count {
    white-space: nowrap;
    padding-left: 1rem;
}

.char-count.is-near-limit {
    color: #b54708;
}

/* ---------- Callouts & panels ---------- */

.callout {
    display: flex;
    gap: 0.85rem;
    border-radius: var(--rr-radius);
    padding: 0.9rem 1rem;
    font-size: 0.8125rem;
}

.callout p:last-child {
    margin-bottom: 0;
}

.callout-icon {
    font-size: 1.25rem;
    line-height: 1.2;
    flex: 0 0 auto;
}

.callout-info {
    background: var(--rr-info-bg);
    border: 1px solid var(--rr-info-border);
    color: var(--rr-navy);
}

.callout-info .callout-icon {
    color: var(--rr-primary);
}

.callout-highlight {
    background: var(--rr-highlight-bg);
    border: 1px solid var(--rr-highlight-border);
    font-size: 0.9375rem;
    padding: 1.1rem 1.25rem;
}

.callout-highlight .callout-icon {
    color: var(--rr-highlight-icon);
    font-size: 1.6rem;
}

.callout-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rr-navy);
    margin-bottom: 0.25rem;
}

.agreement-panel {
    border: 1px solid var(--rr-info-border);
    background: #f7faff;
    border-radius: var(--rr-radius);
    padding: 1.1rem 1.25rem;
}

.security-panel {
    border: 1px solid var(--rr-border);
    background: #f9fafc;
    border-radius: var(--rr-radius);
    padding: 1.1rem 1.25rem;
}

.panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rr-navy);
    margin-bottom: 0.35rem;
}

.btn-agreement {
    background: #fff;
    font-weight: 500;
}

/* Participation Agreement text (_ParticipationAgreement.cshtml) - underlined headings like PIMS */
#agreement-modal .modal-body {
    font-size: 0.9375rem;
}

.agreement-section {
    font-size: inherit;
    font-weight: 600;
    text-decoration: underline;
    margin: 1.25rem 0 0.5rem;
}

.agreement-notice {
    padding-left: 1.5rem;
}

.agreement-notice address {
    padding-left: 1.5rem;
}

/* Filled in from Step 1 (company name and address) */
.agreement-fill {
    text-decoration: underline;
    font-weight: 600;
}

.legal-links a {
    margin: 0 0.35rem;
}

.legal-links a:first-child {
    margin-left: 0;
}

.recaptcha-placeholder {
    border: 1px dashed #b7c2d3;
    border-radius: 6px;
    background: #fff;
    padding: 0.85rem 1rem;
    color: var(--rr-muted);
    font-size: 0.8125rem;
}

/* ---------- Social media ---------- */

.social-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.social-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--rr-muted);
}

.social-instagram { color: #d6246e; }
.social-facebook { color: #1877f2; }
.social-youtube { color: #ff0000; }
.social-linkedin { color: #0a66c2; }
.social-tiktok { color: #111; }

.social-platform-col {
    flex: 0 0 170px;
}

.social-remove {
    padding: 0.4rem 0.5rem;
}

/* ---------- Result panels & draft banner ---------- */

.result-panel {
    margin-top: 1rem;
}

.result-panel .card-body {
    padding: 2.5rem 2rem;
}

.result-panel h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--rr-navy);
}

.result-panel:focus {
    outline: none;
}

.result-icon {
    font-size: 2.75rem;
    color: var(--rr-primary);
    margin-bottom: 1rem;
}

.draft-banner {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- What happens next ---------- */

.next-steps {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: #f1f5f4;
    border: 1px solid var(--rr-border);
    border-radius: var(--rr-radius);
}

.next-steps-intro {
    display: flex;
    gap: 1rem;
    flex: 0 0 38%;
    padding-right: 2rem;
    border-right: 1px solid var(--rr-border);
}

.next-steps-shield {
    font-size: 2rem;
    color: var(--rr-success);
}

.next-steps h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rr-success);
    margin-bottom: 0.35rem;
}

.next-steps p {
    font-size: 0.8125rem;
    margin: 0;
}

.next-steps h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--rr-navy);
    margin-bottom: 0.9rem;
}

.next-steps-onboarding {
    flex: 1 1 auto;
}

.onboarding-items {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.onboarding-items li {
    display: flex;
    gap: 0.6rem;
    font-size: 0.8125rem;
}

.onboarding-items i {
    font-size: 1.35rem;
    color: var(--rr-navy);
    width: 1.5rem;
    text-align: center;
    padding-top: 0.1rem;
}

.onboarding-items strong {
    display: block;
    color: var(--rr-navy);
}

.onboarding-items span {
    color: var(--rr-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
    .next-steps {
        flex-direction: column;
        gap: 1.25rem;
    }

    .next-steps-intro {
        border-right: 0;
        padding-right: 0;
    }
}

@media (max-width: 991.98px) {
    .step-link .step-label {
        display: none;
    }

    .wizard-mobile-caption {
        display: block;
        text-align: center;
        font-weight: 600;
        color: var(--rr-navy);
        margin: -0.75rem 0 1rem;
    }

    .onboarding-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .site-logo {
        height: 44px;
    }

    .site-title h1 {
        font-size: 1.4rem;
    }

    .site-title p {
        font-size: 0.95rem;
    }

    .step-card > .card-body {
        padding: 1.25rem 1rem 1rem;
    }

    .wizard-nav {
        padding: 1rem;
    }

    .wizard-nav .btn {
        min-width: 0;
        flex: 1 1 auto;
    }

    .checkbox-columns {
        columns: 1;
    }

    .social-row-custom {
        flex-wrap: wrap;
    }

    .social-platform-col {
        flex: 1 1 calc(100% - 100px);
    }

    .onboarding-items {
        grid-template-columns: minmax(0, 1fr);
    }
}
