/* ===========================================
   eMS Application Form Styles (CWF Version)
   =========================================== */

.ems-app-form{
  max-width: 900px;
  margin: 24px auto;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(83,225,255,.10);
  background:
    linear-gradient(180deg, rgba(8,14,22,.94) 0%, rgba(10,17,26,.96) 100%);
  color: var(--cwf-text);
  font-family: var(--cwf-font-main);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.02) inset,
    0 16px 36px rgba(0,0,0,.38);
}

.ems-app-form h2,
.ems-app-form h3,
.ems-app-form h4{
  margin-top: 0;
  color: #fff;
  font-family: var(--cwf-font-alt);
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ems-app-form h3{
  font-size: 1.35rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.ems-app-form h4{
  font-size: 1.05rem;
  margin-top: 18px;
  margin-bottom: 10px;
  color: var(--cwf-orange-2);
}

.ems-app-form section{
  margin-bottom: 28px;
}

.form-row{
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-row label{
  margin-bottom: 7px;
  color: var(--cwf-cyan-2);
  font: 800 11px/1.2 var(--cwf-font-alt);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row input[type="url"],
.form-row input[type="date"],
.form-row select,
.form-row textarea{
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: #fff;
  font: 500 15px/1.4 var(--cwf-font-main);
  padding: 12px 14px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.01);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-row textarea{
  min-height: 120px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
  border-color: rgba(83,225,255,.26);
  box-shadow:
    0 0 0 1px rgba(83,225,255,.10),
    inset 0 0 0 1px rgba(255,255,255,.02);
  background: rgba(255,255,255,.05);
}

.form-row input::placeholder,
.form-row textarea::placeholder{
  color: #91a6ba;
}

.form-row select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.app-top-html,
.app-below-html{
  margin-bottom: 20px;
  color: #d7e2ec;
  font: 500 .98rem/1.75 var(--cwf-font-main);
}

.app-top-html p:last-child,
.app-below-html p:last-child{
  margin-bottom: 0;
}

.app-character-block{
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,.025) 0%, rgba(255,255,255,.015) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.01) inset;
}

.app-character-block h3{
  margin-top: 0;
  margin-bottom: 14px;
  padding-bottom: 0;
  border: none;
  font-size: 1.2rem;
  color: #fff;
}

.ems-app-form .required-star{
  color: #ff6b6b;
  margin-left: 4px;
}

.form-actions{
  text-align: center;
  margin-top: 34px;
}

.form-actions .btn,
.form-actions button,
.form-actions input[type="submit"]{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(83,225,255,.18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(57,215,255,.16) 0%, rgba(57,215,255,.07) 100%);
  color: #fff;
  font: 900 11px/1 var(--cwf-font-alt);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: .2s ease;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.02) inset,
    0 8px 18px rgba(0,0,0,.24);
}

.form-actions .btn:hover,
.form-actions button:hover,
.form-actions input[type="submit"]:hover{
  border-color: rgba(255,158,99,.24);
  background:
    linear-gradient(180deg, rgba(255,122,43,.18) 0%, rgba(255,122,43,.08) 100%);
  color: #fff;
  transform: translateY(-1px);
}

.form-actions .btn:disabled,
.form-actions button:disabled,
.form-actions input[type="submit"]:disabled{
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* Optional helper styling for grouped note boxes / descriptions */
.ems-app-form .form-note,
.ems-app-form .help-text,
.ems-app-form small{
  color: var(--cwf-muted);
  font-size: .9rem;
  line-height: 1.6;
}

/* Checkbox / radio support */
.form-row input[type="checkbox"],
.form-row input[type="radio"]{
  width: auto;
  margin-right: 8px;
  accent-color: var(--cwf-cyan);
}

@media (max-width: 640px){
  .ems-app-form{
    padding: 18px;
    border-radius: 14px;
  }

  .ems-app-form h3{
    font-size: 1.15rem;
  }

  .form-row input[type="text"],
  .form-row input[type="email"],
  .form-row input[type="password"],
  .form-row input[type="number"],
  .form-row input[type="url"],
  .form-row input[type="date"],
  .form-row select,
  .form-row textarea{
    padding: 11px 12px;
    font-size: 14px;
  }

  .form-actions .btn,
  .form-actions button,
  .form-actions input[type="submit"]{
    width: 100%;
  }
}