/* ╔══════════════════════════════════════════════════════════════╗
   ║  CreativeUXHub — Enrollment Page (3-Step Wizard)            ║
   ║  Premium light theme with blue accent                       ║
   ╚══════════════════════════════════════════════════════════════╝ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f5f1eb;
    --bg2: #faf8f5;
    --white: #ffffff;
    --card: #ffffff;
    --border: #e5e2dd;
    --border2: #d4d0ca;
    --t1: #1e293b;
    --t2: #475569;
    --t3: #94a3b8;
    --accent: #0170ff;
    --accent2: #3e93ff;
    --accent-light: #eef4ff;
    --accent-glow: rgba(1,112,255,0.12);
    --green: #0170ff;
    --red: #ef4444;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font); background: var(--bg); color: var(--t1);
    line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
    min-height: 100vh;
}
/* ─── NAV ─── */
.e-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 32px;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.e-logo { display: flex; align-items: center; gap: 0; text-decoration: none; color: var(--t1); font-size: 17px; font-weight: 500; }
.e-logo b { font-weight: 700; }
.e-nav-back {
    display: flex; align-items: center; gap: 6px; text-decoration: none;
    color: var(--t2); font-size: 14px; font-weight: 500; padding: 8px 16px;
    border-radius: 8px; transition: var(--transition);
}
.e-nav-back:hover { color: var(--t1); background: rgba(0,0,0,0.04); }

/* ─── STEPPER ─── */
.e-stepper {
    display: flex; align-items: center; justify-content: center; gap: 0;
    padding: 28px 20px 0; margin-top: 70px;
}
.e-step {
    display: flex; align-items: center; gap: 8px; opacity: 0.4;
    transition: var(--transition);
}
.e-step.active { opacity: 1; }
.e-step.done { opacity: 0.7; }
.e-step-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--border); color: var(--t2);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; transition: var(--transition);
}
.e-step.active .e-step-num { background: var(--accent); color: #fff; }
.e-step.done .e-step-num { background: var(--accent); color: #fff; }
.e-step-label { font-size: 14px; font-weight: 500; color: var(--t2); }
.e-step.active .e-step-label { color: var(--t1); font-weight: 600; }
.e-step-line {
    width: 60px; height: 2px; background: var(--border); margin: 0 12px;
    transition: var(--transition);
}
.e-step-line.done { background: var(--accent); }

/* ─── MAIN ─── */
.e-main {
    max-width: 560px; margin: 0 auto; padding: 32px 20px 60px;
}

/* ─── PANEL (each step) ─── */
.e-panel {
    background: var(--card); border-radius: var(--radius); border: 1px solid var(--border);
    padding: 40px 36px; box-shadow: var(--shadow-md); text-align: center;
    animation: panelIn 0.4s ease;
}
@keyframes panelIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.e-panel-icon {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px;
    background: var(--accent-light); display: flex; align-items: center; justify-content: center;
}
.e-panel-title { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; color: var(--t1); }
.e-panel-sub { font-size: 14px; color: var(--t3); margin-bottom: 28px; }

/* ─── FORM FIELDS ─── */
.e-form { text-align: left; }
.e-field { margin-bottom: 20px; }
.e-field label { display: block; font-size: 13px; font-weight: 600; color: var(--t2); margin-bottom: 6px; }
.req { color: var(--red); }
.e-field input, .e-field select {
    width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
    background: var(--bg2); border: 1px solid var(--border); color: var(--t1);
    font-size: 15px; font-family: var(--font); transition: var(--transition);
    outline: none;
}
.e-field input::placeholder { color: var(--t3); }
.e-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.e-field input.error { border-color: var(--red); }
.e-err { font-size: 12px; color: var(--red); margin-top: 4px; display: block; min-height: 0; }
.e-phone-wrap {
    display: flex; align-items: center; border-radius: var(--radius-sm);
    background: var(--bg2); border: 1px solid var(--border); overflow: hidden;
    transition: var(--transition);
}
.e-phone-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.e-phone-prefix {
    padding: 14px 12px 14px 16px; font-size: 15px; font-weight: 600;
    color: var(--t2); background: transparent; border: none; flex-shrink: 0;
    border-right: 1px solid var(--border);
}
.e-phone-wrap input { border: none; background: transparent; padding-left: 12px; }
.e-phone-wrap input:focus { box-shadow: none; }

/* ─── PRIMARY BUTTON ─── */
.e-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 16px 24px; border: none; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #0170ff, #005de0);
    color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
    transition: var(--transition); box-shadow: 0 4px 16px rgba(1,112,255,0.25);
    font-family: var(--font); margin-top: 8px;
}
.e-btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(1,112,255,0.35); }
.e-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.e-btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px 24px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--white); color: var(--t2); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: var(--transition); font-family: var(--font);
    text-decoration: none;
}
.e-btn-secondary:hover { background: var(--bg2); color: var(--t1); }

/* ─── TRUST MINI ─── */
.e-trust-mini {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 12px; color: var(--t3); margin-top: 20px;
}

