/* The Tutor Hub – registration form */

.tth-reg{
  --navy:#16337f;--navy-dark:#0c1f55;--gold:#f6b200;--gold-dark:#d99700;--text:#4b5675;--err:#d93025;
  font-family:'Poppins',sans-serif;color:var(--text);max-width:900px;margin:0 auto;
  background:#fff;border-radius:24px;padding:40px;
  box-shadow:0 24px 60px rgba(22,51,127,.14);border:1px solid #e8eefb;position:relative;box-sizing:border-box;
}
.tth-reg *{box-sizing:border-box}
.tth-reg::before{
  content:"";position:absolute;left:40px;right:40px;top:-1px;height:5px;border-radius:0 0 8px 8px;
  background:linear-gradient(90deg,var(--navy),var(--gold));
}
.tth-reg-head{text-align:center;margin-bottom:28px}
.tth-reg-head h2{font-family:inherit;font-size:clamp(24px,3.4vw,34px);font-weight:800;color:var(--navy-dark);margin:0 0 8px}
.tth-reg-head p{margin:0;font-size:15px}

/* notices */
.tth-notice{border-radius:14px;padding:16px 20px;margin-bottom:24px;font-size:15px;line-height:1.6}
.tth-notice strong{display:block;font-size:17px;margin-bottom:2px}
.tth-notice.ok{background:#e8f8ee;border:1px solid #b7e6c7;color:#14532d}
.tth-notice.bad{background:#fdecea;border:1px solid #f5c2bd;color:#7a1c14}

/* sections */
.tth-sec{border:none;margin:0 0 26px;padding:22px;background:#f7f9ff;border-radius:18px;border:1px solid #e8eefb}
.tth-sec legend{
  font-family:inherit;font-size:17px;font-weight:700;color:var(--navy-dark);
  display:flex;align-items:center;gap:10px;padding:0 8px;float:none;width:auto;margin:0 0 0 -8px;
}
.tth-sec legend i{
  font-style:normal;width:28px;height:28px;border-radius:50%;background:var(--navy);color:#fff;
  display:inline-flex;align-items:center;justify-content:center;font-size:14px;
  box-shadow:0 0 0 4px rgba(246,178,0,.35);
}
.tth-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;margin-top:14px}
.tth-f{display:flex;flex-direction:column;gap:6px;min-width:0}
.tth-f.full{grid-column:1/-1}
.tth-f > label,.tth-group-title{font-size:13.5px;font-weight:600;color:var(--navy-dark)}
.tth-f label b{color:var(--err)}
.tth-f label small{font-weight:400;color:#8a94b0}

.tth-reg input[type=text],.tth-reg input[type=email],.tth-reg input[type=tel],.tth-reg input[type=date],
.tth-reg input[type=number],.tth-reg select,.tth-reg textarea{
  width:100%;border:1.5px solid #dfe6f5;border-radius:12px;background:#fff;padding:0 14px;height:48px;
  font-family:inherit;font-size:14.5px;color:var(--navy-dark);transition:.2s;margin:0;box-shadow:none;
}
.tth-reg textarea{height:auto;padding:12px 14px;resize:vertical}
.tth-reg input[type=file]{font-size:13.5px;padding:10px;border:1.5px dashed #c5d1ee;border-radius:12px;background:#fff;width:100%}
.tth-reg input:focus,.tth-reg select:focus,.tth-reg textarea:focus{
  outline:none;border-color:var(--gold);box-shadow:0 0 0 4px rgba(246,178,0,.22);
}
.tth-reg input[readonly]{background:#f1f4fb}

.tth-f.has-err input,.tth-f.has-err select,.tth-f.has-err textarea{border-color:var(--err);background:#fff8f7}
.tth-err{color:var(--err);font-size:12.5px;font-weight:500}

.tth-inline{display:flex;align-items:flex-start;gap:8px;font-size:13px;font-weight:400;color:var(--text);cursor:pointer;line-height:1.5}
.tth-inline input{margin-top:3px;accent-color:var(--navy)}

/* chips */
.tth-chips{display:flex;flex-wrap:wrap;gap:9px}
.tth-chip{cursor:pointer;position:relative}
.tth-chip input{position:absolute;opacity:0;pointer-events:none}
.tth-chip span{
  display:inline-block;padding:9px 16px;border-radius:50px;border:1.5px solid #dfe6f5;background:#fff;
  font-size:13.5px;font-weight:500;color:var(--navy-dark);transition:.2s;user-select:none;
}
.tth-chip:hover span{border-color:var(--navy)}
.tth-chip input:checked + span{background:var(--navy);border-color:var(--navy);color:#fff;box-shadow:0 6px 14px rgba(22,51,127,.25)}
.tth-chip input:checked + span::before{content:"✓ ";color:var(--gold)}
.tth-chip input:focus-visible + span{outline:3px solid var(--gold);outline-offset:2px}
.tth-group{margin-top:12px}
.tth-group-title{display:block;margin-bottom:8px;color:var(--gold-dark)}

/* consent + submit */
.tth-consent{margin:6px 0 20px}
.tth-consent a{color:var(--navy);font-weight:600}
.tth-submit{
  width:100%;height:58px;border:none;border-radius:14px;cursor:pointer;font-family:inherit;
  font-size:17px;font-weight:700;color:var(--navy-dark);
  background:linear-gradient(135deg,var(--gold),#ffcd3c);
  box-shadow:0 14px 30px rgba(246,178,0,.45);transition:.25s;
}
.tth-submit:hover{transform:translateY(-3px);box-shadow:0 18px 36px rgba(246,178,0,.55)}
.tth-submit:disabled{opacity:.7;cursor:wait;transform:none}
.tth-submit.is-busy::after{content:" …"}
.tth-note{text-align:center;font-size:12.5px;color:#8a94b0;margin:14px 0 0}

/* honeypot */
.tth-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

@media(max-width:700px){
  .tth-reg{padding:26px 18px;border-radius:18px}
  .tth-reg::before{left:18px;right:18px}
  .tth-grid{grid-template-columns:1fr}
  .tth-sec{padding:18px 14px}
}
