/* FOURMI THINK — Professor: "Novo aluno" premium (teacher-student-form.js). Mesmo visual da Nova aula: topo verde,
   cartões numerados com aro dourado, botão dourado fixo no rodapé. Tudo preso a #client-form.tsf (só Professor). */
body[data-profession="teacher"] #client-dialog.tsf-dialog{background:#f7f3ea}
body[data-profession="teacher"] #client-form.tsf{display:flex;flex-direction:column;padding-bottom:0;background:#f7f3ea;color:var(--th-ink,#13261f)}
body[data-profession="teacher"] #client-form.tsf>.dialog-heading{order:-1;position:relative;flex-wrap:wrap;margin:-23px -23px 0;padding:20px 22px 40px;overflow:hidden;border:0;border-radius:22px 22px 0 0;background:linear-gradient(180deg,#063f30,#03281f);color:#fffdf8}
body[data-profession="teacher"] #client-form.tsf>.dialog-heading::before{content:"";position:absolute;inset:0;background:radial-gradient(90% 90% at 85% -10%,rgba(212,168,83,.25),transparent 60%);pointer-events:none}
body[data-profession="teacher"] #client-form.tsf>.dialog-heading>*{position:relative}
body[data-profession="teacher"] #client-form.tsf>.dialog-heading>div{flex:1;min-width:0}
body[data-profession="teacher"] #client-form.tsf>.dialog-heading .eyebrow{margin:0;font-size:0;letter-spacing:.2em}
body[data-profession="teacher"] #client-form.tsf>.dialog-heading .eyebrow::after{content:attr(data-tsf-text);color:#e8cf95;font-size:.72rem;font-weight:800;text-transform:uppercase}
body[data-profession="teacher"] #client-form.tsf>.dialog-heading h2{margin:8px 0 2px;font-size:0}
body[data-profession="teacher"] #client-form.tsf>.dialog-heading h2::after{content:attr(data-tsf-text);color:#fffdf8;font-family:Literata,Georgia,"Iowan Old Style",serif;font-size:1.85rem;font-weight:700;letter-spacing:-.02em}
body[data-profession="teacher"] #client-form.tsf>.dialog-heading .close-button{width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fffdf8;box-shadow:none}
body[data-profession="teacher"] #client-form.tsf>.dialog-heading .close-button:focus-visible{outline:3px solid var(--th-gold,#d4a853);outline-offset:2px}
.tsf-sub{margin:0;color:rgba(255,253,248,.74);font-size:.9rem}
body:not([data-profession="teacher"]) :is(.tsf-sub,.tsf-card,.tsf-foot){display:none}

