/* Joining Form — scoped to this page only (jnf- prefix).
   Same warm palette as member login (mbr-) so signup and sign-in feel like one flow. */

.jnf-page {
    --jnf-bg: #fff8f3;
    --jnf-surface: #ffffff;
    --jnf-text: #1f1534;
    --jnf-muted: #7a7089;
    --jnf-border: #ece4f2;
    --jnf-soft: #faf6fd;
    --jnf-primary: #ff5e62;
    --jnf-primary-2: #ff9966;
    --jnf-purple: #6a3df0;
    --jnf-danger: #e0344d;
    --jnf-success: #1f9d62;

    position: relative;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    color: var(--jnf-text);
    background: var(--jnf-bg);
    overflow-x: hidden;
}

.jnf-page * {
    box-sizing: border-box;
}

.jnf-page a {
    color: inherit;
    text-decoration: none;
}

/* Background blobs */
.jnf-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .45;
    pointer-events: none;
    z-index: 0;
}

.jnf-blob-1 {
    width: 380px;
    height: 380px;
    top: -120px;
    left: -100px;
    background: #ffc3a0;
}

.jnf-blob-2 {
    width: 340px;
    height: 340px;
    bottom: -140px;
    right: -80px;
    background: #ffd6e0;
}

/* ---------- Top bar ---------- */
.jnf-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 32px;
}

.jnf-logo img {
    display: block;
    height: 44px;
    width: auto;
}

.jnf-top-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jnf-top-text {
    font-size: 14px;
    color: var(--jnf-muted);
}

.jnf-top-btn,
.jnf-top-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    transition: background .2s, color .2s, border-color .2s;
}

.jnf-page .jnf-top-btn {
    color: var(--jnf-primary);
    background: rgba(255, 94, 98, .1);
}

.jnf-page .jnf-top-btn:hover {
    color: #fff;
    background: var(--jnf-primary);
}

.jnf-page .jnf-top-home {
    color: var(--jnf-text);
    background: var(--jnf-surface);
    border: 1.5px solid var(--jnf-border);
}

.jnf-page .jnf-top-home:hover {
    border-color: var(--jnf-text);
}

/* ---------- Layout ---------- */
.jnf-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 32px 40px;
}

/* ---------- Info side ---------- */
.jnf-info {
    position: sticky;
    top: 24px;
    padding-top: 12px;
}

.jnf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    color: var(--jnf-primary);
    background: rgba(255, 94, 98, .1);
}

.jnf-info h1 {
    margin: 16px 0 10px;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.8px;
    line-height: 1.12;
}

.jnf-info h1 span {
    background: linear-gradient(90deg, var(--jnf-primary), var(--jnf-primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.jnf-sub {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--jnf-muted);
}

.jnf-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.jnf-steps li {
    position: relative;
    display: flex;
    gap: 14px;
    padding-bottom: 22px;
}

.jnf-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 38px;
    bottom: 4px;
    width: 2px;
    background: var(--jnf-border);
}

.jnf-steps b {
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 14px;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--jnf-primary), var(--jnf-primary-2));
    box-shadow: 0 6px 14px rgba(255, 94, 98, .25);
}

.jnf-steps strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-top: 2px;
}

.jnf-steps small {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--jnf-muted);
}

.jnf-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.jnf-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--jnf-muted);
    background: var(--jnf-surface);
    border: 1px solid var(--jnf-border);
    border-radius: 999px;
}

/* ---------- Form card ---------- */
.jnf-card {
    padding: 8px 36px 32px;
    background: var(--jnf-surface);
    border: 1px solid var(--jnf-border);
    border-radius: 24px;
    box-shadow: 0 24px 60px -24px rgba(31, 21, 52, .18);
}

.jnf-summary {
    margin-top: 24px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--jnf-danger);
    background: rgba(224, 52, 77, .07);
    border: 1px solid rgba(224, 52, 77, .25);
    border-radius: 12px;
}

.jnf-summary.validation-summary-valid {
    display: none;
}

.jnf-summary ul {
    margin: 0;
    padding-left: 18px;
}

.jnf-section {
    padding: 26px 0;
    border-bottom: 1px dashed var(--jnf-border);
}

.jnf-sec-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.2px;
}

.jnf-sec-title b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 13px;
    color: var(--jnf-primary);
    background: rgba(255, 94, 98, .1);
    border-radius: 9px;
}

