/* Rider join — recruitment page */

.rider-join-page {
    --rj-ember: #ff6a3d;
    --rj-ember-deep: #e85a2f;
    --rj-ink: #14161b;
    --rj-steel: #5d6573;
    --rj-line: #eadfd6;
    --rj-paper: #fff8f3;
    --rj-white: #ffffff;
    --rj-asphalt: #101114;
    overflow-x: clip;
}

.rj-page {
    background: var(--rj-white);
    color: var(--rj-ink);
}

.rj-page a:focus-visible,
.rj-page button:focus-visible,
.rj-page input:focus-visible,
.rj-page select:focus-visible,
.rj-page textarea:focus-visible {
    outline: 2px solid var(--rj-ember);
    outline-offset: 3px;
}

/* ——— Video banner ——— */

.rj-banner {
    position: relative;
    min-height: clamp(420px, 68vh, 720px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--rj-asphalt);
    color: #fff;
    isolation: isolate;
}

.rj-banner-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #111;
    pointer-events: none;
}

.rj-banner-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(16, 17, 20, 0.55) 0%, rgba(16, 17, 20, 0.22) 48%, rgba(16, 17, 20, 0.08) 100%),
        linear-gradient(180deg, rgba(16, 17, 20, 0.12) 0%, transparent 38%, rgba(16, 17, 20, 0.58) 100%);
    pointer-events: none;
}

.rj-banner-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 0 clamp(88px, 12vw, 132px);
}

.rj-banner-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: #ffb89a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.rj-banner-kicker i {
    color: var(--rj-ember);
}

.rj-banner h1 {
    margin: 0 0 16px;
    max-width: 14ch;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(2.4rem, 6.4vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.98;
    text-wrap: balance;
}

.rj-banner h1 span {
    color: var(--rj-ember);
}

.rj-banner-lead {
    margin: 0 0 28px;
    max-width: 42ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(15px, 2vw, 17px);
    font-weight: 500;
    line-height: 1.65;
}

.rj-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.rj-btn:hover {
    transform: translateY(-1px);
    color: inherit;
}

.rj-btn-primary {
    background: var(--rj-ember);
    color: #fff;
    box-shadow: 0 12px 28px rgba(255, 106, 61, 0.32);
}

.rj-btn-primary:hover {
    background: var(--rj-ember-deep);
    color: #fff;
}

.rj-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.rj-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.rj-btn-light {
    background: #fff8f3;
    color: var(--rj-ink);
    border: 1px solid var(--rj-line);
}

.rj-btn-light:hover {
    background: #fff;
    color: var(--rj-ink);
}

.rj-btn-block {
    width: 100%;
}

/* ——— Dispatch strip over banner ——— */

.rj-dispatch {
    position: relative;
    z-index: 3;
    margin-top: -64px;
    margin-bottom: 8px;
}

.rj-dispatch-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.rj-dispatch-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 18px 16px;
    border: 1px solid var(--rj-line);
    border-radius: 18px;
    background: var(--rj-white);
    box-shadow: 0 18px 40px rgba(16, 17, 20, 0.1);
}

.rj-dispatch-card i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fff1ea;
    color: var(--rj-ember);
    font-size: 15px;
}

.rj-dispatch-card strong {
    display: block;
    margin-bottom: 2px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.rj-dispatch-card span {
    color: var(--rj-steel);
    font-size: 12.5px;
    line-height: 1.45;
}

/* ——— Shared section chrome ——— */

.rj-section {
    padding: clamp(56px, 8vw, 88px) 0;
}

.rj-section-soft {
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(255, 106, 61, 0.08), transparent 55%),
        var(--rj-paper);
}

.rj-section-head {
    max-width: 620px;
    margin-bottom: clamp(28px, 4vw, 40px);
}

.rj-kicker {
    display: inline-block;
    margin: 0 0 10px;
    color: var(--rj-ember);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.rj-section-head h2,
.rj-form-intro h2 {
    margin: 0 0 10px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.rj-section-head p,
.rj-form-intro p {
    margin: 0;
    color: var(--rj-steel);
    font-size: 15px;
    line-height: 1.7;
}

/* ——— Why ride ——— */

.rj-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rj-why-card {
    padding: 26px 24px 24px;
    border: 1px solid var(--rj-line);
    border-radius: 20px;
    background: var(--rj-white);
}

.rj-why-card i {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #fff1ea;
    color: var(--rj-ember);
    font-size: 18px;
}

.rj-why-card h3 {
    margin: 0 0 8px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.rj-why-card p {
    margin: 0;
    color: var(--rj-steel);
    font-size: 14px;
    line-height: 1.65;
}

/* ——— How it works ——— */

.rj-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    counter-reset: rj-step;
}

.rj-step {
    position: relative;
    padding: 8px 28px 8px 0;
    counter-increment: rj-step;
}

.rj-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 23px;
    left: 52px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, var(--rj-line), transparent);
}

.rj-step-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--rj-ink);
    color: #fff;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.rj-step-mark::before {
    content: counter(rj-step);
}

.rj-step h3 {
    margin: 0 0 8px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.rj-step p {
    margin: 0;
    max-width: 32ch;
    color: var(--rj-steel);
    font-size: 14px;
    line-height: 1.65;
}

/* ——— Need + form ——— */

.rj-apply {
    scroll-margin-top: 110px;
}

.rj-apply-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.rj-need-list {
    display: grid;
    gap: 12px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.rj-need-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--rj-line);
    border-radius: 16px;
    background: var(--rj-white);
}

.rj-need-list i {
    margin-top: 2px;
    color: var(--rj-ember);
}

