/* ═══════════════════════════════════════════════════════════
   ClassoNix — Trial Page Redesign
   Premium B2B SaaS onboarding experience
═══════════════════════════════════════════════════════════ */

/* ── BASE ──────────────────────────────────────────────── */
.trial-page {
    background: #FAFAFA;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── TWO-COLUMN LAYOUT ─────────────────────────────────── */
.trial-shell {
    display: grid;
    grid-template-columns: 1fr 660px;
    min-height: 100vh;
}

/* ── LEFT PANEL (Branding / Marketing) ─────────────────── */
.trial-left {
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, #F6F4FF 0%, #FAFAFA 100%);
    position: relative;
    overflow: hidden;
}

.trial-left::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(83,58,253,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.trial-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}
.trial-brand img { width: 36px; height: 36px; }
.trial-brand span {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-h);
    letter-spacing: -0.3px;
}
.trial-brand b { color: var(--primary); }

.trial-headline {
    font-size: clamp(32px, 3.6vw, 46px);
    font-weight: 800;
    color: var(--text-h);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.trial-subtext {
    font-size: 17px;
    color: var(--text-body);
    line-height: 1.65;
    max-width: 500px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

/* ── TRUST BADGES ──────────────────────────────────────── */
.trial-trust-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.trial-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 50px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-h);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.trial-trust-badge i {
    color: #16A34A;
    font-size: 14px;
}

/* ── RIGHT PANEL (Form Card) ───────────────────────────── */
.trial-right {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    border-left: 1px solid var(--border-soft);
}

.trial-form-card {
    width: 100%;
    max-width: 540px;
}

/* ── PROGRESS INDICATOR ────────────────────────────────── */
.trial-progress {
    display: flex;
    align-items: center;
    margin-bottom: 36px;
}
.trial-progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.trial-progress-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F1F0FA;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s var(--ease);
    flex-shrink: 0;
}
.trial-progress-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s;
    white-space: nowrap;
}
.trial-progress-step.active .trial-progress-dot {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(83,58,253,0.12);
}
.trial-progress-step.active .trial-progress-label {
    color: var(--text-h);
}
.trial-progress-step.done .trial-progress-dot {
    background: #16A34A;
    color: #fff;
}
.trial-progress-step.done .trial-progress-label {
    color: var(--text-body);
}
.trial-progress-line {
    flex: 1;
    height: 2px;
    background: #F1F0FA;
    margin: 0 12px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.trial-progress-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #16A34A;
    border-radius: 2px;
    transition: width 0.4s var(--ease);
}
.trial-progress-line.done .trial-progress-line-fill {
    width: 100%;
}

/* ── STEP CONTAINER ────────────────────────────────────── */
.trial-step {
    display: none;
    animation: trialFadeIn 0.35s var(--ease);
}
.trial-step.active { display: block; }
@keyframes trialFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.trial-step-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-h);
    margin-bottom: 5px;
    letter-spacing: -0.4px;
}
.trial-step-sub {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 26px;
}

/* ── FORM FIELDS ───────────────────────────────────────── */
.trial-field {
    margin-bottom: 20px;
}
.trial-field-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-h);
    margin-bottom: 8px;
}
.trial-field-label .req { color: #EF4444; }
.trial-field-input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border-soft);
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-h);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.trial-field-input::placeholder {
    color: #B0B0C8;
    font-weight: 400;
}
.trial-field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(83,58,253,0.08);
}
.trial-field-input.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,0.06);
}
.trial-field-error {
    font-size: 12px;
    color: #EF4444;
    margin-top: 5px;
    display: none;
    font-weight: 600;
}
.trial-field-error.show { display: block; }
.trial-field-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Password field with toggle */
.trial-pwd-wrap {
    position: relative;
}
.trial-pwd-wrap .trial-field-input { padding-right: 46px; }
.trial-pwd-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.2s;
}
.trial-pwd-toggle:hover { color: var(--primary); }

