
/* Shared pages (services/subjects/auth) */
:root{
  --tb-bg: #f5f7fb;
  --tb-card: #ffffff;
  --tb-border: rgba(16,24,40,.10);
  --tb-shadow: 0 10px 30px rgba(16,24,40,.08);
  --tb-radius: 18px;
  --tb-text: #0b1220;
  --tb-muted: #5b667a;
  --tb-accent: #ff7a18;
  --tb-blue: #2f66ff;
}

body{ background: var(--tb-bg); color: var(--tb-text); }

.tb-page{
  max-width: 1200px;
  margin: 28px auto 80px;
  padding: 0 18px;
}

.tb-page-hero{
  background: linear-gradient(135deg, rgba(47,102,255,.08), rgba(255,122,24,.06));
  border: 1px solid var(--tb-border);
  border-radius: 24px;
  box-shadow: var(--tb-shadow);
  padding: 28px;
  margin-bottom: 22px;
}

.tb-page-hero h1{
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
}

.tb-page-hero p{
  margin: 0;
  color: var(--tb-muted);
  max-width: 900px;
}

.tb-breadcrumb{
  margin-bottom: 10px;
  color: var(--tb-muted);
  font-size: 14px;
}

.tb-breadcrumb a{ color: inherit; text-decoration: none; }
.tb-breadcrumb a:hover{ text-decoration: underline; }

.tb-section{
  background: var(--tb-card);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow);
  padding: 22px;
  margin-top: 18px;
}

.tb-section h2{
  margin: 0 0 12px;
  font-size: 22px;
}

.tb-section p{ color: var(--tb-muted); }

.tb-bullets{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--tb-muted);
}

.tb-cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 14px;
}

.tb-btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--tb-accent);
  color:#fff;
  text-decoration:none;
  font-weight: 700;
  border: none;
}

.tb-btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--tb-blue);
  text-decoration:none;
  font-weight: 700;
  border: 1px solid rgba(47,102,255,.25);
}

.tb-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.tb-card{
  background: var(--tb-card);
  border: 1px solid var(--tb-border);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(16,24,40,.06);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.tb-card h3{ margin:0 0 8px; font-size: 18px; }
.tb-card p{ margin:0; color: var(--tb-muted); font-size: 14px; }

.tb-card a{ text-decoration:none; color: inherit; display:block; }

.tb-auth-wrap{
  max-width: 520px;
  margin: 24px auto;
}

.tb-form{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.tb-form label{
  font-weight: 600;
  font-size: 14px;
}

.tb-form input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--tb-border);
  outline: none;
  background: #fff;
}

.tb-form input:focus{
  border-color: rgba(47,102,255,.5);
  box-shadow: 0 0 0 4px rgba(47,102,255,.10);
}

.tb-alert{
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid var(--tb-border);
  background: rgba(255,122,24,.10);
  color: #6b2c00;
  font-size: 14px;
}

.tb-alert-success{
  background: rgba(24,180,90,.10);
  color: #0a4f2b;
}

/* Social login buttons */
.tb-auth-title{
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.15;
}

.tb-social{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-bottom: 14px;
}

.tb-social-btn{
  /* Make social buttons resilient even if other CSS sets links inline */
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap: 10px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--tb-border);
  text-decoration:none !important;
  font-weight: 700;
  font-size: 14px;
  color: #0b1220;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

/* Defend against global link styles (blue/underlined) */
a.tb-social-btn:link,
a.tb-social-btn:visited,
a.tb-social-btn:hover,
a.tb-social-btn:active{
  color: inherit !important;
  text-decoration: none !important;
}

.tb-social-btn:hover{
  box-shadow: 0 10px 24px rgba(16,24,40,.10);
  transform: translateY(-1px);
}

