/* ================================================================
   RBM Trading LLC — Customer Registration Page
   Matches: rbmtradingco.com brand (Navy #0D2461 + Orange #E8441A)
   File: /wp-content/themes/YOUR-THEME/rbm-register/register.css
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800&display=swap');

/* ---------- Brand Tokens ---------- */
:root {
    --rbm-navy:        #0D2461;
    --rbm-navy-dk:     #091a47;
    --rbm-navy-lt:     #162e7a;
    --rbm-orange:      #E8441A;
    --rbm-orange-dk:   #c73512;
    --rbm-orange-lt:   #fff2ee;
    --rbm-white:       #ffffff;
    --rbm-bg:          #f4f6f9;
    --rbm-card-bg:     #ffffff;
    --rbm-border:      #dce3ec;
    --rbm-text:        #0D2461;
    --rbm-text-body:   #3d4f6b;
    --rbm-text-muted:  #7a8fac;
    --rbm-success:     #1e7e4a;
    --rbm-success-bg:  #edf7f2;
    --rbm-error:       #c0392b;
    --rbm-font:        'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --rbm-radius:      10px;
    --rbm-radius-lg:   16px;
    --rbm-shadow:      0 2px 20px rgba(13,36,97,0.10);
    --rbm-shadow-lg:   0 8px 40px rgba(13,36,97,0.14);
    --rbm-transition:  0.2s ease;
}

/* ---------- Page Reset ---------- */
#rbm-reg-page,
#rbm-reg-page * {
    box-sizing: border-box;
}

#rbm-reg-page {
    font-family: var(--rbm-font);
    color: var(--rbm-text-body);
    background: var(--rbm-bg);
}

#rbm-reg-page a { text-decoration: none; }

/* ================================================================
   HERO
   ================================================================ */
.rbm-hero {
    background: var(--rbm-navy);
    padding: 60px 48px 52px;
    position: relative;
    overflow: hidden;
}

/* Diagonal accent strip — mimics site's style */
.rbm-hero::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40%;
    background: var(--rbm-navy-lt);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.4;
    pointer-events: none;
}

/* Orange left border bar — exactly like site sections */
.rbm-hero::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--rbm-orange);
}

.rbm-hero__inner {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.rbm-hero__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rbm-orange);
    margin-bottom: 12px;
}

.rbm-hero__title {
    font-size: clamp(32px, 4.5vw, 50px);
    font-weight: 800;
    color: var(--rbm-white);
    line-height: 1.15;
    margin-bottom: 14px;
}

.rbm-hero__sub {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    max-width: 520px;
    font-weight: 400;
}

/* ================================================================
   MAIN LAYOUT
   ================================================================ */
.rbm-main {
    display: flex;
    gap: 32px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 48px 32px 80px;
    align-items: flex-start;
}

.rbm-form-col {
    flex: 1;
    min-width: 0;
}

/* ================================================================
   PROGRESS BAR
   ================================================================ */
.rbm-progress {
    margin-bottom: 28px;
}

.rbm-progress__track {
    height: 4px;
    background: var(--rbm-border);
    border-radius: 100px;
    margin-bottom: 16px;
    overflow: hidden;
}

.rbm-progress__fill {
    height: 100%;
    background: var(--rbm-orange);
    border-radius: 100px;
    transition: width 0.4s ease;
}

.rbm-progress__steps {
    display: flex;
    justify-content: space-between;
}

.rbm-pstep {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.rbm-pstep__dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--rbm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--rbm-text-muted);
    transition: var(--rbm-transition);
}

.rbm-pstep__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--rbm-text-muted);
    text-align: center;
    transition: var(--rbm-transition);
    white-space: nowrap;
}

.rbm-pstep--active .rbm-pstep__dot {
    background: var(--rbm-orange);
    color: #fff;
}

.rbm-pstep--active .rbm-pstep__label {
    color: var(--rbm-navy);
    font-weight: 700;
}

.rbm-pstep--done .rbm-pstep__dot {
    background: var(--rbm-navy);
    color: #fff;
}

.rbm-pstep--done .rbm-pstep__label {
    color: var(--rbm-navy);
}

/* ================================================================
   CARD
   ================================================================ */
.rbm-card {
    background: var(--rbm-card-bg);
    border: 1px solid var(--rbm-border);
    border-radius: var(--rbm-radius-lg);
    padding: 36px 40px;
    box-shadow: var(--rbm-shadow);
    /* Left orange accent — matches site style */
    border-left: 4px solid var(--rbm-orange);
}

.rbm-card--success {
    border-left-color: var(--rbm-success);
    text-align: center;
}

.rbm-card__title {
    font-size: 22px;
    font-weight: 800;
    color: #374487 !important;
    margin-bottom: 4px;
}


