/* The Sunnah Hub forms. Colours come from the theme when it sets these variables. */
.tsh-reg,.tsh-signin,.tsh-ask,.tsh-account,.tsh-card{
	--ink:var(--tsh-ink,#12303F);--accent:var(--tsh-accent,#29BCD8);--accent-d:var(--tsh-accent-d,#0E7F9D);
	--soft:var(--tsh-soft,#F5FBFD);--line:var(--tsh-line,rgba(18,48,63,.14));--mut:var(--tsh-mut,rgba(18,48,63,.66));
	color:var(--ink);
}
.tsh-reg{max-width:680px;margin:0 auto}
.tsh-card{background:#fff;border:1px solid var(--line);border-top:6px solid var(--accent);border-radius:24px;padding:28px;box-shadow:0 24px 50px -40px rgba(18,48,63,.45)}
.tsh-signin{max-width:480px;margin:0 auto}
.tsh-title{font-size:30px;line-height:1.05;margin:0 0 8px}
.tsh-lead{color:var(--mut);margin:0 0 20px;font-size:16.5px}
.tsh-sub{margin:16px 0 0;font-size:15px;color:var(--mut);text-align:center}
.tsh-sub a,.tsh-link{color:var(--accent-d);font-weight:600;background:none;border:0;padding:0;font:inherit;font-weight:600;cursor:pointer;text-decoration:underline}

/* steps */
.tsh-steps{list-style:none;display:flex;gap:6px;margin:0 0 16px;padding:0;counter-reset:none}
.tsh-steps li{flex:1;display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;color:var(--mut);padding:0 0 10px;border-bottom:3px solid var(--line);white-space:nowrap;overflow:hidden}
.tsh-steps li span{flex:none;width:22px;height:22px;border-radius:50%;background:var(--line);display:grid;place-items:center;font-size:12px;color:var(--ink)}
.tsh-steps li.on{color:var(--ink);border-color:var(--accent)}
.tsh-steps li.on span{background:var(--ink);color:#fff}
.tsh-steps li.done{border-color:var(--accent)}
.tsh-steps li.done span{background:var(--accent);color:#fff}

/* fields */
.tsh-field{display:block;margin:0 0 16px}
.tsh-label{display:block;font-size:14px;font-weight:700;margin:0 0 7px}
.tsh-hint{display:block;font-size:13.5px;color:var(--mut);margin-top:6px}
.tsh-input{width:100%;min-height:52px;border:1.5px solid rgba(18,48,63,.2);border-radius:14px;padding:12px 14px;font:inherit;font-size:16px;color:var(--ink);background:#fff;-webkit-appearance:none;appearance:none}
select.tsh-input{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%2312303F' stroke-width='2'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:38px}
textarea.tsh-input{min-height:120px;resize:vertical;line-height:1.5}
.tsh-input:focus{outline:3px solid rgba(41,188,216,.35);border-color:var(--accent)}
.tsh-code{font-size:26px;letter-spacing:.35em;text-align:center;font-weight:700}
.tsh-phone{display:flex;gap:8px}
.tsh-phone select{flex:0 0 42%;min-width:0}
.tsh-phone .tsh-cc{flex:0 0 76px}
.tsh-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tsh-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}

/* segmented choice */
.tsh-seg{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tsh-seg input{position:absolute;opacity:0}
.tsh-seg span{display:grid;place-items:center;min-height:52px;border:1.5px solid rgba(18,48,63,.2);border-radius:999px;font-weight:700;cursor:pointer;background:#fff}
.tsh-seg input:checked+span{background:var(--ink);border-color:var(--ink);color:#fff}
.tsh-seg input:focus-visible+span{outline:3px solid rgba(41,188,216,.45)}

/* course picker */
.tsh-pick{border:1.5px solid rgba(18,48,63,.16);border-radius:18px;margin:0 0 12px;background:#fff;overflow:hidden}
.tsh-pick.on{border-color:var(--accent);background:#F0FAFC}
.tsh-pick.off{opacity:.6}
.tsh-pick-head{display:flex;gap:14px;align-items:flex-start;padding:16px;cursor:pointer}
.tsh-pick-head input{flex:none;width:24px;height:24px;margin:2px 0 0;accent-color:var(--ink)}
.tsh-pick-head b{display:block;font-size:18px;line-height:1.2}
.tsh-pick-head small{display:block;color:var(--mut);font-size:14.5px;margin-top:3px}
.tsh-pick-head em{display:block;font-style:normal;font-weight:700;color:var(--accent-d);font-size:14.5px;margin-top:4px}
.tsh-modes{padding:0 16px 16px;display:grid;gap:8px}
.tsh-mode{display:flex;align-items:center;gap:12px;border:1.5px solid rgba(18,48,63,.16);border-radius:14px;padding:12px 14px;background:#fff;cursor:pointer}
.tsh-mode input{flex:none;width:20px;height:20px;accent-color:var(--ink)}
.tsh-mode b{display:block;font-size:16px}
.tsh-mode small{display:block;color:var(--mut);font-size:14px}
.tsh-mode.off{background:transparent;border-style:dashed;cursor:default;color:var(--mut)}
.tsh-mode:has(input:checked){border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}

/* checkboxes */
.tsh-chk{display:flex;gap:12px;align-items:flex-start;margin:0 0 14px;font-size:16px;cursor:pointer}
.tsh-chk input{flex:none;width:22px;height:22px;margin-top:1px;accent-color:var(--ink)}

/* buttons */
.tsh-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:0 26px;border-radius:999px;border:1.5px solid var(--ink);background:var(--ink);color:#fff!important;font:inherit;font-weight:700;font-size:16px;text-decoration:none!important;cursor:pointer;transition:transform .15s,box-shadow .15s}
.tsh-btn svg{color:var(--accent)}
.tsh-btn:hover{transform:translateY(-1px);box-shadow:0 14px 26px -14px rgba(18,48,63,.6)}
.tsh-btn-line{background:#fff;color:var(--ink)!important;border-color:rgba(18,48,63,.2)}
.tsh-btn-sm{min-height:44px;font-size:15px;padding:0 20px}
.tsh-btn-full{width:100%}
.tsh-btn[disabled]{opacity:.6;cursor:wait;transform:none}
.tsh-btn.is-busy::after{content:"";width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;animation:tsh-spin .7s linear infinite}
@keyframes tsh-spin{to{transform:rotate(360deg)}}
.tsh-foot{display:flex;gap:10px;justify-content:space-between;margin-top:6px}
.tsh-foot .tsh-btn:last-child{flex:1}
.tsh-foot .tsh-btn-line{flex:0 0 auto}

/* messages */
.tsh-err{color:#B4432E;font-weight:600;font-size:15px;margin:0 0 12px;min-height:0}
.tsh-err:empty{display:none}
.tsh-note{background:#E9F7FA;border:1px solid var(--accent);border-radius:14px;padding:12px 14px;font-size:15px;margin:0 0 16px}

/* summary */
.tsh-sum{background:var(--soft);border:1px solid var(--line);border-radius:18px;padding:4px 16px;margin:0 0 16px}
.tsh-sum-row{display:grid;gap:2px;padding:14px 0;border-top:1px solid var(--line);font-size:15px}
.tsh-sum-row:first-child{border-top:0}
.tsh-sum-row b{font-size:17px}
.tsh-sum-row span{color:var(--mut)}
.tsh-sum-row em{font-style:normal;font-weight:700;color:var(--accent-d)}
.tsh-pol{margin:0 0 16px}
.tsh-pol details{border-top:1px solid var(--line);padding:12px 0}
.tsh-pol details:last-child{border-bottom:1px solid var(--line)}
.tsh-pol summary{font-weight:700;cursor:pointer}
.tsh-pol ul{margin:10px 0 0;padding-left:20px;color:var(--mut);font-size:15px}
.tsh-pol li{margin:4px 0}

/* done */
.tsh-done{text-align:center}
.tsh-done .tsh-sum,.tsh-done .tsh-pay,.tsh-done .tsh-timeline{text-align:left}
.tsh-tick{width:64px;height:64px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;margin:0 auto 14px}
.tsh-done-sm h4{font-size:22px;margin:0 0 6px}
.tsh-done-sm p{color:var(--mut);margin:0}
.tsh-pay{background:var(--ink);color:#fff;border-radius:18px;padding:20px;margin:0 0 16px}
.tsh-pay h4{margin:0 0 10px;font-size:20px;color:#fff}
.tsh-pay p{margin:10px 0 0;color:rgba(255,255,255,.82);font-size:15px}
.tsh-pay .tsh-facts dt{color:rgba(255,255,255,.66)}
.tsh-pay .tsh-facts dd{color:#fff}
.tsh-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;margin:0}
.tsh-facts dt{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mut)}
.tsh-facts dd{margin:2px 0 0;font-weight:600;font-size:15.5px}
.tsh-timeline{list-style:none;margin:0 0 18px;padding:0;border-left:3px solid var(--accent)}
.tsh-timeline li{padding:6px 0 10px 16px;font-size:15px;color:var(--mut)}
.tsh-timeline b{display:block;color:var(--ink)}

/* account */
.tsh-account{max-width:820px;margin:0 auto}
.tsh-acc-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:26px}
.tsh-acc-head h2{margin:0}
.tsh-eyebrow{margin:0 0 6px;font-weight:700;color:var(--accent-d);font-size:14px;letter-spacing:.08em;text-transform:uppercase}
.tsh-acc-actions{display:flex;gap:10px;flex-wrap:wrap}
.tsh-h{font-size:22px;margin:30px 0 14px}
.tsh-course{margin-bottom:14px}
.tsh-course-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.tsh-course-top h4{margin:0;font-size:24px;line-height:1.1}
.tsh-course-top a{color:inherit;text-decoration:none}
.tsh-pill{display:inline-block;border-radius:999px;padding:5px 12px;font-size:13px;font-weight:700;background:#E7EEF1;color:var(--ink);white-space:nowrap}
.tsh-pill-g{background:#DDF5E6;color:#1D7A45}
.tsh-pill-r{background:#FBE3DE;color:#B4432E}
.tsh-account .tsh-pay{margin-top:14px}
.tsh-form label{display:block;font-weight:700;font-size:14px;margin:0 0 14px}
.tsh-form input[type=text],.tsh-form input[type=email],.tsh-form input[type=tel]{display:block;width:100%;min-height:50px;margin-top:6px;border:1.5px solid rgba(18,48,63,.2);border-radius:14px;padding:10px 14px;font:inherit;font-size:16px;font-weight:400}
.tsh-form input[disabled]{background:var(--soft);color:var(--mut)}
.tsh-form .tsh-chk{font-weight:400;font-size:16px}
.tsh-empty{text-align:center;max-width:560px;margin:0 auto}

@media (max-width:600px){
	.tsh-card{padding:20px 16px;border-radius:20px}
	.tsh-title{font-size:26px}
	.tsh-two{grid-template-columns:1fr;gap:0}
	.tsh-steps li{font-size:0;gap:0;justify-content:center}
	.tsh-steps li.on{font-size:13.5px;gap:8px;flex:2.4;justify-content:flex-start}
	.tsh-foot{flex-direction:column-reverse}
	.tsh-foot .tsh-btn{width:100%}
	.tsh-facts{grid-template-columns:1fr 1fr}
	.tsh-course-top{flex-direction:column}
	.tsh-acc-actions .tsh-btn{flex:1}
}