.tb-social-icon{
  width: 18px;
  height: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.tb-social-icon svg{ width: 18px; height: 18px; display:block; }

.tb-social-google .tb-social-icon{ background: rgba(47,102,255,.12); color: var(--tb-blue); }
.tb-social-facebook{ background: rgba(24,119,242,.14); border-color: rgba(24,119,242,.20); }
.tb-social-facebook .tb-social-icon{ background: rgba(24,119,242,.20); color: #1877f2; }
.tb-social-apple{ background: #111827; color: #fff; border-color: #111827; }
.tb-social-apple .tb-social-icon{ background: rgba(255,255,255,.20); color: #fff; }

.tb-divider{
  display:flex;
  align-items:center;
  gap: 10px;
  margin: 16px 0;
  color: var(--tb-muted);
  font-size: 13px;
}
.tb-divider::before,
.tb-divider::after{
  content:"";
  flex: 1;
  height: 1px;
  background: rgba(16,24,40,.12);
}

.tb-captcha{
  display:flex;
  justify-content:center;
  margin: 10px 0;
}

/* Auth helpers */
.tb-remember{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-top: 2px;
  margin-bottom: 6px;
}

.tb-checkbox{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 13px;
  color: var(--tb-muted);
}

.tb-checkbox input{
  width: 16px;
  height: 16px;
}

/* Ensure checkboxes are standard size (do not inherit generic input sizing) */
.tb-order input[type="checkbox"]{
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 4px;
  border: 1px solid rgba(16,24,40,.25);
  background: #fff;
  box-shadow: none !important;
  accent-color: var(--tb-blue);
  -webkit-appearance: auto;
  appearance: auto;
}

.tb-link{
  font-size: 13px;
  font-weight: 700;
  color: var(--tb-blue);
  text-decoration: none;
}
.tb-link:hover{ text-decoration: underline; }

/* ----------------------------
   Order page (prototype form)
----------------------------- */

.tb-order{
  padding: 26px;
  background: linear-gradient(135deg, rgba(47,102,255,.05), rgba(255,122,24,.03));
}

.tb-order-top{
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 12px;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(16,24,40,.08);
}

.tb-order-title{
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
}

.tb-order-tabs{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(47,102,255,.06);
  border: 1px solid rgba(47,102,255,.12);
}

.tb-tab{
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-height: 42px;
  border: 1px solid rgba(47,102,255,.22);
  background: #fff;
  color: var(--tb-blue);
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

.tb-tab.is-active{
  background: var(--tb-blue);
  border-color: var(--tb-blue);
  color:#fff;
}

.tb-tab-info{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display:inline-grid;
  place-items:center;
  font-weight: 900;
  font-size: 12px;
  color: var(--tb-muted);
  border: 1px solid rgba(16,24,40,.18);
}

.tb-order-layout{
  display:flex;
  flex-direction:column;
  gap: 24px;
  margin-top: 22px;
}

/* Reusable card container for order sections */
.tb-order-card{
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  border: 1px solid rgba(16,24,40,.10);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(16,24,40,.06);
  padding: 20px;
}

/* Top fields: optimized layout */
.tb-fields-row{
  display: grid;
  gap: 16px;
  align-items: end;
}

.tb-fields-row--top{
  grid-template-columns: 1fr 1fr;
}
.tb-fields-row--top > .tb-field:only-child{ grid-column: 1 / -1; }

.tb-fields-row--bottom{
  grid-template-columns: 1.1fr .9fr;
  align-items: start;
  margin-top: 14px;
}

@media (max-width: 900px){
  .tb-fields-row--top,
  .tb-fields-row--bottom{
    grid-template-columns: 1fr;
  }

  .tb-tz-row{
    flex-direction: column;
    align-items: flex-start;
  }
  .tb-tz-select{
    max-width: 100%;
    flex-basis: auto;
    width: 100%;
  }
  }

.tb-span-all{ grid-column: auto; }
}

.tb-field{ display:flex; flex-direction:column; gap: 8px; margin-bottom: 16px; }

.tb-field label{
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .2px;
}

.tb-hint{ font-weight: 600; font-size: 12px; color: var(--tb-muted); }

.tb-inline{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Deadline date + time: keep inside card (no overflow) */
.tb-order .tb-right .tb-inline{
  grid-template-columns: minmax(0, 1fr) minmax(0, 160px);
  justify-content: stretch;
  max-width: 100%;
}

/* Allow grid items to shrink (prevents select overflow) */
.tb-order .tb-right .tb-inline > *{ min-width: 0; }


/* Timezone selector + live clock */
.tb-tz-row{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-top: 10px;
}

.tb-tz-select{
  flex: 0 0 55%;
  max-width: 360px;
}


.tb-clock-label{
  font-size: 12px;
  color: #5b6b7a;
  margin-bottom: 6px;
  font-weight: 600;
}

.tb-clock-time{
  font-weight: 900;
  letter-spacing: .2px;
  color: #0f172a;
}

.tb-clock-date{
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tb-muted);
}

.tb-order .tb-inline select,
.tb-order .tb-inline input,
.tb-order select{
  width: 100%;
  min-height: 44px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16,24,40,.14);
  outline: none;
  background: #fbfcff;
}

/* Match input styling on the left column (email/subject/pages) */
.tb-order input:not([type="checkbox"]):not([type="radio"]):not([type="file"]){
  width: 100%;
  min-height: 44px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16,24,40,.14);
  outline: none;
  background: #fbfcff;
}

.tb-order select:focus,
.tb-order input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus{
  border-color: rgba(47,102,255,.5);
  box-shadow: 0 0 0 4px rgba(47,102,255,.10);
}

/* Make it obvious the date field is interactive */
.tb-order input[type="date"]{
  cursor: pointer;
}

.tb-pages{
  display:flex;
  align-items:center;
  gap: 10px;
}

.tb-step{
  -webkit-appearance: none;
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(16,24,40,.18);
  background: #f7f8fb;
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}

.tb-pages input{
  width: 74px;
  text-align:center;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(16,24,40,.18);
  background: #fff;
}

.tb-words{
  color: var(--tb-muted);
  font-weight: 700;
  font-size: 13px;
  margin-left: auto;
}

.tb-rate{
  margin-top: 10px;
  color: var(--tb-muted);
  font-size: 13px;
  font-weight: 700;
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
}

.tb-dot{ opacity: .7; }

.tb-editor{
  border: 1px solid var(--tb-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16,24,40,.06);
}

.tb-editor-toolbar{
  padding: 12px;
  border-bottom: 1px solid rgba(16,24,40,.10);
  background: #f8fafc;
}

.tb-toolbar-row{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
}

.tb-toolbar-row + .tb-toolbar-row{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(16,24,40,.08);
}

.tb-toolbar-group{
  display:flex;
  align-items:center;
  gap: 8px;
  padding-right: 14px;
  margin-right: 14px;
  border-right: 1px solid rgba(16,24,40,.10);
}

.tb-toolbar-group:last-child{
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.tb-toolbar-select{
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(16,24,40,.15);
  background: #fff;
  padding: 0 10px;
  font-weight: 800;
  font-size: 13px;
  outline: none;
}

.tb-toolbar-select:focus{
  border-color: rgba(47,102,255,.55);
  box-shadow: 0 0 0 4px rgba(47,102,255,.14);
}

.tb-toolbar-size{ width: 84px; }

.tb-tool-btn{
  width: 36px;
  height: 36px;
  padding: 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(16,24,40,.15);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
  color: #111827;
  user-select: none;
}

.tb-tool-wide{
  width: auto;
  padding: 0 12px;
}

.tb-tool-btn:hover{
  box-shadow: 0 10px 18px rgba(16,24,40,.08);
  border-color: rgba(16,24,40,.22);
}

.tb-tool-btn:active{ transform: translateY(1px); }

/* Editor surface */

/*
  The editor previously rendered a "page" inside a padded gray surface.
  The user asked the editable area to fill the full available space.
*/
.tb-editor-surface{
  background: #fff;
  padding: 0;
}

.tb-editor-page{
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 420px;
  padding: 18px 18px;
  outline: none;
  background: #fff;
  border-radius: 0;
  border: none;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.7;
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
}

.tb-editor-page:focus{
  box-shadow: inset 0 0 0 2px rgba(47,102,255,.40);
}

/* Comfortable default typography inside the editor */
.tb-editor-page p{ margin: 0 0 10px; }
.tb-editor-page ul,
.tb-editor-page ol{ margin: 0 0 10px; padding-left: 20px; }
.tb-editor-page a{ color: var(--tb-blue); }

.tb-editor-page.is-empty:before{
  position: absolute;
  top: 18px;
  left: 18px;
  pointer-events: none;

  content: attr(data-placeholder);
  color: rgba(91,102,122,.75);
}

.tb-help{
  margin-top: 8px;
  color: var(--tb-muted);
  font-size: 12px;
}

.tb-files{
  display:flex;
  align-items:center;
  gap: 12px;
  margin: 14px 0 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(16,24,40,.08);
}

/* Bottom actions spacing */
.tb-terms{ padding-top: 6px; }

.tb-file-btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border: 1px solid rgba(16,24,40,.15);
  background:#fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

.tb-file-list{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tb-file-chip{
  border: 1px solid rgba(16,24,40,.12);
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--tb-muted);
  font-weight: 700;
}

.tb-file-list{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-left: 10px;
}

.tb-file-chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
}

.tb-file-name{
  max-width: 520px;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-file-remove{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  color: #64748b;
}

.tb-file-remove:hover{
  color: #ef4444;
}


.tb-coupon{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  margin: 8px 0 4px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(47,102,255,.06);
  border: 1px solid rgba(47,102,255,.14);
  color: var(--tb-blue);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

.tb-coupon:hover{
  background: rgba(47,102,255,.09);
  box-shadow: 0 10px 18px rgba(16,24,40,.06);
}

.tb-live{
  display:flex;
  align-items:center;
  gap: 10px;
  margin: 12px 0;
  color: var(--tb-muted);
  font-weight: 800;
  font-size: 13px;
}

.tb-live-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #1aa34a;
  box-shadow: 0 0 0 4px rgba(26,163,74,.12);
}

.tb-terms{ margin: 10px 0 16px; }

/* Right column polish */
.tb-order-editor .tb-files{ justify-content: flex-start; }
.tb-order-editor .tb-coupon{ width: 100%; justify-content: flex-start; }
.tb-order-editor .tb-terms{ align-items: flex-start; gap: 10px; }
.tb-order-editor .tb-terms input{ margin-top: 3px; }

.tb-order-submit{
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 6px;
}

@media (max-width: 900px){
  .tb-inline{ grid-template-columns: 1fr; }
  .tb-words{ margin-left: 0; }
}


/* --- Order editor polish overrides --- */
.tb-files{
  border-top: 1px solid rgba(16,24,40,.08);
  padding-top: 16px;
}


/* Files button when placed before editor */
.tb-files--before-editor{
  border-top: none;
  padding-top: 0;
  margin: 10px 0 12px;
}

.tb-file-btn{
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(16,24,40,.06);
}

.tb-coupon{
  width: 100%;
  justify-content: flex-start;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 800;
}

.tb-checkbox.tb-terms{
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.tb-checkbox.tb-terms input{
  margin-top: 3px;
}

.tb-order-submit{
  height: 46px;
  border-radius: 14px;
  font-weight: 900;
}


/* ===== Order page layout tuning (Subject/Course on left, Deadline on right) ===== */
.tb-top-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.tb-left, .tb-right{ min-width: 0; }

.tb-inline-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}

.tb-inline-2 .tb-field,
.tb-pages-wrap .tb-field,
.tb-right .tb-field{
  margin-bottom: 0;
}

.tb-pages-wrap{ margin-top: 6px; }

/* Make the page stepper compact (about half of a field width) */
.tb-pages{
  width: 180px;
  max-width: 180px;
}

.tb-pages input{
  width: 72px;
}

.tb-words-note{
  margin-top: 8px;
  font-weight: 700;
  font-size: 12px;
  color: var(--tb-muted);
}

/* Deadline block stretches nicely and matches the column width */
.tb-right .tb-field{
  width: 100%;
}

.tb-right .tb-inline{
  grid-template-columns: 1fr 160px;
  gap: 12px;
}

/* Timezone select takes ~half and clock uses the rest */
.tb-tz-row{
  display:flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.tb-tz-select{
  flex: 0 0 50%;
  max-width: 260px;
}

.tb-tz-select select{
  width: 100%;
  text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 900px){
  .tb-top-grid{ grid-template-columns: 1fr; }
  .tb-inline-2{ grid-template-columns: 1fr; }
  .tb-pages{ width: 200px; max-width: 100%; }
  .tb-right .tb-inline{ grid-template-columns: 1fr 1fr; }
  .tb-order .tb-right .tb-inline{ grid-template-columns: 1fr 1fr; }
  .tb-tz-row{ flex-direction: column; align-items: flex-start; }
  .tb-tz-select{ max-width: 100%; width: 100%; flex-basis: auto; }
  }

@media (max-width: 520px){
  .tb-order .tb-right .tb-inline{ grid-template-columns: 1fr; }
}




/* --- Order page: timezone live clock + analog clock (clean) --- */
.tb-order .tb-tz-row{
  display:flex;
  /* stretch so the right column can align to the bottom */
  align-items:stretch;
  gap: 14px;
}

.tb-order .tb-tz-left{
  flex: 1;
  min-width: 0;
}

.tb-order .tb-tz-select{
  /* Match date input width and free space for the analog clock */
  width: min(100%, 220px);
  max-width: 220px;
}

.tb-order .tb-tz-live{
  margin-top: 0;
}

/* Place "Due In" in the empty area to the right of the live time/date (as shown in UI) */
.tb-order .tb-tz-live-row{
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-end;
  justify-content: flex-start; /* keep Due In right of current time, not pushed to far-right */
  margin-top: 8px;
}

.tb-order .tb-tz-live{ flex: 0 1 auto; }
.tb-order .tb-duein{ flex: 0 0 220px; }

@media (max-width: 900px){
  .tb-order .tb-tz-live-row{ flex-direction: column; align-items: stretch; }
  .tb-order .tb-duein{ width: 100%; max-width: 100%; flex-basis: auto; }
}

.tb-order .tb-tz-right{
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.tb-order .tb-duein{
  /* Visually symmetrical with the timezone selector */
  width: min(100%, 220px);
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 10px 25px rgba(2, 6, 23, .06);
  text-align: left;
}

/* Reuse the same typography as the live timezone clock */
.tb-order .tb-duein .tb-clock-label{ margin-bottom: 6px; }

.tb-order .tb-duein .tb-clock-format{
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--tb-muted);
  letter-spacing: .4px;
}

.tb-order .tb-clock-time{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 20px;
  line-height: 1.1;
}

.tb-order .tb-clock-date{
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tb-muted);
}

.tb-order .tb-clock-format{
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--tb-muted);
  letter-spacing: .2px;
}

@media (max-width: 900px){
  .tb-order .tb-tz-row{
    flex-direction: column;
    align-items: stretch;
  }
  .tb-order .tb-tz-right{
    justify-content: flex-start;
  }
  }


/* Order deadline validation */
.tb-deadline-error{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 122, 24, .10);
  border: 1px solid rgba(255, 122, 24, .25);
  color: #b54708;
  font-size: 13px;
  font-weight: 600;
}

.tb-order .is-invalid{
  border-color: rgba(255, 122, 24, .65) !important;
  box-shadow: 0 0 0 3px rgba(255, 122, 24, .18) !important;
}

/* Subjects: enlarge 'Common topics I help with' section */
.tb-topics{
  padding: 28px 30px;
}
.tb-topics h2{
  font-size: 28px;
  margin-bottom: 10px;
}
.tb-topics p{
  font-size: 16px;
  line-height: 1.7;
  max-width: 980px;
}
.tb-topics .tb-bullets{
  margin-top: 16px;
  columns: 2;
  column-gap: 46px;
}
.tb-topics .tb-bullets li{
  break-inside: avoid;
  font-size: 16px;
  padding: 6px 0;
  line-height: 1.6;
}
@media (max-width: 820px){
  .tb-topics .tb-bullets{ columns: 1; }
  .tb-topics{ padding: 22px 20px; }
  .tb-topics h2{ font-size: 24px; }
}



/* ----------------------------
   About Me + Contact pages
----------------------------- */
.tb-page-hero--about p,
.tb-page-hero--contact p{ max-width: 860px; }

.tb-about{ padding: 26px; }
.tb-about-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}
@media (max-width: 980px){
  .tb-about-grid{ grid-template-columns: 1fr; }
}

