/**
 * ATIKASS Form — Layout: Grid, Sidebars, Topbar, Stepper, Brand
 */

/* ── Mobile elements hidden on desktop ──── */
.atkf-topbar        { display: none; }
.atkf-mobile-stepper { display: none; }
.atkf-mobile-cta     { display: none; }

/* ── 3-Column Grid ──────────────────────── */
.atkf-layout {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    min-height: 100vh;
    margin: 0;
}

/* ─── LEFT SIDEBAR ──────────────────────── */
.atkf-sidebar-left {
    background: var(--atkf-gradient);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.atkf-sidebar-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(108,60,224,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%);
    pointer-events: none;
}

.atkf-sidebar-left__inner {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    position: relative;
    z-index: 1;
}

/* Back link */
.atkf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color var(--atkf-transition);
}
.atkf-back-link:hover,
.atkf-back-link:focus,
.atkf-back-link:active { color: #fff !important; }
.atkf-back-link:visited { color: rgba(255,255,255,0.7) !important; }
.atkf-back-link svg   { flex-shrink: 0; }

/* Mobile topbar back */
.atkf-topbar__back {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--atkf-text);
    text-decoration: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background var(--atkf-transition);
}
.atkf-topbar__back:hover { background: var(--atkf-primary-light); }

/* Brand */
.atkf-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}
.atkf-brand__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}
.atkf-brand__icon img { width: 28px; height: 28px; object-fit: contain; }
.atkf-brand__text { display: flex; flex-direction: column; }
.atkf-brand__name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
}
.atkf-brand__tagline {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}

/* Vertical Steps */
.atkf-vsteps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.atkf-vsteps__line {
    display: none;
}
.atkf-vsteps__line-fill {
    display: none;
}

.atkf-vstep {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--atkf-radius-sm);
    text-align: left;
    transition: var(--atkf-transition);
    position: relative;
    z-index: 1;
    color: #fff;
}
.atkf-vstep:hover { background: rgba(255,255,255,0.06); }
.atkf-vstep:focus-visible { outline: 2px solid rgba(255,255,255,0.5); outline-offset: 2px; }

.atkf-vstep__dot {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.4);
    transition: var(--atkf-transition);
    position: relative;
}
.atkf-vstep__num  { transition: var(--atkf-transition); }
.atkf-vstep__check {
    position: absolute;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--atkf-transition);
}

/* Active */
.atkf-vstep.active .atkf-vstep__dot {
    background: #fff;
    border-color: #fff;
    color: var(--atkf-primary);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
}
.atkf-vstep.active .atkf-vstep__dot .atkf-vstep__num { color: var(--atkf-primary); }

/* Completed */
.atkf-vstep.completed .atkf-vstep__dot {
    background: rgba(16,185,129,0.9);
    border-color: transparent;
    color: #fff;
}
.atkf-vstep.completed .atkf-vstep__dot .atkf-vstep__num { opacity: 0; transform: scale(0); }
.atkf-vstep.completed .atkf-vstep__dot .atkf-vstep__check { opacity: 1; transform: scale(1); }

.atkf-vstep__content { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.atkf-vstep__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    transition: var(--atkf-transition);
}
.atkf-vstep.active .atkf-vstep__title,
.atkf-vstep.completed .atkf-vstep__title { color: #fff; }

.atkf-vstep__desc {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    transition: var(--atkf-transition);
}
.atkf-vstep.active .atkf-vstep__desc { color: rgba(255,255,255,0.6); }

/* Sidebar footer */
.atkf-sidebar-left__footer { margin-top: auto; padding-top: 24px; }
.atkf-trust-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
}
.atkf-trust-mini svg { flex-shrink: 0; }

/* ─── CENTER ────────────────────────────── */
.atkf-form-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 48px 40px 40px;
    overflow-y: auto;
}
.atkf-form-card {
    width: 100%;
    max-width: 540px;
    background: var(--atkf-white);
    border-radius: var(--atkf-radius-xl);
    padding: 40px 36px 32px;
    box-shadow: var(--atkf-shadow-card);
    border: 1px solid rgba(108,60,224,0.06);
}

/* ─── No sidebar variant ───────────────── */
.atkf-wrapper--no-sidebar .atkf-layout {
    grid-template-columns: 280px 1fr;
}

/* ─── RIGHT SIDEBAR ─────────────────────── */
.atkf-sidebar-right { padding: 48px 20px 40px 0; }
.atkf-sidebar-right__inner {
    position: sticky;
    top: 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Footer */
.atkf-form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--atkf-border);
    font-size: 0.74rem;
    color: var(--atkf-text-muted);
}
