/* ==========================================================
   ADCSD Online — Registration Pages 2026
   Premium multi-step onboarding experience
   Extends the homepage design system
   ========================================================== */

/* ===========================================================
   REGISTRATION HERO (compact)
   =========================================================== */
.reg-hero {
    position: relative;
    padding: 120px 0 48px;
    overflow: hidden;
    background: linear-gradient(160deg, #f0f4ff 0%, #faf8ff 30%, #fff5f7 60%, #f0f9ff 100%);
}
.reg-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
    pointer-events: none;
}
.reg-hero__orb--1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,.3), transparent 70%);
    top: -20%; right: -8%;
}
.reg-hero__orb--2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(228,25,55,.15), transparent 70%);
    bottom: -15%; left: -6%;
}
.reg-hero__grain {
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
    pointer-events: none;
}
.reg-hero__inner {
    position: relative; z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.reg-hero__badge {
    display: inline-flex;
    align-items: center; gap: 10px;
    font-size: .78rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--green);
    margin-bottom: 20px;
}
.reg-hero__badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(16,185,129,.2);
    animation: pulse-dot 2s ease-in-out infinite;
}
.reg-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700; color: var(--ink);
    line-height: 1.12; letter-spacing: -.03em;
    margin-bottom: 14px;
}
.reg-hero__subtitle {
    font-size: .95rem; color: var(--ink-muted);
    line-height: 1.65; margin-bottom: 0;
}
.reg-hero__meta {
    display: flex; gap: 20px; justify-content: center;
    flex-wrap: wrap; margin-top: 20px;
}
.reg-hero__meta-item {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .8rem; font-weight: 500; color: var(--ink-muted);
}
.reg-hero__meta-item i {
    font-size: .75rem; color: var(--green);
}


/* ===========================================================
   PROGRESS STEPPER
   =========================================================== */
.reg-stepper {
    position: relative; z-index: 1;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0;
}
.reg-stepper__inner {
    max-width: 786px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
}
.reg-stepper__step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 12px;
    position: relative;
    text-decoration: none;
    transition: all .3s var(--ease);
}
.reg-stepper__step::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: transparent;
    border-radius: 3px 3px 0 0;
    transition: background .3s var(--ease);
}
.reg-stepper__step--active::after {
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}
.reg-stepper__step--completed::after {
    background: var(--green);
}
.reg-stepper__num {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: .78rem; font-weight: 700;
    flex-shrink: 0;
    transition: all .3s var(--ease);
    background: var(--surface-muted);
    color: var(--ink-muted);
    border: 2px solid var(--border);
}
.reg-stepper__step--active .reg-stepper__num {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(228,25,55,.25);
}
.reg-stepper__step--completed .reg-stepper__num {
    background: var(--green);
    color: #fff;
    border-color: transparent;
}
.reg-stepper__text {
    text-align: left;
    line-height: 1.3;
}
.reg-stepper__label {
    display: block;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.reg-stepper__step--active .reg-stepper__label { color: var(--accent); }
.reg-stepper__step--completed .reg-stepper__label { color: var(--green); }
.reg-stepper__name {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink);
}
.reg-stepper__step--active .reg-stepper__name { color: var(--ink); }


/* ===========================================================
   MAIN CONTENT AREA
   =========================================================== */
.reg-body {
    padding: 48px 0 100px;
    background: var(--surface-dim);
    min-height: 60vh;
}
.reg-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}


/* ===========================================================
   FORM CARD
   =========================================================== */
