/* Join as a School / Join as a Seller — shared layout. Builds on the site's
   own tokens (--qu-*) from style.css so it reads as part of the website. */

.join-section {
    padding: 56px 0 72px;
    background: var(--qu-bg-light, #F9FAFB);
}

/* ---------- Form card ---------- */
.join-card {
    background: #fff;
    border: 1px solid var(--qu-border-color, #E5E7EB);
    border-radius: 18px;
    box-shadow: 0 12px 32px -18px rgba(15, 23, 42, .25);
    padding: 32px;
}

.join-card h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--qu-primary, #1E3A8A);
    margin-bottom: 4px;
}

.join-lead {
    color: #64748b;
    font-size: .92rem;
    margin-bottom: 24px;
}

.join-group-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 14px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.join-group-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eef0f4;
}

.join-form .form-label {
    font-size: .82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.join-form .req {
    color: #dc2626;
    margin-left: 2px;
}

.join-form .form-control,
.join-form .form-select {
    border-radius: 12px;
    border: 1px solid var(--qu-border-color, #E5E7EB);
    padding: 11px 14px;
    font-size: .92rem;
}

.join-form .form-control:focus,
.join-form .form-select:focus {
    border-color: var(--qu-accent, #3B82F6);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}

.join-form .form-control.is-invalid,
.join-form .form-select.is-invalid {
    border-color: #dc2626;
}

/* Typed value in capitals (GSTIN), but not the "e.g." hint. */
.join-form .join-upper {
    text-transform: uppercase;
}

.join-form .join-upper::placeholder {
    text-transform: none;
}

.join-form .form-text {
    font-size: .76rem;
    color: #94a3b8;
}

.join-submit {
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    font-size: 1rem;
}

.join-privacy {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 12px 0 0;
    font-size: .78rem;
    color: #94a3b8;
    text-align: center;
}

/* ---------- Success ---------- */
.join-success {
    text-align: center;
    padding: 28px 8px;
}

.join-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: #DEF7EC;
    color: #047857;
    font-size: 28px;
}

.join-success h3 {
    font-weight: 800;
    color: #0f172a;
}

.join-success p {
    color: #64748b;
    max-width: 440px;
    margin: 8px auto 22px;
}

/* ---------- Why join ---------- */
.join-side h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.join-side .join-card + .join-card,
.join-side .join-card + .join-switch {
    margin-top: 20px;
}

.join-perk {
    display: flex;
    gap: 14px;
    padding: 14px 0;
}

.join-perk + .join-perk {
    border-top: 1px dashed #e8ebf1;
}

.join-perk-icon {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--qu-badge-bg, #EFF6FF);
    color: var(--qu-primary, #1E3A8A);
    font-size: 17px;
}

.join-perk h4 {
    margin: 0 0 2px;
    font-size: .95rem;
    font-weight: 700;
    color: #0f172a;
}

.join-perk p {
    margin: 0;
    font-size: .84rem;
    line-height: 1.55;
    color: #64748b;
}

/* ---------- How it works ---------- */
.join-steps {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    counter-reset: step;
}

.join-steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 18px 46px;
}

.join-steps li:last-child {
    padding-bottom: 0;
}

.join-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--qu-primary, #1E3A8A);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
}

.join-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 34px;
    bottom: 4px;
    width: 2px;
    background: #e5e9f2;
}

.join-steps strong {
    display: block;
    font-size: .92rem;
    color: #0f172a;
}

.join-steps span {
    font-size: .82rem;
    color: #64748b;
}

/* ---------- Switch to the other join page ---------- */
.join-switch {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--qu-border-color, #E5E7EB);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.join-switch:hover {
    color: inherit;
    border-color: var(--qu-accent, #3B82F6);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -16px rgba(30, 58, 138, .4);
}

.join-switch .join-perk-icon {
    background: #fff7ed;
    color: #ea580c;
}

.join-switch strong {
    display: block;
    font-size: .92rem;
    color: #0f172a;
}

.join-switch span {
    font-size: .8rem;
    color: #64748b;
}

.join-switch .fa-arrow-right {
    margin-left: auto;
    color: var(--qu-primary, #1E3A8A);
}

@media (max-width: 575.98px) {
    .join-section {
        padding: 32px 0 48px;
    }

    .join-card {
        padding: 22px 18px;
    }
}