.jnf-sec-title em {
    margin-left: 4px;
    padding: 3px 9px;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--jnf-muted);
    background: var(--jnf-soft);
    border-radius: 999px;
}

.jnf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.jnf-span-2 {
    grid-column: 1 / -1;
}

.jnf-group > label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--jnf-text);
}

.jnf-req {
    color: var(--jnf-primary);
}

/* Inputs */
.jnf-input {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.jnf-input input,
.jnf-input select {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--jnf-text);
    background: var(--jnf-surface);
    border: 1.5px solid var(--jnf-border);
    border-radius: 13px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none;
    appearance: none;
}

.jnf-input input::placeholder {
    color: #b3a9c2;
    font-weight: 400;
}

.jnf-input .jnf-ic ~ input,
.jnf-input input:has(~ .jnf-ic) {
    padding-left: 44px;
}

.jnf-input input:focus,
.jnf-input select:focus {
    border-color: var(--jnf-primary);
    box-shadow: 0 0 0 4px rgba(255, 94, 98, .12);
}

.jnf-input input.input-validation-error,
.jnf-input select.input-validation-error {
    border-color: var(--jnf-danger);
}

.jnf-ic {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #b3a9c2;
    pointer-events: none;
    transition: color .2s;
}

.jnf-input:focus-within .jnf-ic {
    color: var(--jnf-primary);
}

/* Auto-filled (readonly) name fields */
.jnf-input-auto input {
    background: var(--jnf-soft);
    cursor: default;
}

.jnf-input-auto input:focus {
    border-color: var(--jnf-border);
    box-shadow: none;
}

/* Lookup status tick / warning */
.jnf-status {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.jnf-status.is-ok {
    color: var(--jnf-success);
}

.jnf-status.is-bad {
    color: var(--jnf-danger);
}

.jnf-input input:has(~ .jnf-status) {
    padding-right: 40px;
}

/* Select with custom arrow */
.jnf-select::after {
    content: "\f107";
    font-family: FontAwesome;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--jnf-muted);
    pointer-events: none;
}

.jnf-select select {
    padding-right: 34px;
    cursor: pointer;
}

/* Title + first + last name on one row */
.jnf-name-row {
    display: flex;
    gap: 10px;
}

.jnf-name-row .jnf-title {
    flex: 0 0 104px;
}

/* +91 prefix */
.jnf-prefix {
    position: absolute;
    left: 1.5px;
    top: 1.5px;
    bottom: 1.5px;
    display: flex;
    align-items: center;
    padding: 0 12px 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--jnf-muted);
    background: var(--jnf-soft);
    border-right: 1.5px solid var(--jnf-border);
    border-radius: 11.5px 0 0 11.5px;
}

.jnf-has-prefix input {
    padding-left: 70px;
}

.jnf-upper {
    text-transform: uppercase;
}

.jnf-upper::placeholder {
    text-transform: none;
}

/* Password eye */
.jnf-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #b3a9c2;
    cursor: pointer;
}

.jnf-eye:hover {
    color: var(--jnf-text);
    background: var(--jnf-soft);
}

.jnf-input input:has(~ .jnf-eye) {
    padding-right: 48px;
}

/* Segmented radio (side / gender) */
.jnf-seg {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    padding: 4px;
    min-width: 320px;
    background: var(--jnf-soft);
    border: 1.5px solid var(--jnf-border);
    border-radius: 14px;
}

.jnf-seg input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.jnf-seg label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--jnf-muted);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background .2s, color .2s, box-shadow .2s;
}

.jnf-seg label:hover {
    color: var(--jnf-text);
}

.jnf-seg input:checked + label {
    color: #fff;
    background: linear-gradient(135deg, var(--jnf-primary), var(--jnf-primary-2));
    box-shadow: 0 6px 14px rgba(255, 94, 98, .28);
}

.jnf-seg input:focus-visible + label {
    outline: 2px solid var(--jnf-primary);
    outline-offset: 2px;
}

/* Errors & hints */
.jnf-error {
    display: block;
    margin-top: 6px;
    padding-left: 2px;
    font-size: 12.5px;
    color: var(--jnf-danger);
}

.jnf-error:empty,
.jnf-error.field-validation-valid {
    display: none;
}

.jnf-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--jnf-muted);
}

.jnf-hint i {
    margin-top: 2px;
}