/* Password strength */
.trial-pwd-strength {
    height: 4px;
    border-radius: 4px;
    background: #F1F0FA;
    margin-top: 8px;
    overflow: hidden;
}
.trial-pwd-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.3s, background 0.3s;
}
.trial-pwd-strength-bar.weak   { width: 33%; background: #EF4444; }
.trial-pwd-strength-bar.medium { width: 66%; background: #F59E0B; }
.trial-pwd-strength-bar.strong { width: 100%; background: #16A34A; }
.trial-pwd-strength-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
    font-weight: 600;
}

/* ── BUTTONS ───────────────────────────────────────────── */
.trial-btn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    gap: 12px;
}
.trial-btn-back {
    background: transparent;
    border: 2px solid var(--border-soft);
    color: var(--text-body);
    padding: 15px 26px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.trial-btn-back:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.trial-btn-next {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-width: 160px;
    justify-content: center;
}
.trial-btn-next:hover:not(:disabled) {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(83,58,253,0.25);
}
.trial-btn-next:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.trial-btn-next.full {
    width: 100%;
}

/* Loading spinner */
.trial-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: trialSpin 0.6s linear infinite;
}
@keyframes trialSpin { to { transform: rotate(360deg); } }

/* ── ALERT ─────────────────────────────────────────────── */
.trial-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 8px;
}
.trial-alert.show { display: flex; }
.trial-alert-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
}

/* ── STEP 3: CONFIRMATION SUMMARY ──────────────────────── */
.trial-summary {
    background: #F8F7FC;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 8px;
}
.trial-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
}
.trial-summary-row:last-child { border-bottom: none; }
.trial-summary-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}
.trial-summary-value {
    font-size: 15px;
    color: var(--text-h);
    font-weight: 700;
    text-align: right;
    max-width: 280px;
    word-break: break-word;
}

.trial-confirm-heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-h);
    margin: 26px 0 5px;
}
.trial-confirm-text {
    font-size: 15px;
    color: var(--text-body);
    margin-bottom: 22px;
}

.trial-cta-trust {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.trial-cta-trust span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.trial-cta-trust i { color: #16A34A; font-size: 12px; }

/* ── SUCCESS / ONBOARDING SCREEN ───────────────────────── */
.trial-success {
    display: none;
    text-align: center;
}
.trial-success.show { display: block; animation: trialFadeIn 0.4s var(--ease); }

.trial-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    animation: trialPop 0.5s var(--ease);
    box-shadow: 0 8px 24px rgba(22,163,74,0.25);
}
@keyframes trialPop {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.trial-success h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-h);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.trial-success > p {
    font-size: 15px;
    color: var(--text-body);
    margin-bottom: 24px;
}

/* Trial badge */
.trial-trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(83,58,253,0.06);
    border: 1px solid rgba(83,58,253,0.15);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}
.trial-trial-badge i { font-size: 13px; }

/* Onboarding checklist */
.trial-checklist {
    background: #F8F7FC;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    margin-bottom: 24px;
}
.trial-checklist-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-h);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.trial-checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 14px;
    font-weight: 600;
}
.trial-checklist-item:last-child { border-bottom: none; }
.trial-checklist-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}
.trial-checklist-icon--done {
    background: #16A34A;
    color: #fff;
}
.trial-checklist-icon--todo {
    background: #fff;
    border: 2px solid var(--border-soft);
    color: transparent;
}
.trial-checklist-item.done {
    color: var(--text-h);
}
.trial-checklist-item.todo {
    color: var(--text-muted);
}

.trial-success-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: none;
    cursor: pointer;
}
.trial-success-cta:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 8px 24px rgba(83,58,253,0.25);
    transform: translateY(-1px);
}

.trial-success-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ── PLAN SELECTOR (EzyCourse style) ───────────────────── */
.trial-plan-block {
    background: #F8F7FC;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 24px;
}