.tb-about-card{
  background: var(--tb-card);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow);
  padding: 18px;
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items:center;
}
@media (max-width: 560px){
  .tb-about-card{ grid-template-columns: 1fr; text-align:center; }
  .tb-about-photo{ margin: 0 auto; }
}

.tb-about-photo{
  box-sizing: border-box;
  padding: 8px;
  width: 140px;
  height: 140px;
  border-radius: 22px;
  overflow:hidden;
  background: linear-gradient(135deg, rgba(47,102,255,.12), rgba(255,122,24,.10));
  border: 1px solid rgba(16,24,40,.10);
  box-shadow: 0 12px 28px rgba(16,24,40,.14);
}
.tb-about-photo img{
  width:100%;
  height:100%;
  object-fit: contain;
  object-position: center;
  display:block;
}


.tb-about-name{
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -.2px;
}
.tb-about-sub{
  margin-top: 4px;
  color: var(--tb-muted);
  font-weight: 700;
  font-size: 13px;
}

.tb-badges{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tb-badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47,102,255,.08);
  border: 1px solid rgba(47,102,255,.18);
  color: #1b3fa8;
  font-weight: 800;
  font-size: 12px;
}

.tb-about-blurb{
  margin-top: 12px;
  color: var(--tb-text);
  font-size: 14px;
  line-height: 1.55;
}