.reg-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 8px 40px rgba(0,0,0,.04), 0 1px 0 rgba(255,255,255,.5) inset;
    padding: 40px 44px;
    position: relative;
}
.reg-card__header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.reg-card__step-badge {
    display: inline-flex;
    align-items: center; gap: 6px;
    font-size: .7rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent);
    background: rgba(228,25,55,.07);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
}
.reg-card__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.02em;
    margin-bottom: 6px;
}
.reg-card__desc {
    font-size: .88rem;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* Section Groups */
.reg-section {
    margin-bottom: 32px;
}
.reg-section:last-child { margin-bottom: 0; }
.reg-section__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.reg-section__icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem;
    color: var(--c, var(--purple));
    background: color-mix(in srgb, var(--c, var(--purple)) 10%, transparent);
    flex-shrink: 0;
}
.reg-section__title {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--ink);
}
.reg-section__subtitle {
    font-size: .78rem;
    color: var(--ink-muted);
    margin-top: 2px;
}

/* Form Grid */
.reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}
.reg-grid--single {
    grid-template-columns: 1fr;
}
.reg-grid--triple {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Form Fields */
.reg-field {
    display: flex;
    flex-direction: column;
}
.reg-field--full {
    grid-column: 1 / -1;
}
.reg-field label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 7px;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    gap: 4px;
}
.reg-field label .req {
    color: var(--accent);
    font-weight: 700;
}
.reg-field label .optional {
    font-weight: 400;
    color: var(--ink-muted);
    font-size: .72rem;
}
.reg-field input,
.reg-field select,
.reg-field textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: .9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-dim);
    color: var(--ink);
    transition: all .25s var(--ease);
    outline: none;
    -webkit-appearance: none;
}
.reg-field input:focus,
.reg-field select:focus,
.reg-field textarea:focus {
    border-color: var(--pri-mid);
    box-shadow: 0 0 0 3px rgba(26,60,110,.08);
    background: var(--surface);
}
.reg-field input::placeholder { color: var(--ink-faint); }
.reg-field select { cursor: pointer; }
.reg-field textarea { resize: vertical; min-height: 80px; }
.reg-field .field-hint {
    font-size: .72rem;
    color: var(--ink-muted);
    margin-top: 5px;
    display: flex; align-items: center; gap: 4px;
}
.reg-field .field-hint i { font-size: .65rem; }
.reg-field .field-error {
    font-size: .75rem;
    color: var(--accent);
    margin-top: 5px;
    display: flex; align-items: center; gap: 5px;
}
.reg-field .field-error i { font-size: .7rem; }

/* File Upload */
.reg-upload {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    background: var(--surface-dim);
    transition: all .3s var(--ease);
    cursor: pointer;
}
.reg-upload:hover {
    border-color: var(--pri-light);
    background: color-mix(in srgb, var(--purple) 3%, var(--surface-dim));
}
.reg-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.reg-upload__icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--purple) 10%, transparent);
    color: var(--purple);
    font-size: 1rem;
    margin-bottom: 10px;
}
.reg-upload__text {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}
.reg-upload__hint {
    font-size: .72rem;
    color: var(--ink-muted);
}
.reg-upload__badge {
    position: absolute;
    top: 10px; right: 10px;
    font-size: .6rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    color: var(--accent);
    background: rgba(228,25,55,.08);
}
.reg-upload__badge--optional {
    color: var(--ink-muted);
    background: var(--surface-muted);
}

/* Payment Info Card */
.reg-payment-info {
    background: linear-gradient(135deg, var(--surface-dim), var(--surface-muted));
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}
.reg-payment-info h4 {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.reg-payment-info h4 i { color: var(--purple); font-size: .9rem; }
.reg-payment-info__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: .86rem;
}
.reg-payment-info__row:last-child { border-bottom: none; }
.reg-payment-info__label { color: var(--ink-muted); }
.reg-payment-info__value {
    font-weight: 600;
    color: var(--ink);
    font-family: var(--font-display);
    letter-spacing: .02em;
}


/* ===========================================================
   FORM ACTIONS
   =========================================================== */
