/* =====================================================
   NBTX Marketing Learning Center — Free Tools
   Scoped styles — loads only on pages using a tool
   shortcode or the Learning Center Tool template.
   Builds on the variables in learning-center.css.
   Brand: Teal #0097b2 / Charcoal #494747 / Off-white #fffdf7
   ===================================================== */

/* ---------- Tool panel ---------- */

.lct-tool {
  background: #fff;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  box-shadow: var(--lc-shadow);
  padding: 40px 38px;
  margin: 34px 0;
  scroll-margin-top: 110px;
}

.lct-tool-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 30px;
}

.lct-tool-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--lc-teal-soft);
  color: var(--lc-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.lct-tool-header h2 {
  color: var(--lc-black);
  margin: 0 0 10px;
}

.lct-tool-header p {
  color: var(--lc-charcoal);
  line-height: 1.65;
  margin: 0;
}

/* ---------- Forms ---------- */

.lct-form {
  max-width: 640px;
  margin: 0 auto;
}

.lct-field {
  margin-bottom: 18px;
}

.lct-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.lct-field label {
  display: block;
  font-weight: 700;
  color: var(--lc-black);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.lct-req {
  color: var(--lc-teal-dark);
}

.lct-optional {
  font-weight: 400;
  color: rgba(73, 71, 71, 0.65);
  font-size: 0.85rem;
}

.lct-field input[type="text"],
.lct-field input[type="url"],
.lct-field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--lc-border);
  border-radius: 8px;
  background: var(--lc-offwhite);
  color: var(--lc-black);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.lct-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23494747' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.lct-field input:focus,
.lct-field select:focus {
  outline: none;
  border-color: var(--lc-teal);
  box-shadow: 0 0 0 3px rgba(0, 151, 178, 0.18);
}

.lct-form .lct-generate,
button.lc-btn,
button.lc-btn-outline {
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}

.lct-form .lct-generate {
  width: 100%;
  margin-top: 6px;
}

.lct-error {
  background: rgba(200, 60, 60, 0.08);
  border: 1px solid rgba(200, 60, 60, 0.35);
  border-radius: 8px;
  color: #a13333;
  padding: 12px 16px;
  font-size: 0.95rem;
  margin: 0 0 16px;
}

/* ---------- QR tool ---------- */

.lct-qr-result {
  text-align: center;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--lc-border);
}

.lct-qr-canvas-wrap {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  padding: 14px;
  box-shadow: var(--lc-shadow);
}

.lct-qr-canvas-wrap canvas {
  display: block;
  width: 260px;
  height: 260px;
  max-width: 100%;
}

.lct-qr-test {
  color: var(--lc-charcoal);
  font-size: 0.95rem;
  margin: 16px auto 4px;
  max-width: 420px;
}

.lct-qr-result .lc-btns {
  justify-content: center;
}

/* ---------- Instruction note ---------- */

.lct-note {
  background: var(--lc-teal-soft);
  border: 1px solid rgba(0, 151, 178, 0.25);
  border-radius: var(--lc-radius);
  padding: 26px 28px;
  margin-top: 34px;
}

.lct-note h3 {
  color: var(--lc-black);
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.lct-note h3 i {
  color: var(--lc-teal);
  margin-right: 8px;
}

.lct-note ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.lct-note li {
  color: var(--lc-charcoal);
  line-height: 1.7;
  margin-bottom: 6px;
}

.lct-note p {
  color: var(--lc-charcoal);
  margin: 0;
  font-size: 0.95rem;
}

.lct-note code {
  background: #fff;
  border: 1px solid var(--lc-border);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 0.9em;
  color: var(--lc-teal-dark);
}

.lct-note a {
  color: var(--lc-teal-dark);
  font-weight: 600;
}

/* ---------- Meta description results ---------- */

.lct-meta-results {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--lc-border);
}

.lct-meta-results h3 {
  color: var(--lc-black);
  margin: 0 0 8px;
}

.lct-meta-hint {
  color: var(--lc-charcoal);
  font-size: 0.92rem;
  margin: 0 0 20px;
}

.lct-meta-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  counter-reset: lct-option;
}

.lct-meta-option {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--lc-offwhite);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.lct-meta-option-text {
  flex-grow: 1;
}

.lct-meta-option-text::before {
  counter-increment: lct-option;
  content: "Option " counter(lct-option);
  display: block;
  color: var(--lc-teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  margin-bottom: 6px;
}

.lct-meta-option-text p {
  color: var(--lc-black);
  line-height: 1.55;
  margin: 0 0 6px;
}

.lct-meta-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2e7d32;
}

.lct-meta-count.lct-over {
  color: #a13333;
}

.lct-copy {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--lc-border);
  border-radius: 8px;
  color: var(--lc-charcoal);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lct-copy i {
  margin-right: 6px;
  color: var(--lc-teal);
}

.lct-copy:hover,
.lct-copy:focus {
  border-color: var(--lc-teal);
  color: var(--lc-teal);
}

.lct-copy.lct-copied {
  background: var(--lc-teal);
  border-color: var(--lc-teal);
  color: #fff;
}

.lct-copy.lct-copied i {
  color: #fff;
}