/* ─── DISCOUNT BANNER ─── */
.e-discount-banner {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: 10px;
    background: linear-gradient(135deg, #0170ff, #005de0);
    color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 20px;
}

/* ─── PLAN STATS CARD ─── */
.e-plan-card {
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px 24px; margin-bottom: 20px;
}
.e-plan-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.e-plan-stat { text-align: center; }
.e-plan-stat-icon { margin: 0 auto 8px; }
.e-plan-stat-label { display: block; font-size: 12px; color: var(--t3); margin-bottom: 4px; }
.e-plan-stat-val { display: block; font-size: 20px; font-weight: 800; color: var(--t1); }
.e-original-price { text-decoration: line-through; color: var(--t3); font-size: 14px; font-weight: 400; margin-right: 4px; }
.e-final-price { color: var(--accent); }

/* ─── COUPON ─── */
.e-coupon-section { margin-bottom: 20px; }
.e-coupon-row { display: flex; gap: 8px; }
.e-coupon-input {
    flex: 1; padding: 12px 16px; border-radius: var(--radius-sm);
    background: var(--bg2); border: 1px solid var(--border); color: var(--t1);
    font-size: 14px; font-family: var(--font); outline: none; transition: var(--transition);
}
.e-coupon-input::placeholder { color: var(--t3); }
.e-coupon-input:focus { border-color: var(--accent); }
.e-coupon-btn {
    padding: 12px 20px; border-radius: var(--radius-sm); border: 1px solid var(--accent);
    background: transparent; color: var(--accent); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: var(--transition); white-space: nowrap; font-family: var(--font);
}
.e-coupon-btn:hover { background: var(--accent-light); }
.e-coupon-msg { font-size: 12px; margin-top: 6px; display: block; }
.e-coupon-msg.success { color: var(--green); }
.e-coupon-msg.error { color: var(--red); }

/* ─── TOTAL BOX ─── */
.e-total-box {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 24px; margin-bottom: 24px;
}
.e-total-label { display: block; font-size: 13px; color: var(--t3); }
.e-total-amount { display: block; font-size: 28px; font-weight: 800; color: var(--t1); margin: 2px 0; }
.e-total-tax { display: block; font-size: 11px; color: var(--t3); }

/* ─── BACK LINK ─── */
.e-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: none; color: var(--t3); font-size: 13px;
    font-weight: 500; cursor: pointer; transition: var(--transition);
    margin-top: 16px; padding: 0; font-family: var(--font);
}
.e-back-link:hover { color: var(--t1); }

/* ─── TRUST ROW ─── */
.e-trust-row {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-top: 24px; flex-wrap: wrap;
}
.e-trust-badge {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; color: var(--t3); font-weight: 500;
}
.e-payment-methods {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 12px; font-size: 12px; color: var(--t3);
}
.e-dot { opacity: 0.4; }

/* ─── PAY BUTTON ─── */
.e-btn-pay { font-size: 17px; padding: 18px 24px; }
.e-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: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── SUCCESS STEP ─── */
.e-success-check {
    width: 88px; height: 88px; border-radius: 50%;
    background: var(--accent-light); display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; animation: scaleIn 0.5s ease 0.2s both;
}
@keyframes scaleIn { from { opacity:0; transform:scale(0.5); } to { opacity:1; transform:scale(1); } }
.e-success-title { color: var(--accent) !important; }
.e-success-details {
    text-align: left; background: var(--bg2); border-radius: var(--radius-sm);
    padding: 20px; margin-bottom: 24px;
}
.e-sd-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.e-sd-label { color: var(--t3); }
.e-sd-value { color: var(--t1); font-weight: 600; }
.e-sd-row.highlight {
    color: var(--accent); font-weight: 700;
    border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px;
}
.e-btn-dashboard { margin-bottom: 12px; }

/* ─── FAIL STATE ─── */
.e-fail-icon {
    width: 88px; height: 88px; border-radius: 50%;
    background: #fef2f2; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}

/* ─── CONFETTI (decorative) ─── */
.e-confetti { position: relative; height: 0; }

/* ─── FOOTER ─── */
.e-footer {
    text-align: center; padding: 24px 20px; color: var(--t3); font-size: 13px;
    border-top: 1px solid var(--border);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
    .e-nav { padding: 12px 16px; }
    .e-nav-back span:last-child { display: none; }
    .e-stepper { gap: 0; padding-top: 24px; }
    .e-step-label { display: none; }
    .e-step-line { width: 40px; }
    .e-main { padding: 24px 12px 48px; }
    .e-panel { padding: 28px 20px; }
    .e-plan-stats { grid-template-columns: 1fr; gap: 12px; }
    .e-plan-stat { display: flex; align-items: center; gap: 12px; text-align: left; }
    .e-plan-stat-icon { margin: 0; }
    .e-total-amount { font-size: 24px; }
    .e-trust-row { gap: 10px; }
    .e-btn-pay { font-size: 15px; padding: 16px 20px; }
}

/* ─── Print ─── */
@media print {
    .e-nav, .e-stepper, .e-footer, .e-btn-primary, .e-btn-secondary,
    .e-trust-row, .e-payment-methods, .e-back-link, .e-coupon-section,
    #panel-1, #panel-2, #panel-fail { display: none !important; }
    body { background: #fff; }
    .e-main { max-width: 100%; }
    .e-panel { box-shadow: none; border: 1px solid #ddd; }
    .e-success-details { background: #f5f5f5; }
}
