:root{
    --bg: #13131a;
    --panel: rgba(29,29,29,.90);
    --text: #ffffff;
    --muted: rgba(255,255,255,.70);
    --inputBg: #131313;
  
 
    --radius: 10px;
    --btnRadius: 15px;
  }
  
  *{ box-sizing:border-box; }
  html,body{ height:100%; }
  
  body{
    margin:0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  }
  
  /* layout */
  .page{
    min-height:100%;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;

    padding: clamp(14px, 3vw, 28px);
    overflow:hidden;
  }
  

  .bg{
    position:absolute; inset:0;
    background-image: url("assets/bg.png");
    background-size: cover;    
    background-repeat:no-repeat;
    background-position: 52% 52%;
    transform: scale(1.02);       
  }
  

  .overlay{
    position:absolute; inset:0;
    background: rgba(0,0,0,.80);
  }
  
  .modal{
    position: relative;
  
 
    width: min(340px, 100%);
  
 
    min-height: clamp(520px, 70vh, 680px);
  
    max-height: calc(100dvh - 2 * clamp(14px, 3vw, 28px));
  
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 0 50px rgba(0,0,0,.10);
    overflow: hidden;
  }
  

  @media (min-width: 900px){
    .modal{
      width: min(460px, 100%);
      min-height: clamp(520px, 62vh, 620px);
    }
  }
  
  
  .form{
    width: 100%;
  }
  
  
  
  
  
  .modal__inner{
    padding: clamp(18px, 3.2vw, 30px);
    padding-bottom: clamp(40px, 6vw, 70px); 
    max-height: inherit;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  
  h1{
    margin: 0;
    text-align:center;
    font-size: clamp(26px, 3.2vw, 36px);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: .2px;
  }
  .nowrap{ white-space:nowrap; }
  
  .subtitle{
    margin: clamp(10px, 1.4vw, 16px) 0 clamp(18px, 2.6vw, 28px);
    text-align:center;
    font-size: clamp(12px, 1.6vw, 18px);
    line-height: 1.25;
    font-weight: 200;
    color: var(--muted);
  }
  
  .form{
    width: min(460px, 100%);
    margin: 0 auto;
    display:grid;
    gap: clamp(12px, 2.2vw, 22px);
  }
  
  .field{ display:grid; gap: 10px; }
  
  .label{
    font-size: clamp(12px, 1.3vw, 16px);
    font-weight: 400;
    color: #fff;
  }
  
  input, select{
    width: 100%;
    height: clamp(44px, 5.3vw, 55px);
    border: 0;
    border-radius: var(--radius);
    padding: 0 16px;
    background: var(--inputBg);
    color: #fff;
    font-size: clamp(12px, 1.4vw, 17px);
    font-weight: 300;
    outline: none;
  }
  
  input::placeholder{
    color: rgba(255,255,255,.35);
  }
  
  .selectWrap{ position: relative; }
  select{
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    cursor: pointer;
  }
  .selectChevron{
    position:absolute;
    right: 16px;
    top: 50%;
    width: 0;
    height: 0;
    transform: translateY(-30%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid rgba(255,255,255,.65);
    pointer-events:none;
  }
  
  .checkbox{
    display:flex;
    align-items:center;
    gap: 10px;
    color: rgba(255,255,255,.75);
    font-size: clamp(12px, 1.3vw, 16px);
    font-weight: 400;
    margin-top: 2px;
  }
  
  .checkbox input{
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #ffffff;
  }
 
  .btn{
    width: min(450px, 100%);
    height: clamp(44px, 5.3vw, 55px);
    margin: clamp(14px, 2.8vw, 28px) auto 0;
    border: 0;
    border-radius: var(--btnRadius);
    font-family: inherit;
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 700;
    color: #232323;
    cursor: pointer;
    background: linear-gradient(
      0.003turn,
      rgba(255,213,72,1) 0%,
      rgba(255,196,0,1) 77%,
      rgba(255,255,255,1) 100%
    );
  }
  
  .btn:active{ transform: translateY(1px); }
  
  .msg{
    min-height: 18px;
    margin: 12px 0 0;
    text-align:center;
    color: var(--muted);
  }
  
  @media (max-height: 620px){
    .modal__inner{ padding: 16px; }
    .subtitle{ margin-bottom: 16px; }
    .btn{ margin-top: 16px; }
  }
  
.bg,
.overlay {
  pointer-events: none;
}
