@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700");

/* ============== Container ============== */
.gl-em-card{
  background:#fff;
  border-radius:14px;
  padding:32px;
  max-width:560px;
  margin:0 auto;
  font-family: Roboto, Arial, sans-serif;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

/* ============== Steps ============== */
.gl-em-step{display:none;}
.gl-em-step.active{display:block;}
.gl-em-title{
  font-size:18px;
  font-weight:700;
  text-transform:uppercase;
  color:#000;
}
.gl-em-steps{
  font-size:14px;
  color:#6b7280;
  margin-top:4px;
}

/* ============== Grid ============== */
.gl-em-grid{display:flex;flex-wrap:wrap;margin:-8px;}
.gl-em-col-12{flex:0 0 100%;max-width:100%;padding:8px;box-sizing:border-box;}
.gl-em-col-6{flex:0 0 50%;max-width:50%;padding:8px;box-sizing:border-box;}
@media(max-width:640px){
  .gl-em-col-6{flex:0 0 100%;max-width:100%;}
}
.gl-em-mt-16{margin-top:16px;}
.gl-em-mt-24{margin-top:24px;}

/* ============== Controls ============== */
.gl-em-control{position:relative;width:100%;margin-top:16px;}
.gl-em-input-wrap{
  height:45px;
  border:1px solid #cfcfcf;
  border-radius:10px;
  display:flex;
  align-items:center;
  padding-right:12px;
}
.gl-em-input{
  width:100%;
  border:none;
  outline:none;
  padding:18px 14px;
  font-size:15px;
  background:transparent;
}
.gl-em-label{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:15px;
  color:#6b7280;
  background:#fff;
  padding:0 6px;
  pointer-events:none;
  transition:.2s ease;
}
.gl-em-control.focused .gl-em-label,
.gl-em-control.filled .gl-em-label{
  top:-8px;
  font-size:12px;
  color:#111;
}

/* select caret */
.gl-em-input-wrap select{appearance:none;-webkit-appearance:none;cursor:pointer;}
.gl-em-select-caret{
  width:10px;height:10px;
  border-right:2px solid #111;
  border-bottom:2px solid #111;
  transform: rotate(45deg);
  margin-right:6px;
}

/* phone */
.gl-em-phone{gap:10px;padding-left:12px;}
.gl-em-flag{
  width:18px;height:12px;border-radius:2px;
  background: linear-gradient(90deg,#0a7b3e 0 40%, #c4002b 40% 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

/* ============== Buttons ============== */
.gl-em-btn{
  width:100%;
  height:48px;
  background:#111;
  color:#fff;
  border:none;
  border-radius:14px;
  font-weight:700;
  font-size:16px;
  cursor:pointer;
  letter-spacing:.02em;
}
.gl-em-btn:hover{background:#000;}
.gl-em-btn:disabled{opacity:.6;cursor:not-allowed;}

/* back */
.gl-em-step-header{
  display:grid;
  grid-template-columns:40px 1fr;
  align-items:center;
  margin-bottom:12px;
}
.gl-em-step-header.centered{
  grid-template-columns:1fr 40px 1fr;
}
.gl-em-back{
  width:36px;height:36px;border:none;background:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.gl-em-back svg{width:22px;height:22px;fill:#111;}

/* ============== Chips ============== */
.gl-em-chips{margin-top:10px;}
.gl-em-chip-wrap{padding:8px;box-sizing:border-box;flex:0 0 33.3333%;max-width:33.3333%;display:flex;}
@media(max-width:768px){.gl-em-chip-wrap{flex:0 0 50%;max-width:50%;}}
@media(max-width:480px){.gl-em-chip-wrap{flex:0 0 100%;max-width:100%;}}
.gl-em-chip{
  width:100%;
  height:36px;
  border:none;
  border-radius:999px;
  background:#e0e0e0;
  color:rgba(0,0,0,.87);
  font-weight:500;
  display:flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  cursor:pointer;
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.gl-em-chip:hover{background:#d8d8d8;}
.gl-em-chip.selected{background:#111;color:#fff;}

/* ============== Radio ============== */
.gl-em-fieldset{border:0;padding:0;margin:0;}
.gl-em-fieldset legend{font-weight:600;margin-bottom:8px;}
.gl-em-radio-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
@media(max-width:640px){.gl-em-radio-grid{grid-template-columns:1fr;}}
.gl-em-radio{display:flex;align-items:center;gap:10px;cursor:pointer;}
.gl-em-radio input{
  width:22px;height:22px;border:2px solid #000;border-radius:50%;
  appearance:none;display:grid;place-content:center;
}
.gl-em-radio input::before{
  content:"";
  width:10px;height:10px;border-radius:50%;
  background:#000;transform:scale(0);transition:transform .15s ease-in-out;
}
.gl-em-radio input:checked::before{transform:scale(1);}

/* ============== Success ============== */
.gl-em-success{margin-top:18px;text-align:center;}
.gl-em-success-title{font-size:18px;font-weight:800;text-transform:uppercase;}
.gl-em-success-msg{font-size:16px;margin-top:10px;color:#111;}

/* ============== Toast / validation ============== */
.gl-em-toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  background:#111;
  color:#fff;
  padding:12px 14px;
  border-radius:12px;
  font-size:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  z-index:99999;
  max-width:min(92vw, 520px);
}
.gl-em-invalid .gl-em-input-wrap{border-color:#e11d48;}
.gl-em-invalid .gl-em-label{color:#e11d48;}