.rbm-card__sub {
    font-size: 14px;
    color: var(--rbm-text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ================================================================
   FORM FIELDS
   ================================================================ */
.rbm-hidden { display: none !important; }

.rbm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.rbm-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rbm-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--rbm-navy);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.rbm-req { color: var(--rbm-orange); }

.rbm-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--rbm-border);
    border-radius: var(--rbm-radius);
    font-family: var(--rbm-font);
    font-size: 15px;
    font-weight: 500;
    color: var(--rbm-text);
    background: #fff;
    outline: none;
    transition: border-color var(--rbm-transition), box-shadow var(--rbm-transition);
    -webkit-appearance: none;
    appearance: none;
}

.rbm-input::placeholder { color: #aab4c5; font-weight: 400; }
.rbm-input:hover { border-color: #b0bdd4; }

.rbm-input:focus {
    border-color: var(--rbm-navy);
    box-shadow: 0 0 0 3px rgba(13,36,97,0.1);
}

.rbm-input--error {
    border-color: var(--rbm-error) !important;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.1) !important;
}

.rbm-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

.rbm-err {
    font-size: 12px;
    font-weight: 600;
    color: var(--rbm-error);
    min-height: 16px;
    display: block;
}

/* ================================================================
   SHIPPING METHOD CARDS
   ================================================================ */
.rbm-ship-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 10px;
}

.rbm-ship-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 18px 16px;
    border: 2px solid var(--rbm-border);
    border-radius: var(--rbm-radius);
    cursor: pointer;
    transition: border-color var(--rbm-transition), background var(--rbm-transition), box-shadow var(--rbm-transition);
    background: #fff;
}

.rbm-ship-card:hover {
    border-color: var(--rbm-navy);
}

.rbm-ship-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rbm-ship-card:has(.rbm-ship-radio:checked) {
    border-color: var(--rbm-orange);
    background: var(--rbm-orange-lt);
    box-shadow: 0 0 0 3px rgba(232,68,26,0.1);
}

.rbm-ship-card__body {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.rbm-ship-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rbm-ship-card__icon--air {
    background: rgba(13,36,97,0.08);
    color: var(--rbm-navy);
}

.rbm-ship-card:has(.rbm-ship-radio:checked) .rbm-ship-card__icon--air {
    background: rgba(232,68,26,0.12);
    color: var(--rbm-orange);
}

.rbm-ship-card__icon--ocean {
    background: rgba(13,36,97,0.08);
    color: var(--rbm-navy);
}

.rbm-ship-card:has(.rbm-ship-radio:checked) .rbm-ship-card__icon--ocean {
    background: rgba(232,68,26,0.12);
    color: var(--rbm-orange);
}

.rbm-ship-card__icon svg { width: 28px; height: 28px; }

.rbm-ship-card__text strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--rbm-navy);
    margin-bottom: 3px;
}

.rbm-ship-card__text p {
    font-size: 13px;
    color: var(--rbm-text-muted);
    margin-bottom: 8px;
    line-height: 1.5;
}

.rbm-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rbm-navy);
    background: rgba(13,36,97,0.08);
    padding: 3px 10px;
    border-radius: 100px;
}

.rbm-tag--ocean { color: #0b5fa5; background: rgba(11,95,165,0.1); }

.rbm-ship-card__check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--rbm-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity var(--rbm-transition), transform var(--rbm-transition);
}

.rbm-ship-card:has(.rbm-ship-radio:checked) .rbm-ship-card__check {
    opacity: 1;
    transform: scale(1);
}

/* ================================================================
   REVIEW TABLE
   ================================================================ */
.rbm-review {
    background: var(--rbm-bg);
    border: 1px solid var(--rbm-border);
    border-radius: var(--rbm-radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.rbm-review__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--rbm-border);
}

.rbm-review__row:last-child { border-bottom: none; }

.rbm-review__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rbm-text-muted);
    flex-shrink: 0;
    padding-top: 2px;
}

.rbm-review__val {
    font-size: 14px;
    font-weight: 600;
    color: var(--rbm-navy);
    text-align: right;
    word-break: break-word;
}

/* ================================================================
   TERMS
   ================================================================ */
.rbm-terms { margin-bottom: 24px; }

.rbm-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--rbm-text-body);
    line-height: 1.55;
}

.rbm-check {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: var(--rbm-orange);
    flex-shrink: 0;
    cursor: pointer;
}

.rbm-link {
    color: var(--rbm-orange);
    font-weight: 700;
}

.rbm-link:hover { text-decoration: underline; }

/* Global error box */
#rbm-global-err:not(:empty) {
    background: #fdf2f2;
    border: 1px solid #f5c6c6;
    color: var(--rbm-error);
    border-radius: var(--rbm-radius);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.rbm-btn-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.rbm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--rbm-radius);
    font-family: var(--rbm-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all var(--rbm-transition);
    white-space: nowrap;
    text-decoration: none;
    -webkit-appearance: none;
}