.tb-stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 14px;
}
.tb-stat{
  border: 1px solid rgba(16,24,40,.10);
  background: #fbfcff;
  border-radius: 14px;
  padding: 10px;
  text-align:center;
}
.tb-stat-num{ font-weight: 950; font-size: 18px; }
.tb-stat-label{ margin-top: 2px; color: var(--tb-muted); font-size: 12px; font-weight: 700; }

.tb-card{
  background: var(--tb-card);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow);
  padding: 18px;
}

.tb-h2{
  font-weight: 950;
  letter-spacing: -.2px;
  font-size: 18px;
  margin: 0;
}
.tb-muted{ color: var(--tb-muted); }

.tb-list{
  margin: 12px 0 0 18px;
  color: var(--tb-text);
}
.tb-list li{ margin: 8px 0; line-height: 1.5; }

.tb-steps-mini{ margin-top: 12px; display:grid; gap: 10px; }
.tb-step-mini{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(16,24,40,.03);
  border: 1px solid rgba(16,24,40,.08);
}
.tb-step-mini span{
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,122,24,.14);
  color: #b23d00;
  font-weight: 950;
  flex: 0 0 auto;
}

.tb-note{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,122,24,.08);
  border: 1px solid rgba(255,122,24,.18);
  color: #5a2a00;
  font-weight: 650;
  font-size: 13px;
  line-height: 1.5;
}

