/* ============================================================
   FEATURE-A-JOB DRAWER  (.checkoutPromotionFeatureModal / .tf-*)
   Right-side drawer matching the Message (.tmd-*) and Schedule
   (.tsd-*) drawers. Drives the pay-per-feature flow ($99/week →
   Stripe hosted checkout) wired in js/feature-job.js, which toggles
   `.is-open` on the .checkoutPromotionFeatureModal root.

   Brand tokens inline (no global var deps), same scrim / slide / radius
   language as schedule-drawer.css so the portal drawers feel like one set.
   ============================================================ */

.tf-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  justify-content: flex-end;
  background: rgba(26, 43, 42, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.tf-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.tf-scrim { position: absolute; inset: 0; }

.tf-drawer {
  position: relative;
  width: 440px;
  max-width: 92vw;
  height: 100%;
  margin-left: auto;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(26, 43, 42, 0.18);
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.tf-overlay.is-open .tf-drawer { transform: translateX(0); }

/* ---- Header ---- */
.tf-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #E2EEEC;
  flex: none;
}
.tf-head-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #E6F7F5;
  color: #007A6E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.tf-head-icon svg { width: 22px; height: 22px; }
.tf-head-who { min-width: 0; flex: 1; }
.tf-head-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  color: #1A2B2A;
  line-height: 1.15;
}
.tf-head-sub { font-size: 13px; color: #6B7B7A; margin-top: 2px; }
.tf-close {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: #6B7B7A;
  padding: 4px 6px;
  flex: none;
}
.tf-close:hover { color: #1A2B2A; }

/* ---- Body ---- */
.tf-body { flex: 1; overflow-y: auto; padding: 22px 20px 12px; }

.tf-lead {
  font-size: 15px;
  line-height: 1.6;
  color: #3D5250;
  margin: 0 0 12px;
}
.tf-lead--price { color: #1A2B2A; }
.tf-lead strong { color: #1A2B2A; font-weight: 600; }

.tf-note {
  font-size: 14px;
  line-height: 1.55;
  color: #3D5250;
  background: #F5F9F8;
  border: 1px solid #E2EEEC;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 14px;
}

.tf-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #1A2B2A;
  margin: 18px 0 12px;
}

/* ---- Week stepper ---- */
.tf-stepper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
}
.tf-stepper__btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1.5px solid #00A896;
  background: #fff;
  color: #007A6E;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tf-stepper__btn:hover:not(:disabled) { background: #00A896; color: #fff; }
.tf-stepper__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.tf-stepper__val {
  font-size: 17px;
  font-weight: 700;
  color: #1A2B2A;
  min-width: 92px;
  text-align: center;
}

.tf-total {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  color: #1A2B2A;
  margin: 0 0 20px;
}

/* ---- Perks ---- */
.tf-perks {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid #EEF4F3;
}
.tf-perks li {
  position: relative;
  padding: 0 0 10px 26px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #3D5250;
}
.tf-perks li:last-child { padding-bottom: 0; }
.tf-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #E6F7F5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3' stroke='%23007A6E' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

/* ---- Error ---- */
.tf-modal__error {
  display: none;
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #B3261E;
  background: #FDECEC;
  border: 1px solid #F3CFCF;
  border-radius: 8px;
  padding: 10px 12px;
}
.tf-modal__error.is-shown { display: block; }

/* ---- Footer ---- */
.tf-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid #E2EEEC;
  flex: none;
}
.tf-btn {
  font: 600 14px/1 'DM Sans', sans-serif;
  cursor: pointer;
  border-radius: 8px;
  padding: 13px 20px;
  border: none;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.tf-btn-ghost {
  background: #fff;
  border: 1px solid #E2EEEC;
  color: #3D5250;
  flex: none;
}
.tf-btn-ghost:hover { background: #F0F6F5; }
.tf-btn-primary {
  background: #00A896;
  color: #fff;
  flex: 1;
}
.tf-btn-primary:hover { background: #007A6E; }
.tf-btn[disabled] { opacity: 0.65; cursor: progress; }

/* ---- Inline payment (Stripe Elements) ---- */
.tf-pay {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #EEF4F3;
}
.tf-pay-label { margin: 0 0 10px; }
.tf-card {
  border: 1px solid #E2EEEC;
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.tf-card.StripeElement--focus { border-color: #00A896; box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.18); }
.tf-card.StripeElement--invalid { border-color: #B3261E; }
.tf-card-err {
  min-height: 18px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #B3261E;
}
.tf-secure {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 12.5px;
  color: #6B7B7A;
}
.tf-secure svg { width: 15px; height: 15px; flex: none; }

/* ---- Success panel ---- */
.tf-done[hidden] { display: none; }
.tf-done {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 28px;
  text-align: center;
}
.tf-done-ic {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: #E6F7F5;
  color: #007A6E;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tf-done-ic svg { width: 30px; height: 30px; }
.tf-done-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 23px;
  color: #1A2B2A;
  margin: 0;
}
.tf-done-msg {
  font-size: 14.5px;
  line-height: 1.55;
  color: #3D5250;
  margin: 0;
  max-width: 300px;
}

/* ---- Mobile: full-width sheet ---- */
@media (max-width: 560px) {
  .tf-drawer { width: 100%; max-width: 100%; }
}
