/*
 * Investor steps (identity verification, document signing, our thank-you / pay-page notes): one look that follows the
 * Elementor kit (Site Settings > Global Colors / Global Fonts) and falls back to the prototype's look (white card,
 * #FF8800 pill buttons) when the kit sets nothing. Buttons and links use the kit's Accent color, headings its Primary,
 * like the site's own buttons (live kit 2026-11-03: Accent #467FF7 blue, Primary #1C244B navy, Poppins, pill buttons).
 * Loaded only where a step renders (class-steps-look.php, W48).
 * Brand colors belong here, never in PHP.
 */

.revolve-step {
    --revolve-step-accent: var(--e-global-color-accent, #FF8800);
    --revolve-step-on-accent: #ffffff;
    --revolve-step-text: var(--e-global-color-text, inherit);
    --revolve-step-muted-bg: #f7f7f7;
    --revolve-step-warning: #b32d2e;
    color: var(--revolve-step-text);
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-weight: var(--e-global-typography-text-font-weight, inherit);
    font-size: 16px;
    line-height: 1.5;
}

/* The card (same shape as the prototype's .revolve-kyc-box / .revolve-docs-box). */
.revolve-step-card {
    box-sizing: border-box;
    max-width: 760px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.revolve-step h3 {
    margin: 0 0 10px;
    font-family: var(--e-global-typography-primary-font-family, inherit);
    font-weight: var(--e-global-typography-primary-font-weight, 600);
    font-size: 24px;
    line-height: 1.25;
    color: var(--e-global-color-primary, inherit);
}

.revolve-step p,
.revolve-step ul {
    margin: 0 0 22px;
    font-size: 15px;
}

.revolve-step a:not(.revolve-step-button) {
    color: var(--revolve-step-accent);
}

.revolve-step-form {
    margin: 0 0 12px;
}

/*
 * Buttons: full-width pills. Real <button>s (and links with .elementor-button) so the kit's Typography applies.
 * ":is(button, a)" adds specificity (0,2,1): the theme styles buttons inside Elementor shortcode widgets with
 * ":is(.elementor-element .elementor-shortcode) :where(button, ...)" (0,2,0), which must not win by load order.
 */
.revolve-step :is(button, a).revolve-step-button {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 14px 22px;
    border: 2px solid var(--revolve-step-accent);
    border-radius: 999px;
    background: var(--revolve-step-accent);
    color: var(--revolve-step-on-accent);
    font-family: var(--e-global-typography-accent-font-family, inherit);
    font-size: 15px;
    font-weight: var(--e-global-typography-accent-font-weight, 600);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.revolve-step :is(button, a).revolve-step-button:hover,
.revolve-step :is(button, a).revolve-step-button:focus {
    background: var(--revolve-step-accent);
    color: var(--revolve-step-on-accent);
    filter: brightness(0.92);
}

.revolve-step :is(button, a).revolve-step-button:focus-visible {
    outline: 3px solid var(--revolve-step-accent);
    outline-offset: 3px;
}

.revolve-step :is(button, a).revolve-step-button.revolve-step-button-secondary,
.revolve-step :is(button, a).revolve-step-button.revolve-step-button-secondary:hover,
.revolve-step :is(button, a).revolve-step-button.revolve-step-button-secondary:focus {
    background: transparent;
    color: var(--revolve-step-accent);
}

/* Messages after an action ("We just checked your status ..."). */
.revolve-step-notice {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--revolve-step-muted-bg);
    font-size: 14px;
}

/* The mock's signing screen: must never look like a real agreement. */
.revolve-step-test {
    margin: 0 0 22px;
    padding: 16px;
    border: 3px dashed var(--revolve-step-warning);
    border-radius: 12px;
}

/* Our sentences inside WooCommerce's thank-you / pay-page notices. */
.revolve-step-note a {
    color: var(--revolve-step-accent, var(--e-global-color-accent, #FF8800));
    font-weight: 600;
}

/*
 * Onboarding progress list ([revolve_onboarding_steps], W78): numbered circles in a narrow side column; done steps get
 * a check mark, the current one the Accent color and its one-line hint.
 */
ol.revolve-onboarding-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: revolve-onboarding;
}

.revolve-onboarding-steps .revolve-onboarding-step {
    position: relative;
    margin: 0 0 18px;
    padding-left: 40px;
    min-height: 28px;
    counter-increment: revolve-onboarding;
}

.revolve-onboarding-steps .revolve-onboarding-step::before {
    content: counter(revolve-onboarding);
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    opacity: 0.6;
}

.revolve-onboarding-steps .revolve-onboarding-step.is-done::before {
    content: "\2713";
    border-color: var(--revolve-step-accent);
    background: var(--revolve-step-accent);
    color: var(--revolve-step-on-accent);
    opacity: 1;
}

.revolve-onboarding-steps .revolve-onboarding-step.is-current::before {
    border-color: var(--revolve-step-accent);
    color: var(--revolve-step-accent);
    opacity: 1;
}

.revolve-onboarding-step-label {
    display: block;
    padding-top: 2px;
    font-family: var(--e-global-typography-primary-font-family, inherit);
    font-weight: var(--e-global-typography-primary-font-weight, 600);
    color: var(--e-global-color-primary, inherit);
}

.revolve-onboarding-step:not(.is-current) .revolve-onboarding-step-label {
    font-weight: 400;
}

.revolve-onboarding-step-hint {
    display: block;
    margin-top: 4px;
    font-size: 14px;
}

/* Accreditation InvestReady is still reviewing (W79): the investor moves on meanwhile. */
.revolve-onboarding-step-status {
    display: inline-block;
    margin-top: 4px;
    padding: 0 8px;
    border-radius: 10px;
    background: var(--revolve-step-muted-bg);
    font-size: 13px;
}

/* "Preview: identity verification": a launch-flow step opened by a pre-launch investor (W79). */
.revolve-onboarding-preview {
    margin: 0;
    padding: 8px 12px;
    border-left: 3px solid var(--revolve-step-accent);
    background: var(--revolve-step-muted-bg);
    font-weight: 600;
}

.revolve-onboarding-steps .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* "Questions? Book a call with our team." under a step. */
.revolve-step p.revolve-book-call {
    margin: 22px 0 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .revolve-step-card {
        padding: 24px;
    }

    .revolve-step h3 {
        font-size: 21px;
    }
}

/* InvestReady form timeout (investready.js): the warning dialog and the "closed" notice. */
.revolve-step dialog.revolve-ir-timeout {
    box-sizing: border-box;
    width: min(480px, calc(100vw - 32px));
    padding: 28px;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    color: var(--revolve-step-text);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.revolve-step dialog.revolve-ir-timeout::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.revolve-step dialog.revolve-ir-timeout p:last-child {
    margin-bottom: 0;
}

.revolve-step .revolve-ir-closed[hidden],
.revolve-step .revolve-ir-fallback[hidden] {
    display: none;
}

@media (max-width: 480px) {
    .revolve-step-card {
        padding: 20px;
        border-radius: 14px;
    }

    .revolve-step h3 {
        font-size: 19px;
    }

    .revolve-step p,
    .revolve-step-notice {
        font-size: 14px;
    }
}