.tb-divider{
  height: 1px;
  background: rgba(16,24,40,.10);
  margin: 18px 0;
}

.tb-samples-head{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items:flex-start;
  flex-wrap: wrap;
}

.tb-empty{
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(16,24,40,.18);
  background: rgba(16,24,40,.02);
  color: var(--tb-muted);
  font-size: 13px;
  line-height: 1.6;
}

.tb-sample-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.tb-sample-item{
  text-decoration:none;
  color: inherit;
  border: 1px solid rgba(16,24,40,.10);
  background: #fbfcff;
  border-radius: 16px;
  padding: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tb-sample-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(16,24,40,.12);
}
.tb-sample-title{ font-weight: 900; }
.tb-sample-sub{ margin-top: 4px; color: var(--tb-muted); font-size: 12px; }

.tb-contact{ padding: 26px; }
.tb-contact-grid{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 980px){
  .tb-contact-grid{ grid-template-columns: 1fr; }
}

.tb-contact-card{ position: sticky; top: 18px; align-self: start; }
@media (max-width: 980px){ .tb-contact-card{ position: static; } }

.tb-contact-photo{
  box-sizing: border-box;
  padding: 10px;
  width: 100%;
  height: 220px;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(16,24,40,.03);
  border: 1px solid rgba(16,24,40,.10);
  box-shadow: 0 12px 28px rgba(16,24,40,.12);
}
.tb-contact-photo img{ width:100%; height:100%; object-fit: contain; object-position: center; display:block; }