/* ---------- Checklist ---------- */

.lct-progress {
  max-width: 720px;
  margin: 0 auto 22px;
}

.lct-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.lct-progress-label {
  color: var(--lc-black);
  font-size: 1.05rem;
}

.lct-progress-label strong {
  color: var(--lc-teal-dark);
  font-size: 1.3rem;
}

.lct-progress-count {
  color: var(--lc-charcoal);
  font-size: 0.9rem;
}

.lct-progress-track {
  height: 12px;
  border-radius: 8px;
  background: var(--lc-teal-soft);
  overflow: hidden;
}

.lct-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--lc-teal) 0%, var(--lc-teal-dark) 100%);
  transition: width 0.35s ease;
}

.lct-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.lct-toolbar .lct-toolbar-btn {
  padding: 10px 22px;
  font-size: 0.92rem;
}

.lct-toolbar .lct-toolbar-btn i {
  margin-right: 7px;
}

.lct-reset {
  background: none;
  border: none;
  color: rgba(73, 71, 71, 0.7);
  font-size: 0.88rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 12px;
}

.lct-reset:hover {
  color: #a13333;
}

.lct-check-group {
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  padding: 24px 26px 12px;
  margin-bottom: 18px;
  background: var(--lc-offwhite);
}

.lct-check-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lc-black);
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.lct-check-group-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--lc-teal-soft);
  color: var(--lc-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.lct-check-group-count {
  margin-left: auto;
  color: var(--lc-charcoal);
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--lc-border);
  border-radius: 50px;
  padding: 4px 12px;
}

.lct-check-group-count.lct-group-done {
  background: var(--lc-teal);
  border-color: var(--lc-teal);
  color: #fff;
}

.lct-check-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lct-check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 4px;
  border-top: 1px solid var(--lc-border);
}

.lct-check-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid rgba(73, 71, 71, 0.4);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin-top: 2px;
  transition: all 0.15s ease;
}

.lct-check-item input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 151, 178, 0.25);
}

.lct-check-item input[type="checkbox"]:checked {
  background: var(--lc-teal);
  border-color: var(--lc-teal);
}

.lct-check-item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.lct-check-item label {
  cursor: pointer;
  flex-grow: 1;
}

.lct-check-title {
  display: block;
  color: var(--lc-black);
  font-weight: 600;
  line-height: 1.45;
}

.lct-check-hint {
  display: block;
  color: rgba(73, 71, 71, 0.8);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 2px;
}

.lct-check-item input:checked ~ label .lct-check-title {
  color: rgba(73, 71, 71, 0.55);
  text-decoration: line-through;
}

.lct-check-item input:checked ~ label .lct-check-hint {
  color: rgba(73, 71, 71, 0.45);
}

/* ---------- CTA panel (below each tool) ---------- */

.lct-cta {
  background: linear-gradient(135deg, var(--lc-teal) 0%, var(--lc-teal-dark) 100%);
  border-radius: var(--lc-radius);
  color: #fff;
  padding: 46px 40px;
  margin: 34px 0;
  text-align: center;
}

.lct-cta h2 {
  color: #fff;
  margin: 0 0 12px;
}

.lct-cta p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.lct-cta .lc-btns {
  justify-content: center;
}

.lct-cta .lc-btn {
  background: var(--lc-offwhite);
  border-color: var(--lc-offwhite);
  color: var(--lc-charcoal);
}

.lct-cta .lc-btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--lc-black);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.lct-cta .lc-btn-outline {
  color: var(--lc-offwhite);
  border-color: var(--lc-offwhite);
}

.lct-cta .lc-btn-outline:hover {
  background: var(--lc-offwhite);
  color: var(--lc-charcoal);
}

/* ---------- FAQ accordion (below each tool) ---------- */

.lct-faq {
  margin: 34px 0;
}

.lct-faq h2 {
  color: var(--lc-black);
  text-align: center;
  margin: 0 0 24px;
}

.lct-faq-item {
  background: #fff;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.lct-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  color: var(--lc-black);
  font-weight: 700;
  line-height: 1.45;
}

.lct-faq-item summary::-webkit-details-marker {
  display: none;
}

.lct-faq-item summary i {
  color: var(--lc-teal);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.lct-faq-item[open] summary i {
  transform: rotate(180deg);
}

.lct-faq-item[open] summary {
  border-bottom: 1px solid var(--lc-border);
}

.lct-faq-answer {
  padding: 16px 22px 20px;
}

.lct-faq-answer p {
  color: var(--lc-charcoal);
  line-height: 1.7;
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
  .lct-tool {
    padding: 26px 20px;
    margin: 24px 0;
  }

  .lct-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .lct-meta-option {
    flex-direction: column;
    gap: 10px;
  }

  .lct-copy {
    align-self: stretch;
    text-align: center;
  }

  .lct-cta {
    padding: 34px 22px;
  }

  .lct-check-group {
    padding: 18px 16px 8px;
  }

  .lct-check-group-count {
    display: none;
  }

  .lct-toolbar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .lct-qr-canvas-wrap canvas {
    width: 220px;
    height: 220px;
  }
}
