 :root{
    --modal-bg: rgba(0,0,0,.55);
    --card-bg: #fff;
    --text: #111;
    --muted: #666;
    --border: #e8e8e8;
    --radius: 16px;
  }

  /* Prevent scroll when modal open */
  body.modal-open { overflow: hidden; }

  .modal { position: fixed; inset: 0; display: none; z-index: 9999; }
  .modal.is-open { display: block; }

  .modal__overlay{
    position: absolute; inset: 0; background: var(--modal-bg);
    backdrop-filter: blur(2px);
  }
    .modal form label {
        line-height: 20px;
    }
    label.form__check {
        margin-bottom: 30px;
        margin-top: 10px;
    }
  .modal__card{
    position: relative;
    width: min(800px, calc(100% - 32px));
    margin: 8vh auto 0 auto;
    background: var(--card-bg);
    color: var(--text);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    padding: 40px;
  }

  .modal__close{
    position: absolute;
    top: 0;
    right: 12px;
    width: 38px; height: 38px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .modal__title{ margin: 6px 0 4px; font-size: 22px; }
  .modal__subtitle{ margin: 0 0 16px; color: var(--muted); }

  .form__row{ margin-bottom: 12px; }
  .form__input{
    width: 100%;
    padding: 12px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    outline: none;
  }
  .form__input:focus{ border-color: #111; }

  .form__check{
    display:flex; gap:10px; align-items:flex-start;
    font-size: 13px; color: var(--muted);
  }
  .form__check input{ margin-top: 2px; }

  .form__btn{
    width: 100%;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
  }
  .form__btn:hover{ opacity: .92; }

  .form__fineprint{
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
  }

  @media (max-width: 420px){
    .modal__card{ margin-top: 6vh; padding: 18px; }
  }