/*!
ELYSIANGO Atlas Forms
Enterprise Form System
*/

.atlas-form{
  display:grid;
  gap:20px;
}

.atlas-form-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:20px;
}

.atlas-field{display:flex;flex-direction:column;gap:8px}

.atlas-label{
  color:#f4d779;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.atlas-input,
.atlas-select,
.atlas-textarea{
  width:100%;
  border:1px solid rgba(244,215,121,.12);
  border-radius:16px;
  background:rgba(255,255,255,.04);
  color:#fff7e8;
  transition:.2s;
}

.atlas-input,
.atlas-select{
  height:48px;
  padding:0 14px;
}

.atlas-textarea{
  min-height:140px;
  padding:14px;
  resize:vertical;
}

.atlas-input:focus,
.atlas-select:focus,
.atlas-textarea:focus{
  outline:none;
  border-color:#f4d779;
  box-shadow:0 0 0 4px rgba(244,215,121,.08);
}

.atlas-help{
  font-size:12px;
  color:rgba(255,247,232,.60);
}

.atlas-error{
  color:#ffb8b8;
  font-size:12px;
}

.atlas-success{
  color:#b8fff1;
  font-size:12px;
}

.atlas-checkbox-group,
.atlas-radio-group{
  display:grid;
  gap:10px;
}

.atlas-checkbox-item,
.atlas-radio-item{
  display:flex;
  align-items:center;
  gap:10px;
}

.atlas-switch{
  position:relative;
  width:52px;
  height:30px;
  background:rgba(255,255,255,.10);
  border-radius:999px;
}

.atlas-switch::after{
  content:"";
  position:absolute;
  left:4px;
  top:4px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#fff;
  transition:.25s;
}

.atlas-switch.active{
  background:#006b5b;
}

.atlas-switch.active::after{
  transform:translateX(22px);
}

.atlas-upload{
  border:2px dashed rgba(244,215,121,.20);
  border-radius:22px;
  padding:40px;
  text-align:center;
  background:rgba(255,255,255,.03);
}

.atlas-upload:hover{
  border-color:#f4d779;
}

.atlas-upload-icon{
  font-size:40px;
  margin-bottom:10px;
}

.atlas-upload small{
  color:rgba(255,247,232,.60);
}

.atlas-progress{
  width:100%;
  height:10px;
  background:rgba(255,255,255,.08);
  border-radius:999px;
  overflow:hidden;
}

.atlas-progress-bar{
  height:100%;
  width:40%;
  background:linear-gradient(90deg,#f4d779,#006b5b);
}

.atlas-form-footer{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

.atlas-pill-input{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(244,215,121,.12);
  background:rgba(255,255,255,.04);
}

.atlas-pill{
  padding:8px 12px;
  border-radius:999px;
  background:rgba(244,215,121,.12);
  color:#f4d779;
  font-size:12px;
  font-weight:700;
}

.atlas-date,
.atlas-time{
  position:relative;
}

.atlas-inline{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.atlas-search-field{
  position:relative;
}

.atlas-search-field input{
  padding-left:42px;
}

.atlas-search-icon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  opacity:.55;
}

.atlas-step-form{
  display:flex;
  gap:10px;
  margin-bottom:20px;
}

.atlas-step-item{
  flex:1;
  padding:12px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  text-align:center;
  border:1px solid rgba(244,215,121,.08);
}

.atlas-step-item.active{
  border-color:#f4d779;
  background:rgba(244,215,121,.08);
}

.atlas-readonly{
  opacity:.75;
}

@media(max-width:768px){
  .atlas-form-footer{
    justify-content:stretch;
  }
  .atlas-form-footer>*{
    width:100%;
  }
}