.reg-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.reg-actions__left {
    display: flex; align-items: center; gap: 12px;
}
.reg-actions__right {
    display: flex; align-items: center; gap: 12px;
}
.reg-btn-back {
    display: inline-flex;
    align-items: center; gap: 8px;
    font-family: var(--font-body);
    font-size: .88rem; font-weight: 500;
    color: var(--ink-muted);
    background: none; border: none;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: all .25s var(--ease);
    text-decoration: none;
}
.reg-btn-back:hover {
    color: var(--ink);
    background: var(--surface-muted);
}
.reg-btn-back i { font-size: .72rem; }


/* ===========================================================
   SIDEBAR
   =========================================================== */
.reg-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}
.reg-sidebar__card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 28px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,.02);
}
.reg-sidebar__card-title {
    font-family: var(--font-display);
    font-size: .92rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.reg-sidebar__card-title i {
    color: var(--accent);
    font-size: .85rem;
}
.reg-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.reg-sidebar__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .84rem;
    color: var(--ink-body);
    line-height: 1.5;
}
.reg-sidebar__item-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--green) 10%, transparent);
    color: var(--green);
    display: flex; align-items: center; justify-content: center;
    font-size: .65rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Help card */
.reg-sidebar__help {
    background: linear-gradient(135deg, var(--pri), var(--pri-mid));
    border: none;
    color: #fff;
}
.reg-sidebar__help .reg-sidebar__card-title {
    color: #fff;
}
.reg-sidebar__help .reg-sidebar__card-title i {
    color: #fbbf24;
}
.reg-sidebar__help-text {
    font-size: .84rem;
    color: rgba(255,255,255,.65);
    line-height: 1.6;
    margin-bottom: 16px;
}
.reg-sidebar__help-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.reg-sidebar__help-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    font-weight: 500;
    color: rgba(255,255,255,.85) !important;
    text-decoration: none;
    transition: .2s;
}
.reg-sidebar__help-link:hover { color: #fff !important; }
.reg-sidebar__help-link i {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem;
    flex-shrink: 0;
}


/* ===========================================================
   TRUST BAR
   =========================================================== */
.reg-trust {
    margin-top: 32px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.reg-trust__item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .76rem;
    font-weight: 500;
    color: var(--ink-muted);
}
.reg-trust__item i {
    color: var(--green);
    font-size: .7rem;
}


/* ===========================================================
   FORM MESSAGES (override for reg context)
   =========================================================== */
.reg-card .alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: .85rem;
    line-height: 1.5;
}
.reg-card .alert ul { margin: 0; padding: 0; }
.reg-card .alert li { list-style: none; margin-bottom: 2px; }
.reg-card .alert li:last-child { margin-bottom: 0; }


/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1024px) {
    .reg-layout {
        grid-template-columns: 1fr;
        max-width: 700px;
    }
    .reg-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .reg-sidebar__card { flex: 1; min-width: 260px; }
}

@media (max-width: 768px) {
    .reg-hero { padding: 100px 0 32px; }
    .reg-hero__title { font-size: clamp(1.5rem, 5vw, 2rem); }

    .reg-stepper__text { display: none; }
    .reg-stepper__step { padding: 16px 8px; gap: 0; }
    .reg-stepper__num { width: 28px; height: 28px; font-size: .7rem; }

    .reg-card { padding: 28px 22px; border-radius: var(--radius-lg); }
    .reg-grid { grid-template-columns: 1fr; gap: 14px; }
    .reg-grid--triple { grid-template-columns: 1fr; }

    .reg-body { padding: 32px 0 80px; }

    .reg-sidebar { flex-direction: column; }
    .reg-sidebar__card { min-width: auto; }

    .reg-actions { flex-direction: column-reverse; gap: 12px; }
    .reg-actions__left, .reg-actions__right { width: 100%; }
    .reg-actions__right .btn { width: 100%; }
    .reg-actions__left .reg-btn-back { width: 100%; justify-content: center; }

    .reg-hero__meta { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
    .reg-card { padding: 22px 16px; }
    .reg-layout { padding: 0 16px; }
    .reg-trust { flex-direction: column; align-items: center; gap: 8px; }
}