/* Terms checkbox */
.jnf-terms {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    font-size: 14px;
    color: var(--jnf-text);
    cursor: pointer;
    user-select: none;
}

.jnf-terms input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.jnf-check {
    flex: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 12px;
    color: transparent;
    border: 1.5px solid #d6cce0;
    border-radius: 7px;
    background: var(--jnf-surface);
    transition: all .2s;
}

.jnf-terms input:checked + .jnf-check {
    color: #fff;
    border-color: var(--jnf-primary);
    background: var(--jnf-primary);
}

.jnf-terms input:focus-visible + .jnf-check {
    box-shadow: 0 0 0 4px rgba(255, 94, 98, .18);
}

.jnf-page .jnf-terms a {
    font-weight: 700;
    color: var(--jnf-primary);
}

.jnf-page .jnf-terms a:hover {
    text-decoration: underline;
}

/* Actions */
.jnf-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.jnf-cancel,
.jnf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 54px;
    padding: 0 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}

.jnf-page .jnf-cancel {
    color: var(--jnf-muted);
    background: var(--jnf-surface);
    border: 1.5px solid var(--jnf-border);
}

.jnf-page .jnf-cancel:hover {
    color: var(--jnf-text);
    border-color: var(--jnf-text);
}

.jnf-submit {
    min-width: 220px;
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--jnf-primary), var(--jnf-primary-2));
    box-shadow: 0 12px 26px -8px rgba(255, 94, 98, .55);
}

.jnf-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px -8px rgba(255, 94, 98, .6);
}

.jnf-submit:disabled {
    cursor: wait;
    opacity: .85;
    transform: none;
}

.jnf-btn-loading {
    display: none;
}

.jnf-submit.is-loading .jnf-btn-label {
    display: none;
}

.jnf-submit.is-loading .jnf-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.jnf-foot {
    position: relative;
    z-index: 1;
    padding: 0 16px 28px;
    text-align: center;
    font-size: 13px;
    color: var(--jnf-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .jnf-wrap {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .jnf-info {
        position: static;
        padding-top: 0;
    }

    .jnf-info h1 {
        font-size: 30px;
    }

    .jnf-sub {
        margin-bottom: 20px;
    }

    /* Steps ko horizontal chips bana do, vertical list tablet par lambi lagti hai */
    .jnf-steps {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .jnf-steps li {
        padding: 12px;
        gap: 10px;
        align-items: center;
        background: var(--jnf-surface);
        border: 1px solid var(--jnf-border);
        border-radius: 14px;
    }

    .jnf-steps li::before {
        display: none;
    }

    .jnf-steps b {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 13px;
        border-radius: 10px;
        box-shadow: none;
    }

    .jnf-steps strong {
        margin: 0;
        font-size: 13px;
        line-height: 1.3;
    }

    .jnf-steps small,
    .jnf-trust {
        display: none;
    }
}

@media (max-width: 767px) {
    .jnf-top {
        padding: 16px;
    }

    .jnf-logo img {
        height: 36px;
    }

    .jnf-top-text,
    .jnf-top-home span {
        display: none;
    }

    .jnf-top-home {
        width: 40px;
        padding: 0;
        justify-content: center;
    }

    .jnf-wrap {
        padding: 4px 16px 28px;
    }

    .jnf-info h1 {
        font-size: 26px;
    }

    .jnf-info h1 br {
        display: none;
    }

    .jnf-steps {
        display: none;
    }

    .jnf-card {
        padding: 4px 18px 22px;
        border-radius: 20px;
    }

    .jnf-section {
        padding: 22px 0;
    }

    .jnf-sec-title {
        font-size: 16px;
    }

    .jnf-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .jnf-name-row {
        flex-wrap: wrap;
    }

    .jnf-name-row .jnf-title {
        flex: 0 0 96px;
    }

    .jnf-name-row .jnf-input:last-child {
        flex: 1 1 100%;
    }

    .jnf-seg {
        display: grid;
        min-width: 0;
        width: 100%;
    }

    .jnf-seg label {
        padding: 0 8px;
    }

    /* 16px font taaki iOS input focus par zoom na kare */
    .jnf-input input,
    .jnf-input select {
        font-size: 16px;
    }

    .jnf-terms {
        margin: 20px 0;
    }

    .jnf-actions {
        flex-direction: column-reverse;
    }

    .jnf-cancel,
    .jnf-submit {
        width: 100%;
        min-width: 0;
    }
}