.tb-contact-name{ margin-top: 14px; font-weight: 950; font-size: 20px; }
.tb-contact-sub{ margin-top: 6px; color: var(--tb-muted); font-weight: 650; line-height: 1.5; }

.tb-contact-block{ margin-top: 14px; }
.tb-contact-label{ font-weight: 900; font-size: 12px; color: var(--tb-muted); text-transform: uppercase; letter-spacing: .6px; }
.tb-contact-link{ display:inline-block; margin-top: 6px; font-weight: 900; text-decoration: none; color: #1b3fa8; }
.tb-contact-link:hover{ text-decoration: underline; }

.tb-form-card{ padding: 20px; }
.tb-alert{
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(16,24,40,.10);
}
.tb-alert--success{ background: rgba(25,160,85,.10); border-color: rgba(25,160,85,.24); color: #0b5f31; }
.tb-alert--danger{ background: rgba(220,38,38,.10); border-color: rgba(220,38,38,.24); color: #7a1111; }

.tb-form{ margin-top: 12px; }
.tb-form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tb-span-2{ grid-column: 1 / -1; }

.tb-form-field{ display:flex; flex-direction: column; gap: 8px; }
.tb-form-field label{ font-weight: 900; font-size: 13px; }
.tb-form-field input,
.tb-form-field textarea{
  width: 100%;
  min-height: 44px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16,24,40,.14);
  outline: none;
  background: #fbfcff;
  font-family: inherit;
}
.tb-form-field textarea{ min-height: 160px; resize: vertical; }
.tb-form-field input:focus,
.tb-form-field textarea:focus{
  border-color: rgba(47,102,255,.55);
  box-shadow: 0 0 0 4px rgba(47,102,255,.12);
}

.tb-form-actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}


/* Shared portrait image rule (prevents "cover" cropping anywhere Dr Jack photo is used) */
.drjack-photo{
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center !important;
  display: block;
}
