/* =====================================================================
   Sweet T Salon — Employment application form
   Scoped to .stf-form so it never leaks into Elementor's styles.
   Colors/fonts pull from the site's Elementor globals with fallbacks.
   ===================================================================== */

.stf-form {
  --stf-primary: var(--e-global-color-primary, #4DC2B0);
  --stf-deep:    var(--e-global-color-9aba6c4, #2D9585);
  --stf-white:   var(--e-global-color-46027ed, #ffffff);
  --stf-text:    var(--e-global-color-text, #555555);
  --stf-border:  #d9dede;
  --stf-error:   #c0392b;
  --stf-sans:    "Roboto", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --stf-serif:   "Prata", Georgia, serif;

  font-family: var(--stf-sans);
  color: var(--stf-text);
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
}

/* ---------- Section headings (mirror the email's section breaks) ---------- */
.stf-section {
  margin: 2.6rem 0 1.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--stf-border);
}
.stf-form > .stf-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.stf-section h3 {
  font-family: var(--stf-serif);
  font-weight: 400;
  color: var(--stf-deep);
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.3;
}

/* ---------- Rows / fields ---------- */
.stf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.stf-field { margin-bottom: 1.15rem; }
.stf-field.stf-full { grid-column: 1 / -1; }

.stf-field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: #3a3a3a;
  margin-bottom: 0.45rem;
}
.stf-req { color: var(--stf-error); margin-left: 2px; }
.stf-hint { display: block; font-weight: 400; font-size: 0.8rem; color: #8a8a8a; margin-top: 0.35rem; }

.stf-field input[type="text"],
.stf-field input[type="email"],
.stf-field input[type="tel"],
.stf-field select,
.stf-field textarea {
  width: 100%;
  font-family: var(--stf-sans);
  font-size: 0.95rem;
  color: var(--stf-text);
  background: #fff;
  border: 1px solid var(--stf-border);
  border-radius: 3px;
  padding: 0.8rem 0.9rem;
  transition: border-color .18s ease, box-shadow .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.stf-field textarea { min-height: 120px; resize: vertical; }
.stf-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23878787' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.4rem;
}
.stf-field input:focus,
.stf-field select:focus,
.stf-field textarea:focus {
  outline: none;
  border-color: var(--stf-primary);
  box-shadow: 0 0 0 3px rgba(77,194,176,.18);
}
.stf-field input::placeholder,
.stf-field textarea::placeholder { color: #b3b3b3; }

/* ---------- Per-field errors ---------- */
.stf-field.stf-invalid input,
.stf-field.stf-invalid select,
.stf-field.stf-invalid textarea { border-color: var(--stf-error); }
.stf-error {
  display: none;
  color: var(--stf-error);
  font-size: 0.82rem;
  margin-top: 0.35rem;
}
.stf-field.stf-invalid .stf-error { display: block; }

/* ---------- File upload ---------- */
.stf-file { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.stf-file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.stf-file-btn {
  display: inline-block;
  font-family: var(--stf-sans);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--stf-deep);
  background: #fff;
  border: 1px solid var(--stf-primary);
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: all .18s ease;
}
.stf-file-btn:hover { background: var(--stf-primary); color: #fff; }
.stf-file input[type="file"]:focus-visible + .stf-file-btn {
  box-shadow: 0 0 0 3px rgba(77,194,176,.35);
}
.stf-file-name { font-size: 0.88rem; color: #777; }

/* ---------- Certify checkbox ---------- */
.stf-check { display: flex; align-items: flex-start; gap: 0.7rem; }
.stf-check input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 3px; flex: none;
  accent-color: var(--stf-primary); cursor: pointer;
}
.stf-check label { font-weight: 400; font-size: 0.9rem; margin: 0; cursor: pointer; }

/* ---------- Turnstile + submit ---------- */
.stf-turnstile { margin: 1.8rem 0 1.2rem; }
.stf-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }

.stf-submit {
  font-family: var(--stf-sans);
  background-color: var(--stf-primary);
  color: var(--stf-white);
  border: 1px solid var(--stf-primary);
  border-radius: 0;
  font-size: 0.8em;
  font-weight: normal;
  line-height: 1.1em;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  padding: 2em 4em;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.stf-submit:hover:not(:disabled),
.stf-submit:focus:not(:disabled) {
  background-color: var(--stf-white);
  color: var(--stf-deep);
  border-color: var(--stf-deep);
}
.stf-submit:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Status messages ---------- */
.stf-status { margin-top: 1.2rem; font-size: 0.95rem; }
.stf-status:empty { margin-top: 0; }
.stf-status.stf-ok {
  background: #eefaf7;
  border-left: 3px solid var(--stf-primary);
  color: var(--stf-deep);
  padding: 1rem 1.1rem;
}
.stf-status.stf-bad {
  background: #fdf0ee;
  border-left: 3px solid var(--stf-error);
  color: var(--stf-error);
  padding: 1rem 1.1rem;
}

/* ---------- Honeypot: off-screen, not display:none ---------- */
.stf-botcheck {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 834px) {
  .stf-submit { padding: 1.5em 2.5em; }
}
@media (max-width: 600px) {
  .stf-row { grid-template-columns: 1fr; }
  .stf-submit { width: 100%; }
}