/* Orange primary — matches site's "CALL US NOW" and CTA buttons */
.rbm-btn--primary {
    background: var(--rbm-orange);
    color: #fff;
    flex: 1;
}

.rbm-btn--primary:hover {
    background: var(--rbm-orange-dk);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,68,26,0.35);
}

.rbm-btn--primary:active { transform: translateY(0); box-shadow: none; }

/* Navy button */
.rbm-btn--navy {
    background: var(--rbm-navy);
    color: #fff;
    flex: 1;
}

.rbm-btn--navy:hover {
    background: var(--rbm-navy-dk);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13,36,97,0.3);
}

/* Ghost button — matches site's outlined secondary buttons */
.rbm-btn--ghost {
    background: transparent;
    color: var(--rbm-navy);
    border: 2px solid var(--rbm-border);
    font-weight: 700;
    padding-left: 20px;
    padding-right: 20px;
}

.rbm-btn--ghost:hover {
    border-color: var(--rbm-navy);
    background: rgba(13,36,97,0.04);
}

.rbm-btn--full { width: 100%; flex: none; }

/* Submit spinner state */
.rbm-btn--submit .rbm-btn__spin { display: none; }

.rbm-btn--submit.is-loading .rbm-btn__text { display: none; }
.rbm-btn--submit.is-loading .rbm-btn__spin {
    display: block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rbm-spin 0.65s linear infinite;
}

@keyframes rbm-spin { to { transform: rotate(360deg); } }

/* ================================================================
   SUCCESS SCREEN
   ================================================================ */
.rbm-success__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--rbm-success-bg);
    color: var(--rbm-success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.rbm-success__icon svg { width: 38px; height: 38px; }

.rbm-success__title {
    font-size: 26px;
    font-weight: 800;
    color: var(--rbm-navy);
    margin-bottom: 12px;
}

.rbm-success__msg {
    font-size: 15px;
    color: var(--rbm-text-body);
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto 24px;
}

.rbm-success__divider {
    height: 1px;
    background: var(--rbm-border);
    margin: 0 0 24px;
}

.rbm-success__app-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rbm-text-muted);
    margin-bottom: 14px;
}

.rbm-app-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.rbm-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--rbm-navy);
    color: #fff;
    border-radius: var(--rbm-radius);
    font-family: var(--rbm-font);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--rbm-transition);
}

.rbm-app-btn:hover {
    background: var(--rbm-navy-dk);
    transform: translateY(-1px);
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.rbm-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rbm-sidebar__card {
    background: var(--rbm-card-bg);
    border: 1px solid var(--rbm-border);
    border-radius: var(--rbm-radius-lg);
    padding: 28px 24px;
    box-shadow: var(--rbm-shadow);
}

.rbm-sidebar__card--navy {
    background: var(--rbm-navy);
    border-color: var(--rbm-navy-dk);
}

.rbm-sidebar__heading {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rbm-white);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--rbm-orange);
    display: inline-block;
}

.rbm-sidebar__heading--orange {
    color: var(--rbm-navy);
    border-bottom-color: var(--rbm-orange);
}

/* Features list */
.rbm-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rbm-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

.rbm-feature-list li strong { color: #fff; }

.rbm-feature-list__icon {
    color: var(--rbm-orange);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Steps list */
.rbm-steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rbm-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rbm-steps-list__num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--rbm-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.rbm-steps-list strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--rbm-navy);
    margin-bottom: 3px;
}

.rbm-steps-list p {
    font-size: 13px;
    color: var(--rbm-text-muted);
    line-height: 1.5;
}

/* Contact block */
.rbm-sidebar__contact {
    background: var(--rbm-orange-lt);
    border: 1px solid rgba(232,68,26,0.2);
    border-radius: var(--rbm-radius-lg);
    padding: 20px;
    text-align: center;
}

.rbm-sidebar__contact-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rbm-text-muted);
    margin-bottom: 10px;
}

.rbm-sidebar__contact-link {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--rbm-orange);
    text-decoration: none;
    margin-bottom: 6px;
    word-break: break-all;
}

.rbm-sidebar__contact-link:hover { text-decoration: underline; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 980px) {
    .rbm-main {
        flex-direction: column;
        padding: 32px 20px 60px;
    }

    .rbm-sidebar {
        width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .rbm-sidebar__card,
    .rbm-sidebar__contact { flex: 1; min-width: 240px; }
}

@media (max-width: 640px) {
    .rbm-hero { padding: 44px 20px 36px; }
    .rbm-card { padding: 24px 20px; }
    .rbm-field-row { grid-template-columns: 1fr; gap: 0; }
    .rbm-btn-row { flex-direction: column-reverse; }
    .rbm-btn--ghost { width: 100%; }
    .rbm-progress__steps .rbm-pstep__label { display: none; }
    .rbm-sidebar { flex-direction: column; }
}