/* ─── OVERLAY ───────────────────────────────────────────── */
  #infosecModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(4, 8, 40, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: overlayFadeIn 0.3s ease forwards;
  }
  #infosecModal.active { display: flex; }

  @keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* ─── MODAL CARD ────────────────────────────────────────── */
  .modal-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: linear-gradient(145deg, #0d1440 0%, #111a4f 60%, #0d1440 100%);
    border: 1px solid rgba(74, 144, 226, 0.35);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
      0 0 0 1px rgba(74,144,226,0.12),
      0 30px 80px rgba(0,0,0,0.6),
      0 0 60px rgba(74,144,226,0.08) inset;
    animation: cardSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  @keyframes cardSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* top glow bar */
  .modal-card::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #4a90e2 40%, #7ab8f5 60%, transparent 100%);
  }

  /* ─── HEADER ────────────────────────────────────────────── */
  .modal-header {
    padding: 28px 32px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }

  .modal-icon {
    width: 52px; height: 52px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(74,144,226,0.25), rgba(74,144,226,0.08));
    border: 1px solid rgba(74,144,226,0.4);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
  }

  .modal-titles h2 {
    font-size: 20px;
    font-weight: 700;
    color: #e8f0fe;
    line-height: 1.25;
    letter-spacing: -0.3px;
  }
  .modal-titles p {
    margin-top: 5px;
    font-size: 13.5px;
    color: rgba(180,200,240,0.7);
    line-height: 1.5;
  }

  /* close button */
  .modal-close {
    position: absolute;
    top: 16px; right: 18px;
    width: 32px; height: 32px;
    border: 1px solid rgba(74,144,226,0.3);
    background: rgba(74,144,226,0.08);
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: rgba(180,200,240,0.6);
    font-size: 16px;
    transition: all 0.2s;
    line-height: 1;
  }
  .modal-close:hover {
    background: rgba(74,144,226,0.2);
    color: #fff;
    border-color: rgba(74,144,226,0.6);
  }

  /* ─── BODY / FORM ───────────────────────────────────────── */
  .modal-body {
    padding: 0 32px 32px;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(160,185,240,0.9);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 7px;
  }

  .form-group label span.req {
    color: #4a90e2;
    margin-left: 2px;
  }

  .form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(74,144,226,0.22);
    border-radius: 10px;
    color: #775ba3;
    font-size: 14.5px;
    outline: none;
    transition: all 0.25s;
  }
  .form-group input::placeholder { color: rgba(180,200,240,0.35); }
  .form-group input:focus {
    border-color: #4a90e2;
    background: rgba(74,144,226,0.07);
    box-shadow: 0 0 0 3px rgba(74,144,226,0.15);
  }
  .form-group input.error { border-color: #e05c5c; box-shadow: 0 0 0 3px rgba(224,92,92,0.15); }

  .error-msg {
    display: none;
    font-size: 11.5px;
    color: #e07575;
    margin-top: 5px;
  }

  /* ─── SUBMIT BUTTON ─────────────────────────────────────── */
  .btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563c9, #4a90e2);
    border: none;
    border-radius: 11px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    margin-top: 6px;
    box-shadow: 0 4px 20px rgba(74,144,226,0.3);
  }
  .btn-submit:hover {
    background: linear-gradient(135deg, #1d56b8, #3a80d2);
    box-shadow: 0 6px 28px rgba(74,144,226,0.45);
    transform: translateY(-1px);
  }
  .btn-submit:active { transform: translateY(0); }

  /* shimmer effect */
  .btn-submit::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 50%; height: 200%;
    background: rgba(255,255,255,0.12);
    transform: skewX(-20deg);
    transition: left 0.5s;
  }
  .btn-submit:hover::after { left: 130%; }

  /* loading state */
  .btn-submit .btn-text { display: inline; }
  .btn-submit .btn-spinner { display: none; }
  .btn-submit.loading-mail .btn-text { display: none; }
  .btn-submit.loading-mail .btn-spinner { display: inline; }

  /* ─── SUCCESS STATE ─────────────────────────────────────── */
  .success-state {
    display: none;
    text-align: center;
    padding: 20px 0 10px;
    animation: fadeIn 0.5s ease forwards;
  }
  .success-state.active { display: block; }

  @keyframes fadeIn { from { opacity:0; transform:scale(0.9); } to { opacity:1; transform:scale(1); } }

  .success-icon {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, rgba(74,226,144,0.2), rgba(74,226,144,0.05));
    border: 2px solid rgba(74,226,144,0.5);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin: 0 auto 18px;
    animation: successPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.1s both;
  }

  @keyframes successPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
  }

  .success-state h3 {
    font-size: 19px; font-weight: 700;
    color: #e8f0fe;
    margin-bottom: 10px;
  }
  .success-state p {
    font-size: 14px;
    color: rgba(180,200,240,0.7);
    line-height: 1.6;
    max-width: 340px;
    margin: 0 auto;
  }
  .success-state .download-note {
    display: inline-block;
    margin-top: 18px;
    padding: 9px 20px;
    background: rgba(74,226,144,0.1);
    border: 1px solid rgba(74,226,144,0.3);
    border-radius: 8px;
    color: #7aedba;
    font-size: 13px;
    font-weight: 600;
  }

  /* ─── PRIVACY NOTE ──────────────────────────────────────── */
  .privacy-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    color: rgba(140,160,210,0.55);
    font-size: 11.5px;
  }
  .privacy-note svg { flex-shrink: 0; }