.trial-plan-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.trial-plan-head-left { min-width: 0; }
.trial-plan-eyebrow {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.9px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.trial-plan-current {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-h);
    line-height: 1.35;
}
.trial-plan-save {
    font-size: 13px;
    font-weight: 700;
    color: #16A34A;
    margin-top: 5px;
    display: none;
}
.trial-plan-save.show { display: block; }
.trial-plan-save i { font-size: 11px; }

/* Billing toggle */
.trial-billing-toggle {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 50px;
    padding: 3px;
    flex-shrink: 0;
}
.trial-billing-seg {
    border: none;
    background: transparent;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    white-space: nowrap;
}
.trial-billing-seg.active {
    background: var(--primary);
    color: #fff;
}

/* Plan grid */
.trial-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.trial-plan-opt {
    background: #fff;
    border: 1.5px solid var(--border-soft);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.18s var(--ease);
    position: relative;
}
.trial-plan-opt:hover {
    border-color: var(--primary-light);
}
.trial-plan-opt.selected {
    border-color: var(--primary);
    background: rgba(83,58,253,0.04);
    box-shadow: 0 0 0 3px rgba(83,58,253,0.07);
}
.trial-plan-opt-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-h);
    margin-bottom: 4px;
}
.trial-plan-opt-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.trial-plan-opt-was {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 600;
}
.trial-plan-opt-now {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-h);
}
.trial-plan-opt-per {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}
.trial-plan-opt-badge {
    position: absolute;
    top: 11px;
    right: 12px;
    font-size: 9px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(83,58,253,0.10);
    padding: 3px 7px;
    border-radius: 5px;
    letter-spacing: 0.4px;
}
.trial-plan-opt-limit {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 5px;
}

/* Includes list */
.trial-plan-includes {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border-soft);
}
.trial-plan-includes-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.9px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.trial-plan-includes ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px 16px;
}
.trial-plan-includes li {
    font-size: 14px;
    color: var(--text-body);
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}
.trial-plan-includes li i {
    color: #16A34A;
    font-size: 12px;
    margin-top: 3px;
    flex-shrink: 0;
}

.trial-plan-freenote {
    margin-top: 18px;
    background: rgba(22,163,74,0.07);
    border: 1px solid rgba(22,163,74,0.18);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 700;
    color: #15803D;
    display: flex;
    align-items: center;
    gap: 9px;
}
.trial-plan-freenote i { font-size: 13px; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1200px) {
    .trial-shell {
        grid-template-columns: 1fr 580px;
    }
    .trial-left { padding: 40px 40px; }
    .trial-right { padding: 44px 40px; }
}

@media (max-width: 1000px) {
    .trial-shell {
        grid-template-columns: 1fr;
    }
    .trial-left {
        padding: 48px 28px 40px;
        border-bottom: 1px solid var(--border-soft);
        text-align: center;
        align-items: center;
    }
    .trial-left::before { display: none; }
    .trial-brand { justify-content: center; margin-bottom: 32px; }
    .trial-subtext { margin-left: auto; margin-right: auto; }
    .trial-trust-badges {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    .trial-right {
        border-left: none;
        padding: 44px 28px;
    }
    .trial-form-card { max-width: 620px; }
}

@media (max-width: 640px) {
    .trial-left { padding: 36px 20px 28px; }
    .trial-right { padding: 32px 20px; }
    .trial-headline { font-size: 28px; }
    .trial-subtext { font-size: 15px; }
    .trial-step-title { font-size: 22px; }
    .trial-progress-label { display: none; }
    .trial-plan-head {
        flex-direction: column;
        align-items: stretch;
    }
    .trial-billing-toggle { align-self: flex-start; }
    .trial-plan-includes ul { grid-template-columns: 1fr; }
    .trial-btn-row {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .trial-btn-back, .trial-btn-next {
        width: 100%;
        justify-content: center;
    }
    .trial-summary-value {
        max-width: 160px;
    }
}

@media (max-width: 400px) {
    .trial-plan-grid {
        grid-template-columns: 1fr;
    }
    .trial-plan-block { padding: 16px; }
    .trial-trust-badge { font-size: 13px; padding: 10px 16px; }
}
