/* ============================================================
 *  B.Tech Engineering Counselling Registration — Styles
 *  Future Education · futeducation.com
 * ============================================================ */

/* ── Engineering Counselling Registration Page Styles ── */
    :root {
      --eng-primary: #0d6efd;
      --eng-dark:    #0a1931;
      --eng-success: #198754;
      --eng-gold:    #f59e0b;
      --eng-red:     #dc2626;
    }

    /* Hero */
    .eng-hero {
      background: linear-gradient(135deg, #0a1931 0%, #0d3570 60%, #1a5fb4 100%);
      padding: 80px 0 50px;
      position: relative;
      overflow: hidden;
    }
    .eng-hero::before {
      content: '';
      position: absolute;
      top: -80px; right: -80px;
      width: 400px; height: 400px;
      background: radial-gradient(circle, rgba(13,110,253,.18) 0%, transparent 70%);
      pointer-events: none;
    }
    .eng-hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255,255,255,.12);
      border: 1px solid rgba(255,255,255,.25);
      backdrop-filter: blur(8px);
      border-radius: 50px;
      padding: 5px 14px;
      font-size: .78rem;
      font-weight: 600;
      color: #fff;
      margin-bottom: 16px;
      letter-spacing: .5px;
    }
    .eng-hero-title {
      font-size: clamp(1.7rem, 4vw, 2.6rem);
      font-weight: 800;
      color: #fff;
      line-height: 1.2;
    }
    .eng-hero-title span { color: #60a5fa; }
    .eng-hero-subtitle {
      color: rgba(255,255,255,.75);
      font-size: .95rem;
      max-width: 520px;
    }

    /* Trust bar */
    .eng-trust-bar {
      background: #fff;
      border-bottom: 2px solid #e5e7eb;
      padding: 12px 0;
    }
    .eng-trust-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: .82rem;
      font-weight: 600;
      color: #374151;
    }
    .eng-trust-item i { color: var(--eng-primary); font-size: 1.1rem; }

    /* Progress steps */
    .eng-steps {
      display: flex;
      justify-content: center;
      gap: 0;
      margin: 32px 0 28px;
      position: relative;
    }
    .eng-steps::before {
      content: '';
      position: absolute;
      top: 18px; left: 15%;
      width: 70%; height: 2px;
      background: #e5e7eb;
      z-index: 0;
    }
    .eng-step {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      flex: 1;
      max-width: 120px;
      position: relative;
      z-index: 1;
    }
    .eng-step-num {
      width: 36px; height: 36px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-weight: 700; font-size: .85rem;
      background: #e5e7eb;
      color: #6b7280;
      border: 2px solid #e5e7eb;
      transition: all .3s;
    }
    .eng-step.active .eng-step-num {
      background: var(--eng-primary);
      border-color: var(--eng-primary);
      color: #fff;
      box-shadow: 0 0 0 4px rgba(13,110,253,.2);
    }
    .eng-step.done .eng-step-num {
      background: var(--eng-success);
      border-color: var(--eng-success);
      color: #fff;
    }
    .eng-step-label {
      font-size: .72rem;
      font-weight: 600;
      color: #9ca3af;
      text-align: center;
      line-height: 1.2;
    }
    .eng-step.active .eng-step-label { color: var(--eng-primary); }
    .eng-step.done  .eng-step-label  { color: var(--eng-success); }

    /* Form card */
    .eng-form-card {
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 4px 30px rgba(0,0,0,.1);
      overflow: hidden;
    }
    .eng-form-header {
      background: linear-gradient(135deg, var(--eng-primary), #0a58ca);
      padding: 18px 24px;
    }
    .eng-form-header h2 { color: #fff; margin: 0; font-size: 1.15rem; font-weight: 700; }
    .eng-form-header p  { color: rgba(255,255,255,.8); margin: 4px 0 0; font-size: .82rem; }
    .eng-form-body { padding: 24px; }

    /* Form fields */
    .eng-form-body .form-control,
    .eng-form-body .form-select {
      border-radius: 8px;
      border: 1.5px solid #e5e7eb;
      padding: 10px 14px;
      font-size: .9rem;
      transition: border-color .2s, box-shadow .2s;
    }
    .eng-form-body .form-control:focus,
    .eng-form-body .form-select:focus {
      border-color: var(--eng-primary);
      box-shadow: 0 0 0 3px rgba(13,110,253,.12);
    }
    .eng-form-body .form-control.is-invalid,
    .eng-form-body .form-select.is-invalid {
      border-color: var(--eng-red);
    }
    .eng-section-label {
      font-size: .72rem;
      font-weight: 700;
      letter-spacing: .8px;
      text-transform: uppercase;
      color: #6b7280;
      margin: 16px 0 8px;
      display: flex; align-items: center; gap: 6px;
    }
    .eng-section-label::after {
      content: ''; flex: 1; height: 1px; background: #e5e7eb;
    }

    /* Submit button */
    .eng-btn-pay {
      width: 100%;
      padding: 14px;
      font-size: 1rem;
      font-weight: 700;
      border-radius: 10px;
      background: linear-gradient(135deg, #0d6efd, #0a58ca);
      border: none;
      color: #fff;
      letter-spacing: .3px;
      cursor: pointer;
      transition: transform .15s, box-shadow .15s;
      position: relative;
    }
    .eng-btn-pay:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(13,110,253,.35);
    }
    .eng-btn-pay:disabled { opacity: .7; cursor: not-allowed; transform: none; }
    .eng-btn-pay .spinner-border {
      width: 18px; height: 18px; border-width: 2px;
    }

    /* Amount badge */
    .eng-amount-badge {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #f0f7ff;
      border: 1.5px solid #bfdbfe;
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 16px;
    }
    .eng-amount-badge .label { font-size: .82rem; color: #374151; }
    .eng-amount-badge .amount { font-size: 1.3rem; font-weight: 800; color: var(--eng-primary); }
    .eng-amount-badge .gst { font-size: .72rem; color: #6b7280; margin-top: 2px; }

    /* UPI icons */
    .eng-payment-icons {
      display: flex; gap: 8px; flex-wrap: wrap;
      margin-bottom: 14px;
    }
    .eng-upi-chip {
      background: #f9fafb;
      border: 1px solid #e5e7eb;
      border-radius: 6px;
      padding: 4px 10px;
      font-size: .72rem;
      font-weight: 600;
      color: #374151;
    }

    /* Security note */
    .eng-secure-note {
      display: flex; align-items: center; gap: 6px;
      font-size: .75rem; color: #6b7280;
      justify-content: center;
      margin-top: 10px;
    }


    /* Sidebar info card */
    .eng-info-card {
      background: #fff;
      border-radius: 14px;
      border: 1px solid #e5e7eb;
      overflow: hidden;
      margin-bottom: 16px;
    }
    .eng-info-card-head {
      background: #f8faff;
      border-bottom: 1px solid #e5e7eb;
      padding: 12px 16px;
      font-weight: 700;
      font-size: .85rem;
      display: flex; align-items: center; gap: 8px;
    }
    .eng-info-card-body { padding: 16px; }
    .eng-step-list { list-style: none; padding: 0; margin: 0; }
    .eng-step-list li {
      display: flex; align-items: flex-start; gap: 10px;
      padding: 8px 0;
      border-bottom: 1px solid #f3f4f6;
      font-size: .83rem;
      color: #374151;
    }
    .eng-step-list li:last-child { border: none; padding-bottom: 0; }
    .eng-step-list .num {
      min-width: 22px; height: 22px;
      background: var(--eng-primary);
      color: #fff;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: .72rem; font-weight: 700;
      margin-top: 1px;
    }

    /* ── SUCCESS SCREEN ─────────────────────────────────────────── */
    #success-screen { display: none; }
    .eng-success-card {
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 4px 30px rgba(0,0,0,.1);
      overflow: hidden;
    }
    .eng-success-header {
      background: linear-gradient(135deg, #065f46, #059669);
      padding: 32px 24px;
      text-align: center;
    }
    .eng-success-icon {
      width: 70px; height: 70px;
      background: rgba(255,255,255,.2);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 14px;
      font-size: 2rem; color: #fff;
    }
    .eng-success-title { color: #fff; font-size: 1.4rem; font-weight: 800; margin: 0 0 6px; }
    .eng-success-sub   { color: rgba(255,255,255,.8); font-size: .87rem; margin: 0; }
    .eng-success-body  { padding: 24px; }
    .eng-detail-row {
      display: flex; justify-content: space-between; align-items: center;
      padding: 10px 0; border-bottom: 1px solid #f3f4f6;
      font-size: .87rem;
    }
    .eng-detail-row:last-child { border: none; }
    .eng-detail-row .key   { color: #6b7280; }
    .eng-detail-row .value { font-weight: 600; color: #111827; text-align: right; max-width: 60%; word-break: break-all; }
    .eng-inquiry-badge {
      background: #eff6ff;
      border: 2px dashed #3b82f6;
      border-radius: 10px;
      padding: 14px;
      text-align: center;
      margin-bottom: 20px;
    }
    .eng-inquiry-badge .label { font-size: .75rem; color: #6b7280; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
    .eng-inquiry-badge .id    { font-size: 1.3rem; font-weight: 800; color: var(--eng-primary); font-family: 'Courier New', monospace; letter-spacing: 1px; }
    .eng-btn-receipt {
      width: 100%;
      padding: 13px;
      font-weight: 700;
      border-radius: 10px;
      background: linear-gradient(135deg, #059669, #065f46);
      border: none; color: #fff; cursor: pointer;
      font-size: .95rem;
      transition: box-shadow .2s;
    }
    .eng-btn-receipt:hover { box-shadow: 0 6px 18px rgba(5,150,105,.3); }

    /* ── LOADING OVERLAY ────────────────────────────────────────── */
    #eng-overlay {
      display: none;
      position: fixed; inset: 0;
      background: rgba(0,0,0,.65);
      z-index: 2147483647; /* above Razorpay iframe */
      align-items: center; justify-content: center;
      flex-direction: column; gap: 16px;
    }
    #eng-overlay.show { display: flex; }
    #eng-overlay p { color: #fff; font-weight: 600; font-size: .95rem; margin: 0; }

    /* ── NOTIFICATION TOAST ──────────────────────────────────────────
       Clean white card · top-right · slides in from right
       Above Razorpay (z-index max)
    ─────────────────────────────────────────────────────────────── */
    #eng-toast-wrap {
      position: fixed;
      top: 24px;
      right: 24px;
      z-index: 2147483647;
      pointer-events: none;
      width: 340px;
    }
    @media (max-width: 480px) {
      #eng-toast-wrap {
        top: 12px; right: 12px; left: 12px; width: auto;
      }
    }
    #eng-toast {
      background: #ffffff;
      border-radius: 10px;
      box-shadow: 0 4px 6px -1px rgba(0,0,0,.07),
                  0 10px 24px -4px rgba(0,0,0,.12),
                  0 0 0 1px rgba(0,0,0,.06);
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
      transform: translateX(calc(100% + 32px));
      transition: transform .32s cubic-bezier(.22,1,.36,1),
                  opacity .2s ease;
    }
    #eng-toast.show {
      opacity: 1;
      pointer-events: auto;
      transform: translateX(0);
    }
    /* Coloured top accent bar */
    .eng-toast-bar {
      height: 3px;
      width: 100%;
    }
    #eng-toast.error   .eng-toast-bar { background: #ef4444; }
    #eng-toast.success .eng-toast-bar { background: #22c55e; }
    #eng-toast.info    .eng-toast-bar { background: #3b82f6; }
    #eng-toast.warning .eng-toast-bar { background: #f59e0b; }
    /* Body */
    .eng-toast-inner {
      display: flex;
      align-items: flex-start;
      gap: 11px;
      padding: 14px 14px 14px 16px;
    }
    /* SVG icon container */
    .eng-toast-icon {
      flex-shrink: 0;
      width: 20px; height: 20px;
      margin-top: 1px;
    }
    .eng-toast-icon svg { width: 20px; height: 20px; display: block; }
    #eng-toast.error   .eng-toast-icon svg { color: #ef4444; }
    #eng-toast.success .eng-toast-icon svg { color: #22c55e; }
    #eng-toast.info    .eng-toast-icon svg { color: #3b82f6; }
    #eng-toast.warning .eng-toast-icon svg { color: #f59e0b; }
    /* Text */
    .eng-toast-body  { flex: 1; min-width: 0; }
    .eng-toast-title {
      font-size: .825rem;
      font-weight: 600;
      color: #111827;
      margin-bottom: 2px;
      line-height: 1.3;
    }
    .eng-toast-msg {
      font-size: .775rem;
      color: #6b7280;
      line-height: 1.45;
    }
    /* Close button */
    .eng-toast-close {
      flex-shrink: 0;
      background: none;
      border: none;
      padding: 2px;
      cursor: pointer;
      color: #9ca3af;
      line-height: 1;
      border-radius: 4px;
      transition: color .15s, background .15s;
      margin-top: 1px;
    }
    .eng-toast-close:hover { color: #374151; background: #f3f4f6; }
    .eng-toast-close svg { width: 14px; height: 14px; display: block; }
    /* Auto-dismiss progress bar */
    .eng-toast-progress {
      height: 2px;
      background: #e5e7eb;
      transform-origin: left;
      transform: scaleX(1);
      transition: transform linear;
    }
    #eng-toast.error   .eng-toast-progress { background: #fca5a5; }
    #eng-toast.success .eng-toast-progress { background: #86efac; }
    #eng-toast.info    .eng-toast-progress { background: #93c5fd; }
    #eng-toast.warning .eng-toast-progress { background: #fcd34d; }

    /* ── RECEIPT PRINT ───────────────────────────────────────────── */
    @media print {
      /* Suppress entire page — receipt prints via printReceipt() in a new window */
      body * { display: none !important; }
    }

    /* ── Secret coupon modal ─────────────────────────────────── */
    #coupon-modal-overlay {
      display: none;
      position: fixed; inset: 0;
      background: rgba(0,0,0,.35);
      z-index: 2147483647;
      align-items: center;
      justify-content: center;
    }
    #coupon-modal-overlay.open { display: flex; }
    #coupon-modal-box {
      background: #fff;
      border-radius: 10px;
      padding: 20px;
      width: 300px;
      box-shadow: 0 8px 32px rgba(0,0,0,.18);
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    #coupon-modal-input {
      width: 100%;
      border: 1.5px solid #e5e7eb;
      border-radius: 7px;
      padding: 10px 13px;
      font-size: .95rem;
      font-family: 'Poppins', sans-serif;
      letter-spacing: 1px;
      outline: none;
      text-transform: uppercase;
      transition: border-color .2s;
    }
    #coupon-modal-input:focus { border-color: #0d6efd; }
    #coupon-modal-ok {
      width: 100%;
      padding: 10px;
      background: #0d6efd;
      color: #fff;
      border: none;
      border-radius: 7px;
      font-size: .9rem;
      font-weight: 600;
      cursor: pointer;
      font-family: 'Poppins', sans-serif;
      transition: background .15s;
    }
    #coupon-modal-ok:hover { background: #0b5ed7; }

    /* ── RESPONSIVE ──────────────────────────────────────────────── */
    @media (max-width: 576px) {
      .eng-steps::before { width: 60%; left: 20%; }
      .eng-form-body { padding: 16px; }
    }