/* =========================================================
   Nour Public Site — Join request
   ========================================================= */

/* Link to the proof page, under the header text */
.jn-why {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    background: none;
    border: 0;
    transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.jn-why:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 4px; }

.jn-why .bi:first-child { color: var(--primary); }

.jn-why-go { font-size: 1.35rem; transition: transform 0.25s var(--ease); }
.jn-why:hover .jn-why-go { transform: translateX(-4px); }

/* ---- Form groups: each block is numbered and boxed ---- */
#joinForm { counter-reset: jn-step; }

.jn-group {
    position: relative;
    padding: 1.75rem 1.75rem 0.5rem;
    margin-bottom: 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.jn-section-title {
    counter-increment: jn-step;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
    border-bottom: 1px solid var(--border-soft);
}

.jn-section-title::before {
    content: counter(jn-step);
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 0 0 5px var(--primary-soft);
}

.jn-section-title > .bi { color: var(--primary); }
.jn-section-title.green::before { background: #0E9F6E; box-shadow: 0 0 0 5px #E7F8F1; }
.jn-section-title.green > .bi { color: #0E9F6E; }

.jn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.25rem;
}

.jn-field { margin-bottom: 1.25rem; }

.jn-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.jn-label > .bi { color: var(--text-label); }
.jn-label .req, .jn-check .req { color: var(--danger); }

.jn-input {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.95rem;
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--text-main);
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.jn-input::placeholder { color: #98A2B3; }

.jn-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(36, 48, 143, 0.12);
}

.jn-hint {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    font-size: 0.83rem;
    color: var(--text-label);
}

/* Declaration + submit */
.jn-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.5rem 0 1.5rem;
    padding: 1rem 1.15rem;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.jn-check input {
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.jn-submit {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.jn-submit:hover:not(:disabled) {
    background: var(--primary-hover);
    box-shadow: 0 12px 24px -12px rgba(36, 48, 143, 0.6);
    transform: translateY(-1px);
}

.jn-submit:disabled { opacity: 0.7; cursor: wait; }

/* Messages */
.jn-alert {
    display: flex;
    gap: 0.65rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #B42318;
    background: #FEF3F2;
    border: 1px solid #FECDCA;
    border-radius: var(--radius);
}

.jn-alert ul { margin: 0; padding-inline-start: 1.1rem; }

.jn-toast {
    position: fixed;
    top: calc(var(--nav-h) + 1rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: calc(100% - 2rem);
    padding: 0.9rem 1.25rem;
    font-weight: 700;
    color: #067647;
    background: #fff;
    border: 1px solid #ABEFC6;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.jn-toast .bi { color: var(--success); font-size: 1.2rem; }

@media (max-width: 768px) {
    .jn-row { grid-template-columns: 1fr; }
    .jn-group { padding: 1.35rem 1.1rem 0.25rem; }
}