.rj-need-list strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.rj-need-list span {
    color: var(--rj-steel);
    font-size: 13px;
    line-height: 1.5;
}

.rj-need-note {
    margin: 0;
    color: var(--rj-steel);
    font-size: 13.5px;
    line-height: 1.6;
}

.rj-need-note a {
    color: var(--rj-ember);
    font-weight: 700;
}

.rj-form-card {
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--rj-line);
    border-radius: 24px;
    background: var(--rj-white);
    box-shadow: 0 22px 50px rgba(16, 17, 20, 0.07);
}

.rj-form-intro {
    margin-bottom: 22px;
}

.rj-form-intro h2 {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.rj-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
}

.rj-alert-error {
    background: #fff1ee;
    color: #9d3a32;
}

.rj-form {
    display: grid;
    gap: 22px;
}

.rj-form-block h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.rj-form-block h3 span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #fff1ea;
    color: var(--rj-ember);
    font-size: 11px;
}

.rj-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.rj-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rj-field-full {
    grid-column: 1 / -1;
}

.rj-field label,
.rj-form .form-label {
    margin-bottom: 6px;
    color: var(--rj-ink);
    font-size: 12.5px;
    font-weight: 700;
}

.rj-req {
    color: var(--rj-ember);
}

.rj-control {
    position: relative;
}

.rj-control > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b93a0;
    font-size: 13px;
    pointer-events: none;
}

.rj-control--area > i {
    top: 16px;
    transform: none;
}

.rj-input,
.rj-form .form-select,
.rj-form input[type="file"] {
    width: 100%;
    min-height: 50px;
    padding: 0 14px 0 40px;
    border: 1px solid #e4d9d0;
    border-radius: 12px;
    background: #fffaf7;
    color: var(--rj-ink);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rj-field > .rj-input,
.rj-field > select {
    padding-left: 14px;
    padding-right: 14px;
}

.rj-field > select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23FF6A3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.rj-field textarea.rj-input {
    min-height: 88px;
    padding: 14px 14px 14px 40px;
    resize: vertical;
}

.rj-input::placeholder {
    color: #a8b0bc;
    font-weight: 500;
}

.rj-input:focus,
.rj-form .form-select:focus {
    border-color: var(--rj-ember);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.14);
}

.rj-field.is-invalid .rj-input,
.rj-field.is-invalid .form-select,
.rj-field.is-invalid input[type="file"] {
    border-color: #c4584c;
    background: #fff7f6;
}

.rj-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: #b4483f;
    font-size: 12px;
    font-weight: 700;
}

.rj-hint {
    display: block;
    margin-top: 6px;
    color: var(--rj-steel);
    font-size: 12px;
}

.rj-file {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 8px 12px 8px 40px;
    border: 1px dashed #dccfc5;
    border-radius: 12px;
    background: #fffaf7;
}

.rj-file input[type="file"] {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
}

.rj-pw {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--rj-steel);
    cursor: pointer;
}

.rj-pw:hover {
    background: #fff1ea;
    color: var(--rj-ember);
}

.rj-input[data-pw] {
    padding-right: 46px;
}

.rj-form-foot {
    display: grid;
    gap: 14px;
}

.rj-consent {
    margin: 0;
    color: var(--rj-steel);
    font-size: 12.5px;
    line-height: 1.55;
}

.rj-signin {
    margin: 16px 0 0;
    color: var(--rj-steel);
    font-size: 13.5px;
}

.rj-signin a {
    color: var(--rj-ember);
    font-weight: 700;
}

/* ——— Success ——— */

.rj-success {
    text-align: left;
}

.rj-success-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: #fff1ea;
    color: var(--rj-ember);
    font-size: 22px;
}

.rj-success h2 {
    margin: 0 0 8px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
}

.rj-success > p {
    margin: 0 0 22px;
    color: var(--rj-steel);
    line-height: 1.65;
}

.rj-success-steps {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

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

.rj-success-steps span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--rj-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.rj-success-steps small {
    display: block;
    color: var(--rj-steel);
    font-size: 12.5px;
}

.rj-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ——— Responsive ——— */

@media (max-width: 991.98px) {
    .rj-banner {
        min-height: clamp(380px, 62vh, 560px);
        align-items: flex-end;
    }

    .rj-banner-copy {
        padding-bottom: 96px;
    }

    .rj-banner h1 {
        max-width: 12ch;
    }

    .rj-dispatch {
        margin-top: -48px;
    }

    .rj-dispatch-grid,
    .rj-why-grid,
    .rj-steps,
    .rj-apply-layout {
        grid-template-columns: 1fr 1fr;
    }

    .rj-step:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 420px;
    }

    .rj-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .rj-banner {
        min-height: 420px;
    }

    .rj-banner-copy {
        padding-bottom: 72px;
    }

    .rj-banner h1 {
        max-width: none;
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .rj-banner-actions {
        width: 100%;
    }

    .rj-banner-actions .rj-btn {
        flex: 1 1 160px;
    }

    .rj-dispatch-grid,
    .rj-why-grid,
    .rj-steps,
    .rj-apply-layout,
    .rj-fields {
        grid-template-columns: 1fr;
    }

    .rj-step:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }

    .rj-section {
        padding: 44px 0;
    }

    .rj-form-card {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .rj-btn-block {
        min-height: 50px;
    }
}

@media (max-width: 575.98px) {
    .rj-banner {
        min-height: 380px;
    }

    .rj-dispatch-card {
        padding: 14px;
    }

    .rj-why-card,
    .rj-need-list li {
        padding: 16px;
    }

    .rj-input,
    .rj-form .form-select {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rj-btn,
    .rj-input {
        transition: none;
    }
}
