.ttg-ctv-wrap {
  max-width: 760px;
  margin: 24px auto;
  color: #111827;
  font-family: inherit;
}

.ttg-ctv-form {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
  padding: 28px;
}

.ttg-form-head {
  margin-bottom: 22px;
}

.ttg-kicker {
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.ttg-form-head h2 {
  color: #111827;
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}

.ttg-form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ttg-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.ttg-form-grid label span {
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.ttg-form-grid input {
  appearance: none;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #111827;
  font: inherit;
  min-height: 46px;
  outline: none;
  padding: 10px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  width: 100%;
}

.ttg-form-grid input:focus {
  background: #ffffff;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.ttg-form-grid input[readonly] {
  background: #f3f4f6;
  color: #4b5563;
  cursor: default;
}

.ttg-full {
  grid-column: 1 / -1;
}

.ttg-submit {
  align-items: center;
  background: #f59e0b;
  border: 0;
  border-radius: 8px;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  margin-top: 20px;
  min-height: 46px;
  padding: 10px 18px;
  transition: background 160ms ease, transform 160ms ease;
}

.ttg-submit:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.ttg-submit:disabled {
  cursor: progress;
  opacity: 0.7;
  transform: none;
}

.ttg-inline-alert {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.ttg-form-result {
  margin-top: 18px;
}

.ttg-result-box {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 16px;
}

.ttg-result-box p {
  margin: 0;
}

.ttg-result-title {
  font-weight: 800;
}

.ttg-result-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

.ttg-result-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #064e3b;
}

.ttg-result-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #78350f;
}

.ttg-result-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #7f1d1d;
}

.ttg-code {
  align-items: center;
  background: #ffffff;
  border: 2px dashed #f59e0b;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px auto;
  padding: 14px 28px;
  width: fit-content;
}

.ttg-code span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ttg-code strong {
  color: #d97706;
  font-size: 34px;
  line-height: 1;
}

.ttg-qr-frame {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  margin: 0 auto 16px;
  padding: 10px;
  width: fit-content;
}

.ttg-qr-frame img {
  display: block;
  height: auto;
  max-width: min(300px, 100%);
}

.ttg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.ttg-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ttg-action-link {
  align-items: center;
  background: #0f766e !important;
  border-radius: 8px;
  color: #ffffff !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 8px 13px;
  text-decoration: none !important;
}

.ttg-action-link:hover,
.ttg-action-link:focus {
  background: #0d9488 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.ttg-action-muted {
  background: #f59e0b !important;
  color: #111827 !important;
}

.ttg-action-muted:hover,
.ttg-action-muted:focus {
  background: #d97706 !important;
  color: #111827 !important;
}

@media (max-width: 640px) {
  .ttg-ctv-form {
    padding: 22px;
  }

  .ttg-form-head h2 {
    font-size: 24px;
  }

  .ttg-form-grid {
    grid-template-columns: 1fr;
  }

  .ttg-code {
    align-items: flex-start;
    width: 100%;
  }

  .ttg-code strong {
    font-size: 30px;
  }

  .ttg-submit,
  .ttg-action-link {
    width: 100%;
  }
}