body[data-profession="teacher"] #client-form.tsf>.tsf-card{display:flex;flex-direction:column;margin:0 -9px 12px;padding:14px 14px 16px;border:1px solid #e9e1cf;border-radius:20px;background:var(--th-paper,#fffdf8);box-shadow:0 1px 2px rgba(19,38,31,.04)}
body[data-profession="teacher"] #client-form.tsf>.tsf-card[data-card="who"]{position:relative;margin-top:-24px}
.tsf-head{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.tsf-head>span{display:grid;place-items:center;flex:none;width:24px;height:24px;border:1.5px solid var(--th-gold,#d4a853);border-radius:50%;color:#8a6a24;font-size:.75rem;font-weight:850}
.tsf-head b{font-size:.98rem;letter-spacing:-.01em}
.tsf-head small{margin-left:-4px;color:var(--th-muted,#5d6b65);font-size:.82rem;font-weight:600}
.tsf-hint{margin:8px 0 0;color:var(--th-muted,#5d6b65);font-size:.8rem;line-height:1.45}
.tsf-hint[hidden],.tsf-hint:empty{display:none}

/* 1 · Aluno: foto ao lado do nome */
.tsf-card[data-card="who"] .client-photo-field{display:flex;align-items:center;gap:12px;margin:0 0 6px;padding:0;border:0;background:none}
.tsf-card[data-card="who"] .client-photo-preview{width:64px;height:64px;flex:none;border:1.5px dashed var(--th-gold,#d4a853);background:#fbf6ea;color:#a87a12}
.tsf-card[data-card="who"] .photo-upload-button{min-height:40px;padding:0 14px;border:1px solid #e9e1cf;border-radius:999px;background:#fff;color:#0b6a4b;font-size:.86rem;font-weight:800}
.tsf-card[data-card="who"] .client-photo-field .field-help{margin:4px 0 0;font-size:.75rem}
body[data-profession="teacher"] #client-form.tsf :is(label[data-tsf-text]){font-size:0}
body[data-profession="teacher"] #client-form.tsf :is(label[data-tsf-text])::after{content:attr(data-tsf-text);font-size:.75rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--th-muted,#5d6b65)}
body[data-profession="teacher"] #client-form.tsf .tsf-card :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea){border-radius:14px;background:#fff}
.tsf-card[data-card="who"]>div{margin-top:4px}

/* 2 · Como você cobra? */
.tsf-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border-radius:14px;background:#efe9dc}
.tsf-seg button{min-width:0;min-height:44px;padding:0 4px;border:0;border-radius:11px;background:transparent;color:var(--th-muted,#5d6b65);font:inherit;font-size:.82rem;font-weight:800;line-height:1.15;cursor:pointer}
.tsf-seg button[hidden]{display:none}
.tsf-seg:has(button[hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}
.tsf-seg button[aria-pressed="true"]{background:#fff;color:var(--th-ink,#13261f);box-shadow:0 1px 3px rgba(19,38,31,.12)}
.tsf-seg button:focus-visible,.tsf-more:focus-visible{outline:3px solid var(--th-gold,#d4a853);outline-offset:2px}
.tsf-price{margin-top:12px}
.tsf-price[hidden]{display:none}
.tsf-price>label{display:block;margin:0 0 6px;color:var(--th-muted,#5d6b65);font-size:.75rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.tsf-money input{font-family:Literata,Georgia,serif;font-size:1.3rem;font-weight:700}

/* Mais dados */
body[data-profession="teacher"] #client-form.tsf>.tsf-card[data-card="more"]{padding:0}
.tsf-more{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:56px;padding:0 16px;border:0;border-radius:20px;background:transparent;color:var(--th-ink,#13261f);font:inherit;text-align:left;cursor:pointer}
.tsf-more b{font-size:.95rem}
.tsf-more small{color:var(--th-muted,#5d6b65);font-size:.8rem}
.tsf-more svg{width:18px;height:18px;flex:none;fill:none;stroke:#0b6a4b;stroke-width:2;transition:transform 180ms var(--th-ease,ease)}
.tsf-card.is-open .tsf-more svg{transform:rotate(180deg)}
.tsf-more-body{display:flex;flex-direction:column;padding:0 14px 16px}
.tsf-more-body[hidden]{display:none}
.tsf-more-body .teacher-agenda-personalization{margin:0 0 10px;padding:12px;border-radius:16px;background:#f8f5ee}

/* Rodapé */
body[data-profession="teacher"] #client-form.tsf>.tsf-foot{order:20;position:sticky;bottom:0;z-index:3;margin:10px -23px 0;padding:12px 16px calc(16px + env(safe-area-inset-bottom));border-top:1px solid #e9e1cf;background:#fffdf8;box-shadow:0 -10px 24px rgba(19,38,31,.06)}
body[data-profession="teacher"] #client-form.tsf .tsf-foot>.primary-button{width:100%;min-height:54px;border:0;border-radius:16px;background:linear-gradient(180deg,#f3c84d,#e9b730);color:var(--th-deep,#03241d);font-size:1.05rem;box-shadow:0 8px 18px -10px rgba(150,110,20,.8)}
body[data-profession="teacher"] #client-form.tsf .tsf-foot>.primary-button[data-tsf-label]{font-size:0}
body[data-profession="teacher"] #client-form.tsf .tsf-foot>.primary-button[data-tsf-label]::after{content:attr(data-tsf-label);font-size:1.05rem;font-weight:850}
body[data-profession="teacher"] #client-form.tsf .tsf-foot>.form-error:empty{display:none}
@media (prefers-reduced-motion:reduce){.tsf-more svg{transition:none}}
.tsf-card[data-card="who"] .photo-upload-button{display:inline-flex;align-items:center;justify-content:center}
.tsf-money{display:flex;align-items:center}
.tsf-money>span{align-self:center}
body[data-profession="teacher"] #client-form.tsf .tsf-more-body>label,body[data-profession="teacher"] #client-form.tsf .tsf-more-body>div>label,body[data-profession="teacher"] #client-form.tsf .tsf-more-body .communication-preferences>label:first-child{color:var(--th-muted,#5d6b65);font-size:.75rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
